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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 // Reload the blocked page to see if it succeeds now. | 83 // Reload the blocked page to see if it succeeds now. |
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; |
| 93 |
92 protected: | 94 protected: |
93 virtual const std::string& GetApplicationLocale() = 0; | 95 virtual const std::string GetExtendedReportingPrefName() const = 0; |
94 virtual const std::string GetExtendedReportingPrefName() = 0; | |
95 | 96 |
96 private: | 97 private: |
97 std::unique_ptr<MetricsHelper> metrics_helper_; | 98 std::unique_ptr<MetricsHelper> metrics_helper_; |
98 | 99 |
99 DISALLOW_COPY_AND_ASSIGN(ControllerClient); | 100 DISALLOW_COPY_AND_ASSIGN(ControllerClient); |
100 }; | 101 }; |
101 | 102 |
102 } // namespace security_interstitials | 103 } // namespace security_interstitials |
103 | 104 |
104 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_ | 105 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_ |
OLD | NEW |