OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_INTERSTITIALS_CHROME_CONTROLLER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_INTERSTITIALS_CHROME_CONTROLLER_CLIENT_H_ |
6 #define CHROME_BROWSER_INTERSTITIALS_CHROME_CONTROLLER_CLIENT_H_ | 6 #define CHROME_BROWSER_INTERSTITIALS_CHROME_CONTROLLER_CLIENT_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/security_interstitials/core/controller_client.h" | 9 #include "components/security_interstitials/content/security_interstitial_contro
ller_client.h" |
10 | 10 |
11 namespace content { | 11 namespace content { |
12 class InterstitialPage; | |
13 class WebContents; | 12 class WebContents; |
14 } | 13 } |
15 | 14 |
16 // Provides embedder-specific logic for the security error page controller. | 15 // Provides embedder-specific logic for the security error page controller. |
17 class ChromeControllerClient : public security_interstitials::ControllerClient { | 16 class ChromeControllerClient |
| 17 : public security_interstitials::SecurityInterstitialControllerClient { |
18 public: | 18 public: |
19 ChromeControllerClient( | 19 ChromeControllerClient( |
20 content::WebContents* web_contents, | 20 content::WebContents* web_contents, |
21 std::unique_ptr<security_interstitials::MetricsHelper> metrics_helper); | 21 std::unique_ptr<security_interstitials::MetricsHelper> metrics_helper); |
22 ~ChromeControllerClient() override; | 22 ~ChromeControllerClient() override; |
23 | 23 |
24 void set_interstitial_page(content::InterstitialPage* interstitial_page); | |
25 | |
26 // security_interstitials::ControllerClient overrides | 24 // security_interstitials::ControllerClient overrides |
27 bool CanLaunchDateAndTimeSettings() override; | 25 bool CanLaunchDateAndTimeSettings() override; |
28 void LaunchDateAndTimeSettings() override; | 26 void LaunchDateAndTimeSettings() override; |
29 void GoBack() override; | |
30 void GoBackAfterNavigationCommitted() override; | |
31 void Proceed() override; | |
32 void Reload() override; | |
33 void OpenUrlInCurrentTab(const GURL& url) override; | |
34 | |
35 PrefService* GetPrefService() override; | |
36 | |
37 protected: | |
38 // security_interstitials::ControllerClient overrides | |
39 const std::string& GetApplicationLocale() override; | |
40 const std::string GetExtendedReportingPrefName() override; | |
41 | |
42 private: | |
43 content::WebContents* web_contents_; | |
44 content::InterstitialPage* interstitial_page_; | |
45 | 27 |
46 DISALLOW_COPY_AND_ASSIGN(ChromeControllerClient); | 28 DISALLOW_COPY_AND_ASSIGN(ChromeControllerClient); |
47 }; | 29 }; |
48 | 30 |
49 #endif // CHROME_BROWSER_INTERSTITIALS_CHROME_CONTROLLER_CLIENT_H_ | 31 #endif // CHROME_BROWSER_INTERSTITIALS_CHROME_CONTROLLER_CLIENT_H_ |
OLD | NEW |