Chromium Code Reviews| 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 30 matching lines...) Expand all Loading... | |
| 41 // security_interstitials::ControllerClient overrides. | 41 // security_interstitials::ControllerClient overrides. |
| 42 void GoBack() override; | 42 void GoBack() override; |
| 43 void GoBackAfterNavigationCommitted() override; | 43 void GoBackAfterNavigationCommitted() override; |
| 44 void Proceed() override; | 44 void Proceed() override; |
| 45 void Reload() override; | 45 void Reload() override; |
| 46 void OpenUrlInCurrentTab(const GURL& url) override; | 46 void OpenUrlInCurrentTab(const GURL& url) override; |
| 47 PrefService* GetPrefService() override; | 47 PrefService* GetPrefService() override; |
| 48 const std::string& GetApplicationLocale() const override; | 48 const std::string& GetApplicationLocale() const override; |
| 49 bool CanLaunchDateAndTimeSettings() override; | 49 bool CanLaunchDateAndTimeSettings() override; |
| 50 void LaunchDateAndTimeSettings() override; | 50 void LaunchDateAndTimeSettings() override; |
| 51 bool CanGoBack() override; | |
|
felt
2017/05/05 00:31:14
nit: can you move this to be next to GoBack()?
edwardjung
2017/05/05 10:24:24
Done.
| |
| 51 | 52 |
| 52 protected: | 53 protected: |
| 53 // security_interstitials::ControllerClient overrides. | 54 // security_interstitials::ControllerClient overrides. |
| 54 const std::string GetExtendedReportingPrefName() const override; | 55 const std::string GetExtendedReportingPrefName() const override; |
| 55 content::WebContents* web_contents_; | 56 content::WebContents* web_contents_; |
| 56 | 57 |
| 57 private: | 58 private: |
| 58 content::InterstitialPage* interstitial_page_; | 59 content::InterstitialPage* interstitial_page_; |
| 59 PrefService* prefs_; | 60 PrefService* prefs_; |
| 60 const std::string app_locale_; | 61 const std::string app_locale_; |
| 61 // The default safe page we should go to if there is no previous page to go | 62 // The default safe page we should go to if there is no previous page to go |
| 62 // back to, e.g. chrome:kChromeUINewTabURL. | 63 // back to, e.g. chrome:kChromeUINewTabURL. |
| 63 const GURL default_safe_page_; | 64 const GURL default_safe_page_; |
| 64 | 65 |
| 65 DISALLOW_COPY_AND_ASSIGN(SecurityInterstitialControllerClient); | 66 DISALLOW_COPY_AND_ASSIGN(SecurityInterstitialControllerClient); |
| 66 }; | 67 }; |
| 67 | 68 |
| 68 } // namespace security_interstitials | 69 } // namespace security_interstitials |
| 69 | 70 |
| 70 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_SECURITY_INTERSTITIAL_CONTR OLLER_CLIENT_H_ | 71 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_SECURITY_INTERSTITIAL_CONTR OLLER_CLIENT_H_ |
| OLD | NEW |