зеркало из https://github.com/mozilla/pjs.git
Bug 615745 - Make CookieServiceChild add strong pref observers. r=dwitte a=blocking-fennec
This commit is contained in:
Родитель
1e5e274ca6
Коммит
23fb071449
|
@ -67,7 +67,10 @@ CookieServiceChild::GetSingleton()
|
|||
return gCookieService;
|
||||
}
|
||||
|
||||
NS_IMPL_ISUPPORTS2(CookieServiceChild, nsICookieService, nsIObserver)
|
||||
NS_IMPL_ISUPPORTS3(CookieServiceChild,
|
||||
nsICookieService,
|
||||
nsIObserver,
|
||||
nsISupportsWeakReference)
|
||||
|
||||
CookieServiceChild::CookieServiceChild()
|
||||
: mCookieBehavior(BEHAVIOR_ACCEPT)
|
||||
|
|
|
@ -44,6 +44,7 @@
|
|||
#include "nsIObserver.h"
|
||||
#include "nsIPrefBranch.h"
|
||||
#include "mozIThirdPartyUtil.h"
|
||||
#include "nsWeakReference.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
@ -51,6 +52,7 @@ namespace net {
|
|||
class CookieServiceChild : public PCookieServiceChild
|
||||
, public nsICookieService
|
||||
, public nsIObserver
|
||||
, public nsSupportsWeakReference
|
||||
{
|
||||
public:
|
||||
NS_DECL_ISUPPORTS
|
||||
|
|
Загрузка…
Ссылка в новой задаче