2001-09-26 03:31:24 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* 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/. */
|
2001-03-29 06:11:48 +04:00
|
|
|
|
|
|
|
|
2010-06-10 22:11:40 +04:00
|
|
|
#include "mozilla/ModuleUtils.h"
|
2001-07-16 06:40:48 +04:00
|
|
|
#include "nsIServiceManager.h"
|
2001-03-29 06:11:48 +04:00
|
|
|
#include "nsPermissionManager.h"
|
2002-09-11 06:13:31 +04:00
|
|
|
#include "nsPopupWindowManager.h"
|
2001-06-06 01:37:48 +04:00
|
|
|
#include "nsICategoryManager.h"
|
2003-01-22 08:52:33 +03:00
|
|
|
#include "nsCookiePromptService.h"
|
2003-03-22 04:24:51 +03:00
|
|
|
#include "nsCookiePermission.h"
|
2003-06-18 04:52:59 +04:00
|
|
|
#include "nsXPIDLString.h"
|
2001-03-29 06:11:48 +04:00
|
|
|
|
|
|
|
// Define the constructor function for the objects
|
2010-10-09 22:07:38 +04:00
|
|
|
NS_GENERIC_FACTORY_SINGLETON_CONSTRUCTOR(nsIPermissionManager,
|
|
|
|
nsPermissionManager::GetXPCOMSingleton)
|
2002-09-11 06:13:31 +04:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsPopupWindowManager, Init)
|
2010-03-26 02:02:28 +03:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCookiePermission)
|
2003-06-18 04:52:59 +04:00
|
|
|
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCookiePromptService)
|
2001-03-29 06:11:48 +04:00
|
|
|
|
2010-06-10 22:11:40 +04:00
|
|
|
NS_DEFINE_NAMED_CID(NS_PERMISSIONMANAGER_CID);
|
|
|
|
NS_DEFINE_NAMED_CID(NS_POPUPWINDOWMANAGER_CID);
|
|
|
|
NS_DEFINE_NAMED_CID(NS_COOKIEPROMPTSERVICE_CID);
|
|
|
|
NS_DEFINE_NAMED_CID(NS_COOKIEPERMISSION_CID);
|
|
|
|
|
|
|
|
|
|
|
|
static const mozilla::Module::CIDEntry kCookieCIDs[] = {
|
2013-04-03 05:06:20 +04:00
|
|
|
{ &kNS_PERMISSIONMANAGER_CID, false, nullptr, nsIPermissionManagerConstructor },
|
|
|
|
{ &kNS_POPUPWINDOWMANAGER_CID, false, nullptr, nsPopupWindowManagerConstructor },
|
|
|
|
{ &kNS_COOKIEPROMPTSERVICE_CID, false, nullptr, nsCookiePromptServiceConstructor },
|
|
|
|
{ &kNS_COOKIEPERMISSION_CID, false, nullptr, nsCookiePermissionConstructor },
|
|
|
|
{ nullptr }
|
2010-06-10 22:11:40 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
static const mozilla::Module::ContractIDEntry kCookieContracts[] = {
|
|
|
|
{ NS_PERMISSIONMANAGER_CONTRACTID, &kNS_PERMISSIONMANAGER_CID },
|
|
|
|
{ NS_POPUPWINDOWMANAGER_CONTRACTID, &kNS_POPUPWINDOWMANAGER_CID },
|
|
|
|
{ NS_COOKIEPROMPTSERVICE_CONTRACTID, &kNS_COOKIEPROMPTSERVICE_CID },
|
|
|
|
{ NS_COOKIEPERMISSION_CONTRACTID, &kNS_COOKIEPERMISSION_CID },
|
2013-04-03 05:06:20 +04:00
|
|
|
{ nullptr }
|
2010-06-10 22:11:40 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
static const mozilla::Module kCookieModule = {
|
|
|
|
mozilla::Module::kVersion,
|
|
|
|
kCookieCIDs,
|
|
|
|
kCookieContracts
|
2001-03-29 06:11:48 +04:00
|
|
|
};
|
|
|
|
|
2010-06-10 22:11:40 +04:00
|
|
|
NSMODULE_DEFN(nsCookieModule) = &kCookieModule;
|