| 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/core/controller_client.h" |
| 10 | 10 |
| 11 namespace content { | 11 namespace content { |
| 12 class InterstitialPage; |
| 12 class WebContents; | 13 class WebContents; |
| 13 } | 14 } |
| 14 | 15 |
| 15 // Provides embedder-specific logic for the security error page controller. | 16 // Provides embedder-specific logic for the security error page controller. |
| 16 class ChromeControllerClient : public security_interstitials::ControllerClient { | 17 class ChromeControllerClient : public security_interstitials::ControllerClient { |
| 17 public: | 18 public: |
| 18 explicit ChromeControllerClient(content::WebContents* web_contents); | 19 explicit ChromeControllerClient(content::WebContents* web_contents); |
| 19 ~ChromeControllerClient() override; | 20 ~ChromeControllerClient() override; |
| 20 | 21 |
| 22 void set_interstitial_page(content::InterstitialPage* interstitial_page); |
| 23 |
| 24 // security_interstitials::ControllerClient overrides |
| 25 bool CanLaunchDateAndTimeSettings() override; |
| 26 void LaunchDateAndTimeSettings() override; |
| 27 void GoBack() override; |
| 28 |
| 21 protected: | 29 protected: |
| 22 // security_interstitials::ControllerClient overrides | 30 // security_interstitials::ControllerClient overrides |
| 23 void OpenUrlInCurrentTab(const GURL& url) override; | 31 void OpenUrlInCurrentTab(const GURL& url) override; |
| 24 const std::string& GetApplicationLocale() override; | 32 const std::string& GetApplicationLocale() override; |
| 25 PrefService* GetPrefService() override; | 33 PrefService* GetPrefService() override; |
| 26 const std::string GetExtendedReportingPrefName() override; | 34 const std::string GetExtendedReportingPrefName() override; |
| 27 | 35 |
| 28 private: | 36 private: |
| 29 content::WebContents* web_contents_; | 37 content::WebContents* web_contents_; |
| 38 content::InterstitialPage* interstitial_page_; |
| 30 | 39 |
| 31 DISALLOW_COPY_AND_ASSIGN(ChromeControllerClient); | 40 DISALLOW_COPY_AND_ASSIGN(ChromeControllerClient); |
| 32 }; | 41 }; |
| 33 | 42 |
| 34 #endif // CHROME_BROWSER_INTERSTITIALS_CHROME_CONTROLLER_CLIENT_H_ | 43 #endif // CHROME_BROWSER_INTERSTITIALS_CHROME_CONTROLLER_CLIENT_H_ |
| OLD | NEW |