Merge mozilla-b2g34 to 2.1s. a=merge
[gecko.git] / extensions / cookie / nsPopupWindowManager.h
blobdd83b5abbf02adcc01a9ec3efe979d123339b8b2
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef nsPopupWindowManager_h__
7 #define nsPopupWindowManager_h__
9 #include "nsCOMPtr.h"
11 #include "nsIObserver.h"
12 #include "nsIPermissionManager.h"
13 #include "nsIPopupWindowManager.h"
14 #include "nsWeakReference.h"
16 class nsPopupWindowManager : public nsIPopupWindowManager,
17 public nsIObserver,
18 public nsSupportsWeakReference {
20 public:
21 NS_DECL_ISUPPORTS
22 NS_DECL_NSIPOPUPWINDOWMANAGER
23 NS_DECL_NSIOBSERVER
25 nsPopupWindowManager();
26 nsresult Init();
28 private:
29 virtual ~nsPopupWindowManager();
31 uint32_t mPolicy;
32 nsCOMPtr<nsIPermissionManager> mPermissionManager;
35 // {822bcd11-6432-48be-9e9d-36f7804b7747}
36 #define NS_POPUPWINDOWMANAGER_CID \
37 {0x822bcd11, 0x6432, 0x48be, {0x9e, 0x9d, 0x36, 0xf7, 0x80, 0x4b, 0x77, 0x47}}
39 #endif /* nsPopupWindowManager_h__ */