Bug 1935611 - Fix libyuv/libpng link failed for loongarch64. r=glandium,tnikkel,ng
[gecko.git] / security / manager / ssl / nsSecureBrowserUI.h
bloba71d9ebde443cfc987eecdb41f052e754ec1a6bb
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
9 #include "nsCOMPtr.h"
10 #include "nsISecureBrowserUI.h"
11 #include "nsITransportSecurityInfo.h"
12 #include "nsIWebProgressListener.h"
13 #include "nsWeakReference.h"
15 class nsITransportSecurityInfo;
16 class nsIChannel;
18 namespace mozilla {
19 namespace dom {
20 class Document;
21 class WindowGlobalParent;
22 class CanonicalBrowsingContext;
23 } // namespace dom
24 } // namespace mozilla
26 #define NS_SECURE_BROWSER_UI_CID \
27 { \
28 0xcc75499a, 0x1dd1, 0x11b2, { \
29 0x8a, 0x82, 0xca, 0x41, 0x0a, 0xc9, 0x07, 0xb8 \
30 } \
33 class nsSecureBrowserUI : public nsISecureBrowserUI,
34 public nsSupportsWeakReference {
35 public:
36 explicit nsSecureBrowserUI(
37 mozilla::dom::CanonicalBrowsingContext* aBrowsingContext);
39 NS_DECL_ISUPPORTS
40 NS_DECL_NSISECUREBROWSERUI
42 void RecomputeSecurityFlags();
44 protected:
45 virtual ~nsSecureBrowserUI() = default;
47 mozilla::dom::WindowGlobalParent* GetCurrentWindow();
49 uint32_t mState;
50 uint64_t mBrowsingContextId;
53 #endif // nsSecureBrowserUIImpl_h