Chromium Code Reviews| 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 CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ | 5 #ifndef CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ |
| 6 #define CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ | 6 #define CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 81 void OverrideEntry(content::NavigationEntry* entry) override; | 81 void OverrideEntry(content::NavigationEntry* entry) override; |
| 82 void OverrideRendererPrefs(content::RendererPreferences* prefs) override; | 82 void OverrideRendererPrefs(content::RendererPreferences* prefs) override; |
| 83 void OnProceed() override; | 83 void OnProceed() override; |
| 84 void OnDontProceed() override; | 84 void OnDontProceed() override; |
| 85 | 85 |
| 86 // SecurityInterstitialPage implementation: | 86 // SecurityInterstitialPage implementation: |
| 87 bool ShouldCreateNewNavigation() const override; | 87 bool ShouldCreateNewNavigation() const override; |
| 88 void PopulateInterstitialStrings( | 88 void PopulateInterstitialStrings( |
| 89 base::DictionaryValue* load_time_data) override; | 89 base::DictionaryValue* load_time_data) override; |
| 90 | 90 |
| 91 private: | 91 protected: |
| 92 void SetErrorUI(std::unique_ptr<security_interstitials::SSLErrorUI> error_ui); | |
|
meacer
2017/06/22 19:06:18
This seems to be called immediately after the cons
estark
2017/06/22 22:01:05
n/a per your later suggestion about getting rid of
| |
| 93 | |
| 94 static std::unique_ptr<ChromeMetricsHelper> CreateMetricsHelper( | |
| 95 content::WebContents* web_contents, | |
| 96 int cert_error, | |
| 97 const GURL& request_url, | |
| 98 bool overridable); | |
| 99 | |
| 92 SSLBlockingPage( | 100 SSLBlockingPage( |
| 93 content::WebContents* web_contents, | 101 content::WebContents* web_contents, |
| 94 int cert_error, | |
| 95 const net::SSLInfo& ssl_info, | 102 const net::SSLInfo& ssl_info, |
| 96 const GURL& request_url, | 103 const GURL& request_url, |
| 97 int options_mask, | 104 int options_mask, |
| 98 const base::Time& time_triggered, | 105 const base::Time& time_triggered, |
| 99 std::unique_ptr<SSLCertReporter> ssl_cert_reporter, | 106 std::unique_ptr<SSLCertReporter> ssl_cert_reporter, |
| 100 bool overrideable, | 107 bool overrideable, |
| 101 std::unique_ptr<ChromeMetricsHelper> metrics_helper, | 108 std::unique_ptr<ChromeMetricsHelper> metrics_helper, |
| 102 const base::Callback<void(content::CertificateRequestResultType)>& | 109 const base::Callback<void(content::CertificateRequestResultType)>& |
| 103 callback); | 110 callback); |
| 104 | 111 |
| 112 private: | |
| 105 void NotifyDenyCertificate(); | 113 void NotifyDenyCertificate(); |
| 106 | 114 |
| 107 base::Callback<void(content::CertificateRequestResultType)> callback_; | 115 base::Callback<void(content::CertificateRequestResultType)> callback_; |
| 108 const net::SSLInfo ssl_info_; | 116 const net::SSLInfo ssl_info_; |
| 109 const bool overridable_; // The UI allows the user to override the error. | 117 const bool overridable_; // The UI allows the user to override the error. |
| 110 | 118 |
| 111 // The user previously allowed a bad certificate, but the decision has now | 119 // The user previously allowed a bad certificate, but the decision has now |
| 112 // expired. | 120 // expired. |
| 113 const bool expired_but_previously_allowed_; | 121 const bool expired_but_previously_allowed_; |
| 114 | 122 |
| 115 const std::unique_ptr<CertReportHelper> cert_report_helper_; | 123 const std::unique_ptr<CertReportHelper> cert_report_helper_; |
| 116 const std::unique_ptr<security_interstitials::SSLErrorUI> ssl_error_ui_; | 124 std::unique_ptr<security_interstitials::SSLErrorUI> ssl_error_ui_; |
| 117 | 125 |
| 118 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage); | 126 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage); |
| 119 }; | 127 }; |
| 120 | 128 |
| 121 #endif // CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ | 129 #endif // CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ |
| OLD | NEW |