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 COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_ | 5 #ifndef COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_ |
6 #define COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_ | 6 #define COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
84 virtual void Reload() = 0; | 84 virtual void Reload() = 0; |
85 | 85 |
86 MetricsHelper* metrics_helper() const; | 86 MetricsHelper* metrics_helper() const; |
87 | 87 |
88 virtual void OpenUrlInCurrentTab(const GURL& url) = 0; | 88 virtual void OpenUrlInCurrentTab(const GURL& url) = 0; |
89 | 89 |
90 virtual PrefService* GetPrefService() = 0; | 90 virtual PrefService* GetPrefService() = 0; |
91 | 91 |
92 virtual const std::string& GetApplicationLocale() const = 0; | 92 virtual const std::string& GetApplicationLocale() const = 0; |
93 | 93 |
94 // Wehether the interstitial is being displayed in a WebView. | |
95 virtual bool IsWebView() = 0; | |
felt
2017/05/03 18:17:01
Instead of adding "IsWebView()", there should be a
| |
96 | |
94 protected: | 97 protected: |
95 virtual const std::string GetExtendedReportingPrefName() const = 0; | 98 virtual const std::string GetExtendedReportingPrefName() const = 0; |
96 | 99 |
97 private: | 100 private: |
98 std::unique_ptr<MetricsHelper> metrics_helper_; | 101 std::unique_ptr<MetricsHelper> metrics_helper_; |
99 | 102 |
100 DISALLOW_COPY_AND_ASSIGN(ControllerClient); | 103 DISALLOW_COPY_AND_ASSIGN(ControllerClient); |
101 }; | 104 }; |
102 | 105 |
103 } // namespace security_interstitials | 106 } // namespace security_interstitials |
104 | 107 |
105 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_ | 108 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_ |
OLD | NEW |