Checking in permissions rewrite phase 1 (troop deployment in the permission
gulf). Bug 191380, patch by mvl@exedo.nl (Michiel van Leeuwen), r=dwitte@stanford.edu, sr=darin.
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
#include "nsICategoryManager.h"
|
||||
#include "nsXPIDLString.h"
|
||||
#include "nsCookiePromptService.h"
|
||||
#include "nsCookiePermission.h"
|
||||
|
||||
// Define the constructor function for the objects
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCookie)
|
||||
@@ -64,6 +65,7 @@ NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsPermissionManager, Init)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsPopupWindowManager, Init)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsCookieHTTPNotify, Init)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsCookiePromptService)
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(nsCookiePermission, Init)
|
||||
|
||||
static NS_METHOD
|
||||
RegisterContentPolicy(nsIComponentManager *aCompMgr, nsIFile *aPath,
|
||||
@@ -140,6 +142,11 @@ static const nsModuleComponentInfo components[] = {
|
||||
NS_COOKIEPROMPTSERVICE_CONTRACTID,
|
||||
nsCookiePromptServiceConstructor
|
||||
},
|
||||
{ "CookiePermission",
|
||||
NS_COOKIEPERMISSION_CID,
|
||||
NS_COOKIEPERMISSION_CONTRACTID,
|
||||
nsCookiePermissionConstructor
|
||||
},
|
||||
{ NS_COOKIEHTTPNOTIFY_CLASSNAME,
|
||||
NS_COOKIEHTTPNOTIFY_CID,
|
||||
NS_COOKIEHTTPNOTIFY_CONTRACTID,
|
||||
|
||||
Reference in New Issue
Block a user