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 nsSecureBrowserUIImpl_h
7 #define nsSecureBrowserUIImpl_h
10 #include "nsISecureBrowserUI.h"
11 #include "nsITransportSecurityInfo.h"
12 #include "nsIWebProgressListener.h"
13 #include "nsWeakReference.h"
15 class nsITransportSecurityInfo
;
21 class WindowGlobalParent
;
22 class CanonicalBrowsingContext
;
24 } // namespace mozilla
26 #define NS_SECURE_BROWSER_UI_CID \
28 0xcc75499a, 0x1dd1, 0x11b2, { \
29 0x8a, 0x82, 0xca, 0x41, 0x0a, 0xc9, 0x07, 0xb8 \
33 class nsSecureBrowserUI
: public nsISecureBrowserUI
,
34 public nsSupportsWeakReference
{
36 explicit nsSecureBrowserUI(
37 mozilla::dom::CanonicalBrowsingContext
* aBrowsingContext
);
40 NS_DECL_NSISECUREBROWSERUI
42 void RecomputeSecurityFlags();
45 virtual ~nsSecureBrowserUI() = default;
47 mozilla::dom::WindowGlobalParent
* GetCurrentWindow();
50 uint64_t mBrowsingContextId
;
53 #endif // nsSecureBrowserUIImpl_h