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

Unified Diff: components/security_interstitials/core/controller_client.h

Issue 2955503002: Make interstitial links open in a new tab (Closed)
Patch Set: Mock out help center URL in SafeBrowsingBlockingPageTest Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: components/security_interstitials/core/controller_client.h
diff --git a/components/security_interstitials/core/controller_client.h b/components/security_interstitials/core/controller_client.h
index 613c6bc9f7f6c53cf0c9911e66ae3f6ae4df361f..cfcc8b4b653914b153c40c05ff2ca62bde5ab96b 100644
--- a/components/security_interstitials/core/controller_client.h
+++ b/components/security_interstitials/core/controller_client.h
@@ -9,8 +9,8 @@
#include <string>
#include "base/macros.h"
+#include "url/gurl.h"
-class GURL;
class PrefService;
namespace security_interstitials {
@@ -87,17 +87,25 @@ class ControllerClient {
MetricsHelper* metrics_helper() const;
+ virtual void OpenUrlInNewForegroundTab(const GURL& url) = 0;
+
virtual void OpenUrlInCurrentTab(const GURL& url) = 0;
estark 2017/06/27 00:36:22 Is this still used anywhere? Can we get rid of it?
sperigo 2017/06/27 17:31:59 I don't think so! I left it in in case there was a
virtual PrefService* GetPrefService() = 0;
virtual const std::string& GetApplicationLocale() const = 0;
+ GURL GetBaseHelpCenterUrl() const;
+
+ void SetBaseHelpCenterUrlForTesting(const GURL& test_url);
+
protected:
virtual const std::string GetExtendedReportingPrefName() const = 0;
private:
std::unique_ptr<MetricsHelper> metrics_helper_;
+ // Link to the help center.
+ GURL help_center_url_;
DISALLOW_COPY_AND_ASSIGN(ControllerClient);
};

Powered by Google App Engine
This is Rietveld 408576698