/src/mozilla-central/security/manager/ssl/nsSecureBrowserUIImpl.h
Line | Count | Source (jump to first uncovered line) |
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 nsSecureBrowserUIImpl_h |
7 | | #define nsSecureBrowserUIImpl_h |
8 | | |
9 | | #include "nsCOMPtr.h" |
10 | | #include "nsISecureBrowserUI.h" |
11 | | #include "nsIWebProgressListener.h" |
12 | | #include "nsWeakReference.h" |
13 | | |
14 | | class nsITransportSecurityInfo; |
15 | | class nsIChannel; |
16 | | |
17 | | #define NS_SECURE_BROWSER_UI_CID \ |
18 | | { 0xcc75499a, 0x1dd1, 0x11b2, {0x8a, 0x82, 0xca, 0x41, 0x0a, 0xc9, 0x07, 0xb8}} |
19 | | |
20 | | class nsSecureBrowserUIImpl : public nsISecureBrowserUI |
21 | | , public nsIWebProgressListener |
22 | | , public nsSupportsWeakReference |
23 | | { |
24 | | public: |
25 | | nsSecureBrowserUIImpl(); |
26 | | |
27 | | NS_DECL_ISUPPORTS |
28 | | NS_DECL_NSIWEBPROGRESSLISTENER |
29 | | NS_DECL_NSISECUREBROWSERUI |
30 | | |
31 | | protected: |
32 | 0 | virtual ~nsSecureBrowserUIImpl() {}; |
33 | | |
34 | | // Do mixed content and tracking protection checks. May update mState. |
35 | | void CheckForBlockedContent(); |
36 | | // Given some information about a request from an OnLocationChange event, |
37 | | // update mState and mTopLevelSecurityInfo. |
38 | | nsresult UpdateStateAndSecurityInfo(nsIChannel* channel, nsIURI* uri); |
39 | | |
40 | | uint32_t mState; |
41 | | nsWeakPtr mDocShell; |
42 | | nsWeakPtr mWebProgress; |
43 | | nsCOMPtr<nsITransportSecurityInfo> mTopLevelSecurityInfo; |
44 | | }; |
45 | | |
46 | | #endif // nsSecureBrowserUIImpl_h |