Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Side by Side Diff: chrome/browser/ssl/ssl_blocking_page.h

Issue 2949003003: Implement a skeleton of the Superfish interstitial (Closed)
Patch Set: meacer comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // This is static because the constructor uses expensive to compute parameters 52 // This is static because the constructor uses expensive to compute parameters
53 // more than once (e.g. overrideable). 53 // more than once (e.g. overrideable).
54 static SSLBlockingPage* Create( 54 static SSLBlockingPage* Create(
55 content::WebContents* web_contents, 55 content::WebContents* web_contents,
56 int cert_error, 56 int cert_error,
57 const net::SSLInfo& ssl_info, 57 const net::SSLInfo& ssl_info,
58 const GURL& request_url, 58 const GURL& request_url,
59 int options_mask, 59 int options_mask,
60 const base::Time& time_triggered, 60 const base::Time& time_triggered,
61 std::unique_ptr<SSLCertReporter> ssl_cert_reporter, 61 std::unique_ptr<SSLCertReporter> ssl_cert_reporter,
62 bool is_superfish,
62 const base::Callback<void(content::CertificateRequestResultType)>& 63 const base::Callback<void(content::CertificateRequestResultType)>&
63 callback); 64 callback);
64 65
65 // InterstitialPageDelegate method: 66 // InterstitialPageDelegate method:
66 InterstitialPageDelegate::TypeID GetTypeForTesting() const override; 67 InterstitialPageDelegate::TypeID GetTypeForTesting() const override;
67 68
68 // Returns true if |options_mask| refers to a soft-overridable SSL error and 69 // Returns true if |options_mask| refers to a soft-overridable SSL error and
69 // if SSL error overriding is allowed by policy. 70 // if SSL error overriding is allowed by policy.
70 static bool IsOverridable(int options_mask, const Profile* const profile); 71 static bool IsOverridable(int options_mask, const Profile* const profile);
71 72
(...skipping 20 matching lines...) Expand all
92 SSLBlockingPage( 93 SSLBlockingPage(
93 content::WebContents* web_contents, 94 content::WebContents* web_contents,
94 int cert_error, 95 int cert_error,
95 const net::SSLInfo& ssl_info, 96 const net::SSLInfo& ssl_info,
96 const GURL& request_url, 97 const GURL& request_url,
97 int options_mask, 98 int options_mask,
98 const base::Time& time_triggered, 99 const base::Time& time_triggered,
99 std::unique_ptr<SSLCertReporter> ssl_cert_reporter, 100 std::unique_ptr<SSLCertReporter> ssl_cert_reporter,
100 bool overrideable, 101 bool overrideable,
101 std::unique_ptr<ChromeMetricsHelper> metrics_helper, 102 std::unique_ptr<ChromeMetricsHelper> metrics_helper,
103 bool is_superfish,
102 const base::Callback<void(content::CertificateRequestResultType)>& 104 const base::Callback<void(content::CertificateRequestResultType)>&
103 callback); 105 callback);
104 106
105 void NotifyDenyCertificate(); 107 void NotifyDenyCertificate();
106 108
107 base::Callback<void(content::CertificateRequestResultType)> callback_; 109 base::Callback<void(content::CertificateRequestResultType)> callback_;
108 const net::SSLInfo ssl_info_; 110 const net::SSLInfo ssl_info_;
109 const bool overridable_; // The UI allows the user to override the error. 111 const bool overridable_; // The UI allows the user to override the error.
110 112
111 // The user previously allowed a bad certificate, but the decision has now 113 // The user previously allowed a bad certificate, but the decision has now
112 // expired. 114 // expired.
113 const bool expired_but_previously_allowed_; 115 const bool expired_but_previously_allowed_;
114 116
115 const std::unique_ptr<CertReportHelper> cert_report_helper_; 117 const std::unique_ptr<CertReportHelper> cert_report_helper_;
116 const std::unique_ptr<security_interstitials::SSLErrorUI> ssl_error_ui_; 118 const std::unique_ptr<security_interstitials::SSLErrorUI> ssl_error_ui_;
117 119
118 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage); 120 DISALLOW_COPY_AND_ASSIGN(SSLBlockingPage);
119 }; 121 };
120 122
121 #endif // CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_ 123 #endif // CHROME_BROWSER_SSL_SSL_BLOCKING_PAGE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ssl/ssl_blocking_page.cc » ('j') | chrome/browser/ssl/ssl_blocking_page.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698