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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
80 virtual void GoBackAfterNavigationCommitted() = 0; | 80 virtual void GoBackAfterNavigationCommitted() = 0; |
81 | 81 |
82 // Close the error and proceed to the blocked page. | 82 // Close the error and proceed to the blocked page. |
83 virtual void Proceed() = 0; | 83 virtual void Proceed() = 0; |
84 | 84 |
85 // Reload the blocked page to see if it succeeds now. | 85 // Reload the blocked page to see if it succeeds now. |
86 virtual void Reload() = 0; | 86 virtual void Reload() = 0; |
87 | 87 |
88 MetricsHelper* metrics_helper() const; | 88 MetricsHelper* metrics_helper() const; |
89 | 89 |
90 virtual void OpenUrlInNewForegroundTab(const GURL& url) = 0; | |
91 | |
90 virtual void OpenUrlInCurrentTab(const GURL& url) = 0; | 92 virtual void OpenUrlInCurrentTab(const GURL& url) = 0; |
91 | 93 |
92 virtual PrefService* GetPrefService() = 0; | 94 virtual PrefService* GetPrefService() = 0; |
93 | 95 |
94 virtual const std::string& GetApplicationLocale() const = 0; | 96 virtual const std::string& GetApplicationLocale() const = 0; |
95 | 97 |
98 virtual GURL GetHelpCenterUrl() const = 0; | |
99 | |
100 virtual void SetHelpCenterUrlForTesting(const GURL test_url) = 0; | |
meacer
2017/06/23 20:28:32
const GURL&
sperigo
2017/06/23 21:32:12
Done.
| |
101 | |
96 protected: | 102 protected: |
97 virtual const std::string GetExtendedReportingPrefName() const = 0; | 103 virtual const std::string GetExtendedReportingPrefName() const = 0; |
98 | 104 |
99 private: | 105 private: |
100 std::unique_ptr<MetricsHelper> metrics_helper_; | 106 std::unique_ptr<MetricsHelper> metrics_helper_; |
101 | 107 |
102 DISALLOW_COPY_AND_ASSIGN(ControllerClient); | 108 DISALLOW_COPY_AND_ASSIGN(ControllerClient); |
103 }; | 109 }; |
104 | 110 |
105 } // namespace security_interstitials | 111 } // namespace security_interstitials |
106 | 112 |
107 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_ | 113 #endif // COMPONENTS_SECURITY_INTERSTITIALS_CORE_CONTROLLER_CLIENT_H_ |
OLD | NEW |