Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(460)

Side by Side Diff: components/security_interstitials/core/controller_client.h

Issue 2955503002: Make interstitial links open in a new tab (Closed)
Patch Set: Rebase CL Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698