OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_SSL_SSL_ERROR_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_SSL_SSL_ERROR_HANDLER_H_ |
6 #define CHROME_BROWSER_SSL_SSL_ERROR_HANDLER_H_ | 6 #define CHROME_BROWSER_SSL_SSL_ERROR_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 private: | 114 private: |
115 // content::NotificationObserver: | 115 // content::NotificationObserver: |
116 void Observe( | 116 void Observe( |
117 int type, | 117 int type, |
118 const content::NotificationSource& source, | 118 const content::NotificationSource& source, |
119 const content::NotificationDetails& details) override; | 119 const content::NotificationDetails& details) override; |
120 | 120 |
121 // content::WebContentsObserver: | 121 // content::WebContentsObserver: |
122 void DidStartNavigationToPendingEntry( | 122 void DidStartNavigationToPendingEntry( |
123 const GURL& url, | 123 const GURL& url, |
124 content::NavigationController::ReloadType reload_type) override; | 124 content::ReloadType reload_type) override; |
125 | 125 |
126 // content::WebContentsObserver: | 126 // content::WebContentsObserver: |
127 void NavigationStopped() override; | 127 void NavigationStopped() override; |
128 | 128 |
129 // Deletes the SSLErrorHandler. This method is called when the page | 129 // Deletes the SSLErrorHandler. This method is called when the page |
130 // load stops or when there is a new navigation. | 130 // load stops or when there is a new navigation. |
131 void DeleteSSLErrorHandler(); | 131 void DeleteSSLErrorHandler(); |
132 | 132 |
133 content::WebContents* web_contents_; | 133 content::WebContents* web_contents_; |
134 const int cert_error_; | 134 const int cert_error_; |
135 const net::SSLInfo ssl_info_; | 135 const net::SSLInfo ssl_info_; |
136 const GURL request_url_; | 136 const GURL request_url_; |
137 const int options_mask_; | 137 const int options_mask_; |
138 base::Callback<void(content::CertificateRequestResultType)> callback_; | 138 base::Callback<void(content::CertificateRequestResultType)> callback_; |
139 Profile* const profile_; | 139 Profile* const profile_; |
140 | 140 |
141 content::NotificationRegistrar registrar_; | 141 content::NotificationRegistrar registrar_; |
142 base::OneShotTimer timer_; | 142 base::OneShotTimer timer_; |
143 | 143 |
144 std::unique_ptr<CommonNameMismatchHandler> common_name_mismatch_handler_; | 144 std::unique_ptr<CommonNameMismatchHandler> common_name_mismatch_handler_; |
145 | 145 |
146 std::unique_ptr<SSLCertReporter> ssl_cert_reporter_; | 146 std::unique_ptr<SSLCertReporter> ssl_cert_reporter_; |
147 | 147 |
148 DISALLOW_COPY_AND_ASSIGN(SSLErrorHandler); | 148 DISALLOW_COPY_AND_ASSIGN(SSLErrorHandler); |
149 }; | 149 }; |
150 | 150 |
151 #endif // CHROME_BROWSER_SSL_SSL_ERROR_HANDLER_H_ | 151 #endif // CHROME_BROWSER_SSL_SSL_ERROR_HANDLER_H_ |
OLD | NEW |