extensions/cookie/nsPopupWindowManager.h

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:bc18662e20ac
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/. */
5
6 #ifndef nsPopupWindowManager_h__
7 #define nsPopupWindowManager_h__
8
9 #include "nsCOMPtr.h"
10
11 #include "nsIObserver.h"
12 #include "nsIPermissionManager.h"
13 #include "nsIPopupWindowManager.h"
14 #include "nsWeakReference.h"
15
16 class nsPopupWindowManager : public nsIPopupWindowManager,
17 public nsIObserver,
18 public nsSupportsWeakReference {
19
20 public:
21 NS_DECL_ISUPPORTS
22 NS_DECL_NSIPOPUPWINDOWMANAGER
23 NS_DECL_NSIOBSERVER
24
25 nsPopupWindowManager();
26 virtual ~nsPopupWindowManager();
27 nsresult Init();
28
29 private:
30 uint32_t mPolicy;
31 nsCOMPtr<nsIPermissionManager> mPermissionManager;
32 };
33
34 // {822bcd11-6432-48be-9e9d-36f7804b7747}
35 #define NS_POPUPWINDOWMANAGER_CID \
36 {0x822bcd11, 0x6432, 0x48be, {0x9e, 0x9d, 0x36, 0xf7, 0x80, 0x4b, 0x77, 0x47}}
37
38 #endif /* nsPopupWindowManager_h__ */

mercurial