OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_SSL_SUPERFISH_BLOCKING_PAGE_H_ | |
6 #define CHROME_BROWSER_SSL_SUPERFISH_BLOCKING_PAGE_H_ | |
7 | |
8 #include "chrome/browser/ssl/ssl_blocking_page.h" | |
9 | |
10 // SuperfishBlockingPage is a subclass of SSLBlockingPage that customizes the | |
11 // interstitial page to show instructions for removing the Superfish software, | |
12 // which interferes with HTTPS connections. | |
13 class SuperfishBlockingPage : public SSLBlockingPage { | |
14 public: | |
15 // Interstitial type, used in tests. | |
16 static InterstitialPageDelegate::TypeID kTypeForTesting; | |
17 | |
18 ~SuperfishBlockingPage() override{}; | |
meacer
2017/06/22 19:06:19
Extra semicolumn
estark
2017/06/22 22:01:05
n/a
| |
19 | |
20 // Creates a Superfish blocking page. If the blocking page isn't shown, the | |
21 // caller is responsible for cleaning up the blocking page, otherwise the | |
22 // interstitial takes ownership when shown. |options_mask| must be a bitwise | |
23 // mask of SSLErrorUI::SSLErrorOptionsMask values. | |
24 static SuperfishBlockingPage* Create( | |
25 content::WebContents* web_contents, | |
26 int cert_error, | |
27 const net::SSLInfo& ssl_info, | |
28 const GURL& request_url, | |
29 int options_mask, | |
30 const base::Time& time_triggered, | |
31 std::unique_ptr<SSLCertReporter> ssl_cert_reporter, | |
32 const base::Callback<void(content::CertificateRequestResultType)>& | |
33 callback); | |
34 | |
35 // InterstitialPageDelegate method: | |
36 InterstitialPageDelegate::TypeID GetTypeForTesting() const override; | |
37 | |
38 private: | |
39 SuperfishBlockingPage( | |
40 content::WebContents* web_contents, | |
41 const net::SSLInfo& ssl_info, | |
42 const GURL& request_url, | |
43 int options_mask, | |
44 const base::Time& time_triggered, | |
45 std::unique_ptr<SSLCertReporter> ssl_cert_reporter, | |
46 bool overrideable, | |
47 std::unique_ptr<ChromeMetricsHelper> metrics_helper, | |
48 const base::Callback<void(content::CertificateRequestResultType)>& | |
49 callback); | |
50 | |
51 DISALLOW_COPY_AND_ASSIGN(SuperfishBlockingPage); | |
52 }; | |
53 | |
54 #endif // CHROME_BROWSER_SSL_SUPERFISH_BLOCKING_PAGE_H_ | |
OLD | NEW |