tools/profiler/nsProfilerFactory.cpp
author Mike Hommey <mh+mozilla@glandium.org>
Sat, 04 Aug 2012 08:48:56 +0200
changeset 101418 2ef51674316aadfe26a46877b16794f758bf4b6d
parent 94475 f4157e8c410708d76703f19e4dfb61859bfe32d8
child 118600 f5ec1efd39ee839a506fd3d76636f73feb231495
permissions -rw-r--r--
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted

/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "mozilla/ModuleUtils.h"
#include "nsCOMPtr.h"
#include "nsProfiler.h"
#include "nsProfilerCIID.h"

NS_GENERIC_FACTORY_CONSTRUCTOR(nsProfiler)

NS_DEFINE_NAMED_CID(NS_PROFILER_CID);

static const mozilla::Module::CIDEntry kProfilerCIDs[] = {
    { &kNS_PROFILER_CID, false, NULL, nsProfilerConstructor },
    { NULL }
};

static const mozilla::Module::ContractIDEntry kProfilerContracts[] = {
    { "@mozilla.org/tools/profiler;1", &kNS_PROFILER_CID },
    { NULL }
};

static const mozilla::Module kProfilerModule = {
    mozilla::Module::kVersion,
    kProfilerCIDs,
    kProfilerContracts
};

NSMODULE_DEFN(nsProfilerModule) = &kProfilerModule;