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 #include "content/public/browser/interstitial_page.h" |
11 namespace content { | 11 #include "content/public/browser/web_contents.h" |
estark
2015/12/01 18:40:17
can these be left as forward-declarations?
felt
2015/12/01 19:13:44
Gah, I was just working in google3 where forward-d
| |
12 class WebContents; | |
13 } | |
14 | 12 |
15 // Provides embedder-specific logic for the security error page controller. | 13 // Provides embedder-specific logic for the security error page controller. |
16 class ChromeControllerClient : public security_interstitials::ControllerClient { | 14 class ChromeControllerClient : public security_interstitials::ControllerClient { |
17 public: | 15 public: |
18 explicit ChromeControllerClient(content::WebContents* web_contents); | 16 explicit ChromeControllerClient(content::WebContents* web_contents); |
19 ~ChromeControllerClient() override; | 17 ~ChromeControllerClient() override; |
20 | 18 |
19 void set_interstitial_page(content::InterstitialPage* interstitial_page); | |
20 | |
21 // security_interstitials::ControllerClient overrides | |
22 bool CanLaunchDateAndTimeSettings() override; | |
23 void LaunchDateAndTimeSettings() override; | |
24 void GoBack() override; | |
25 | |
21 protected: | 26 protected: |
22 // security_interstitials::ControllerClient overrides | 27 // security_interstitials::ControllerClient overrides |
23 void OpenUrlInCurrentTab(const GURL& url) override; | 28 void OpenUrlInCurrentTab(const GURL& url) override; |
24 const std::string& GetApplicationLocale() override; | 29 const std::string& GetApplicationLocale() override; |
25 PrefService* GetPrefService() override; | 30 PrefService* GetPrefService() override; |
26 const std::string GetExtendedReportingPrefName() override; | 31 const std::string GetExtendedReportingPrefName() override; |
27 | 32 |
28 private: | 33 private: |
29 content::WebContents* web_contents_; | 34 content::WebContents* web_contents_; |
35 content::InterstitialPage* interstitial_page_; | |
30 | 36 |
31 DISALLOW_COPY_AND_ASSIGN(ChromeControllerClient); | 37 DISALLOW_COPY_AND_ASSIGN(ChromeControllerClient); |
32 }; | 38 }; |
33 | 39 |
34 #endif // CHROME_BROWSER_INTERSTITIALS_CHROME_CONTROLLER_CLIENT_H_ | 40 #endif // CHROME_BROWSER_INTERSTITIALS_CHROME_CONTROLLER_CLIENT_H_ |
OLD | NEW |