OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_BROWSER_SSL_SSL_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_SSL_SSL_MANAGER_H_ |
6 #define CONTENT_BROWSER_SSL_SSL_MANAGER_H_ | 6 #define CONTENT_BROWSER_SSL_SSL_MANAGER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 SSLPolicyBackend* backend() { return &backend_; } | 78 SSLPolicyBackend* backend() { return &backend_; } |
79 | 79 |
80 // The navigation controller associated with this SSLManager. The | 80 // The navigation controller associated with this SSLManager. The |
81 // NavigationController is guaranteed to outlive the SSLManager. | 81 // NavigationController is guaranteed to outlive the SSLManager. |
82 NavigationControllerImpl* controller() { return controller_; } | 82 NavigationControllerImpl* controller() { return controller_; } |
83 | 83 |
84 void DidCommitProvisionalLoad(const LoadCommittedDetails& details); | 84 void DidCommitProvisionalLoad(const LoadCommittedDetails& details); |
85 void DidStartResourceResponse(const ResourceRequestDetails& details); | 85 void DidStartResourceResponse(const ResourceRequestDetails& details); |
86 void DidReceiveResourceRedirect(const ResourceRedirectDetails& details); | 86 void DidReceiveResourceRedirect(const ResourceRedirectDetails& details); |
87 | 87 |
88 // Insecure content entry point. | 88 // Entry point for insecure mixed content (loaded over HTTP). |
89 void DidRunInsecureContent(const GURL& security_origin); | 89 void DidRunInsecureContent(const GURL& security_origin); |
90 | 90 |
| 91 // Entry point for content loaded with HTTPS certificate errors. |
| 92 void DidRunContentWithCertErrors(const GURL& security_origin); |
| 93 |
91 private: | 94 private: |
92 // Updates the NavigationEntry with our current state. This will | 95 // Updates the NavigationEntry with our current state. This will |
93 // notify the WebContents of an SSL state change if a change was | 96 // notify the WebContents of an SSL state change if a change was |
94 // actually made. | 97 // actually made. |
95 void UpdateEntry(NavigationEntryImpl* entry); | 98 void UpdateEntry(NavigationEntryImpl* entry); |
96 | 99 |
97 // Notifies the WebContents that the SSL state changed. | 100 // Notifies the WebContents that the SSL state changed. |
98 void NotifyDidChangeVisibleSSLState(); | 101 void NotifyDidChangeVisibleSSLState(); |
99 | 102 |
100 // The backend for the SSLPolicy to actuate its decisions. | 103 // The backend for the SSLPolicy to actuate its decisions. |
101 SSLPolicyBackend backend_; | 104 SSLPolicyBackend backend_; |
102 | 105 |
103 // The SSLPolicy instance for this manager. | 106 // The SSLPolicy instance for this manager. |
104 std::unique_ptr<SSLPolicy> policy_; | 107 std::unique_ptr<SSLPolicy> policy_; |
105 | 108 |
106 // The NavigationController that owns this SSLManager. We are responsible | 109 // The NavigationController that owns this SSLManager. We are responsible |
107 // for the security UI of this tab. | 110 // for the security UI of this tab. |
108 NavigationControllerImpl* controller_; | 111 NavigationControllerImpl* controller_; |
109 | 112 |
110 DISALLOW_COPY_AND_ASSIGN(SSLManager); | 113 DISALLOW_COPY_AND_ASSIGN(SSLManager); |
111 }; | 114 }; |
112 | 115 |
113 } // namespace content | 116 } // namespace content |
114 | 117 |
115 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_ | 118 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_ |
OLD | NEW |