OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_SECURITY_INTERSTITIAL_CONTROLL ER_CLIENT_H_ | 5 #ifndef COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_SECURITY_INTERSTITIAL_CONTROLL ER_CLIENT_H_ |
6 #define COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_SECURITY_INTERSTITIAL_CONTROLL ER_CLIENT_H_ | 6 #define COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_SECURITY_INTERSTITIAL_CONTROLL ER_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 "url/gurl.h" | 10 #include "url/gurl.h" |
(...skipping 26 matching lines...) Expand all Loading... | |
37 | 37 |
38 void set_interstitial_page(content::InterstitialPage* interstitial_page); | 38 void set_interstitial_page(content::InterstitialPage* interstitial_page); |
39 content::InterstitialPage* interstitial_page(); | 39 content::InterstitialPage* interstitial_page(); |
40 | 40 |
41 // security_interstitials::ControllerClient overrides. | 41 // security_interstitials::ControllerClient overrides. |
42 void GoBack() override; | 42 void GoBack() override; |
43 bool CanGoBack() override; | 43 bool CanGoBack() override; |
44 void GoBackAfterNavigationCommitted() override; | 44 void GoBackAfterNavigationCommitted() override; |
45 void Proceed() override; | 45 void Proceed() override; |
46 void Reload() override; | 46 void Reload() override; |
47 void OpenUrlInNewForegroundTab(const GURL& url) override; | |
47 void OpenUrlInCurrentTab(const GURL& url) override; | 48 void OpenUrlInCurrentTab(const GURL& url) override; |
48 PrefService* GetPrefService() override; | 49 PrefService* GetPrefService() override; |
49 const std::string& GetApplicationLocale() const override; | 50 const std::string& GetApplicationLocale() const override; |
50 bool CanLaunchDateAndTimeSettings() override; | 51 bool CanLaunchDateAndTimeSettings() override; |
51 void LaunchDateAndTimeSettings() override; | 52 void LaunchDateAndTimeSettings() override; |
53 GURL GetHelpCenterUrl() const override; | |
54 void SetHelpCenterUrlForTesting(const GURL test_url) override; | |
meacer
2017/06/23 20:28:32
const GURL& test_url
sperigo
2017/06/23 21:32:11
Done.
| |
52 | 55 |
53 protected: | 56 protected: |
54 // security_interstitials::ControllerClient overrides. | 57 // security_interstitials::ControllerClient overrides. |
55 const std::string GetExtendedReportingPrefName() const override; | 58 const std::string GetExtendedReportingPrefName() const override; |
56 content::WebContents* web_contents_; | 59 content::WebContents* web_contents_; |
57 | 60 |
58 private: | 61 private: |
59 content::InterstitialPage* interstitial_page_; | 62 content::InterstitialPage* interstitial_page_; |
60 PrefService* prefs_; | 63 PrefService* prefs_; |
61 const std::string app_locale_; | 64 const std::string app_locale_; |
62 // The default safe page we should go to if there is no previous page to go | 65 // The default safe page we should go to if there is no previous page to go |
63 // back to, e.g. chrome:kChromeUINewTabURL. | 66 // back to, e.g. chrome:kChromeUINewTabURL. |
64 const GURL default_safe_page_; | 67 const GURL default_safe_page_; |
68 // Link to the help center. | |
69 GURL help_center_url_; | |
65 | 70 |
66 DISALLOW_COPY_AND_ASSIGN(SecurityInterstitialControllerClient); | 71 DISALLOW_COPY_AND_ASSIGN(SecurityInterstitialControllerClient); |
67 }; | 72 }; |
68 | 73 |
69 } // namespace security_interstitials | 74 } // namespace security_interstitials |
70 | 75 |
71 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_SECURITY_INTERSTITIAL_CONTR OLLER_CLIENT_H_ | 76 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_SECURITY_INTERSTITIAL_CONTR OLLER_CLIENT_H_ |
OLD | NEW |