Chromium Code Reviews| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 97 void OnTimerExpired(); | 97 void OnTimerExpired(); |
| 98 | 98 |
| 99 // These are virtual for tests: | 99 // These are virtual for tests: |
| 100 virtual void CheckForCaptivePortal(); | 100 virtual void CheckForCaptivePortal(); |
| 101 virtual void ShowCaptivePortalInterstitial(const GURL& landing_url); | 101 virtual void ShowCaptivePortalInterstitial(const GURL& landing_url); |
| 102 virtual void ShowSSLInterstitial(); | 102 virtual void ShowSSLInterstitial(); |
| 103 virtual bool GetSuggestedUrl(const std::vector<std::string>& dns_names, | 103 virtual bool GetSuggestedUrl(const std::vector<std::string>& dns_names, |
| 104 GURL* suggested_url) const; | 104 GURL* suggested_url) const; |
| 105 virtual void CheckSuggestedUrl(const GURL& suggested_url); | 105 virtual void CheckSuggestedUrl(const GURL& suggested_url); |
| 106 virtual void NavigateToSuggestedURL(const GURL& suggested_url); | 106 virtual void NavigateToSuggestedURL(const GURL& suggested_url); |
| 107 virtual bool IsOverridable(); | |
|
meacer
2015/08/20 23:15:22
const method
meacer
2015/08/20 23:15:22
nit: Rename this to IsErrorOverridable()
Bhanu Dev
2015/08/21 00:52:16
Done.
Bhanu Dev
2015/08/21 00:52:16
Done.
| |
| 107 | 108 |
| 108 // content::NotificationObserver: | 109 // content::NotificationObserver: |
| 109 void Observe( | 110 void Observe( |
| 110 int type, | 111 int type, |
| 111 const content::NotificationSource& source, | 112 const content::NotificationSource& source, |
| 112 const content::NotificationDetails& details) override; | 113 const content::NotificationDetails& details) override; |
| 113 | 114 |
| 114 // content::WebContentsObserver: | 115 // content::WebContentsObserver: |
| 115 void DidStartNavigationToPendingEntry( | 116 void DidStartNavigationToPendingEntry( |
| 116 const GURL& url, | 117 const GURL& url, |
| (...skipping 18 matching lines...) Expand all Loading... | |
| 135 base::OneShotTimer<SSLErrorHandler> timer_; | 136 base::OneShotTimer<SSLErrorHandler> timer_; |
| 136 | 137 |
| 137 scoped_ptr<CommonNameMismatchHandler> common_name_mismatch_handler_; | 138 scoped_ptr<CommonNameMismatchHandler> common_name_mismatch_handler_; |
| 138 | 139 |
| 139 scoped_ptr<SSLCertReporter> ssl_cert_reporter_; | 140 scoped_ptr<SSLCertReporter> ssl_cert_reporter_; |
| 140 | 141 |
| 141 DISALLOW_COPY_AND_ASSIGN(SSLErrorHandler); | 142 DISALLOW_COPY_AND_ASSIGN(SSLErrorHandler); |
| 142 }; | 143 }; |
| 143 | 144 |
| 144 #endif // CHROME_BROWSER_SSL_SSL_ERROR_HANDLER_H_ | 145 #endif // CHROME_BROWSER_SSL_SSL_ERROR_HANDLER_H_ |
| OLD | NEW |