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 #include "content/public/browser/interstitial_page.h" | |
estark
2015/12/01 21:41:51
remove
felt
2015/12/01 22:59:23
Done.
| |
10 | 11 |
11 namespace content { | 12 namespace content { |
13 class InterstitialPage; | |
12 class WebContents; | 14 class WebContents; |
13 } | 15 } |
14 | 16 |
17 #include "content/public/browser/web_contents.h" | |
estark
2015/12/01 21:41:51
woah, looks like you did something funny here :)
felt
2015/12/01 22:59:23
i have... absolutely no idea what happened here
| |
18 | |
15 // Provides embedder-specific logic for the security error page controller. | 19 // Provides embedder-specific logic for the security error page controller. |
16 class ChromeControllerClient : public security_interstitials::ControllerClient { | 20 class ChromeControllerClient : public security_interstitials::ControllerClient { |
17 public: | 21 public: |
18 explicit ChromeControllerClient(content::WebContents* web_contents); | 22 explicit ChromeControllerClient(content::WebContents* web_contents); |
19 ~ChromeControllerClient() override; | 23 ~ChromeControllerClient() override; |
20 | 24 |
25 void set_interstitial_page(content::InterstitialPage* interstitial_page); | |
26 | |
27 // security_interstitials::ControllerClient overrides | |
28 bool CanLaunchDateAndTimeSettings() override; | |
29 void LaunchDateAndTimeSettings() override; | |
30 void GoBack() override; | |
31 | |
21 protected: | 32 protected: |
22 // security_interstitials::ControllerClient overrides | 33 // security_interstitials::ControllerClient overrides |
23 void OpenUrlInCurrentTab(const GURL& url) override; | 34 void OpenUrlInCurrentTab(const GURL& url) override; |
24 const std::string& GetApplicationLocale() override; | 35 const std::string& GetApplicationLocale() override; |
25 PrefService* GetPrefService() override; | 36 PrefService* GetPrefService() override; |
26 const std::string GetExtendedReportingPrefName() override; | 37 const std::string GetExtendedReportingPrefName() override; |
27 | 38 |
28 private: | 39 private: |
29 content::WebContents* web_contents_; | 40 content::WebContents* web_contents_; |
41 content::InterstitialPage* interstitial_page_; | |
30 | 42 |
31 DISALLOW_COPY_AND_ASSIGN(ChromeControllerClient); | 43 DISALLOW_COPY_AND_ASSIGN(ChromeControllerClient); |
32 }; | 44 }; |
33 | 45 |
34 #endif // CHROME_BROWSER_INTERSTITIALS_CHROME_CONTROLLER_CLIENT_H_ | 46 #endif // CHROME_BROWSER_INTERSTITIALS_CHROME_CONTROLLER_CLIENT_H_ |
OLD | NEW |