| 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 IOS_CHROME_BROWSER_INTERSTITIALS_IOS_CHROME_CONTROLLER_CLIENT_H_ | 5 #ifndef IOS_CHROME_BROWSER_INTERSTITIALS_IOS_CHROME_CONTROLLER_CLIENT_H_ |
| 6 #define IOS_CHROME_BROWSER_INTERSTITIALS_IOS_CHROME_CONTROLLER_CLIENT_H_ | 6 #define IOS_CHROME_BROWSER_INTERSTITIALS_IOS_CHROME_CONTROLLER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 std::unique_ptr<security_interstitials::MetricsHelper> metrics_helper); | 30 std::unique_ptr<security_interstitials::MetricsHelper> metrics_helper); |
| 31 ~IOSChromeControllerClient() override; | 31 ~IOSChromeControllerClient() override; |
| 32 | 32 |
| 33 void SetWebInterstitial(web::WebInterstitial* web_interstitial); | 33 void SetWebInterstitial(web::WebInterstitial* web_interstitial); |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 // security_interstitials::ControllerClient implementation. | 36 // security_interstitials::ControllerClient implementation. |
| 37 bool CanLaunchDateAndTimeSettings() override; | 37 bool CanLaunchDateAndTimeSettings() override; |
| 38 void LaunchDateAndTimeSettings() override; | 38 void LaunchDateAndTimeSettings() override; |
| 39 void GoBack() override; | 39 void GoBack() override; |
| 40 bool CanGoBack() override; |
| 40 void GoBackAfterNavigationCommitted() override; | 41 void GoBackAfterNavigationCommitted() override; |
| 41 void Proceed() override; | 42 void Proceed() override; |
| 42 void Reload() override; | 43 void Reload() override; |
| 43 void OpenUrlInCurrentTab(const GURL& url) override; | 44 void OpenUrlInCurrentTab(const GURL& url) override; |
| 44 const std::string& GetApplicationLocale() const override; | 45 const std::string& GetApplicationLocale() const override; |
| 45 PrefService* GetPrefService() override; | 46 PrefService* GetPrefService() override; |
| 46 const std::string GetExtendedReportingPrefName() const override; | 47 const std::string GetExtendedReportingPrefName() const override; |
| 47 | 48 |
| 48 web::WebState* web_state_; | 49 web::WebState* web_state_; |
| 49 web::WebInterstitial* web_interstitial_; | 50 web::WebInterstitial* web_interstitial_; |
| 50 | 51 |
| 51 DISALLOW_COPY_AND_ASSIGN(IOSChromeControllerClient); | 52 DISALLOW_COPY_AND_ASSIGN(IOSChromeControllerClient); |
| 52 }; | 53 }; |
| 53 | 54 |
| 54 #endif // IOS_CHROME_BROWSER_INTERSTITIALS_IOS_CHROME_CONTROLLER_CLIENT_H_ | 55 #endif // IOS_CHROME_BROWSER_INTERSTITIALS_IOS_CHROME_CONTROLLER_CLIENT_H_ |
| OLD | NEW |