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

Side by Side Diff: components/security_interstitials/content/security_interstitial_controller_client.cc

Issue 2955503002: Make interstitial links open in a new tab (Closed)
Patch Set: Mock out help center URL in SafeBrowsingBlockingPageTest 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "components/security_interstitials/content/security_interstitial_contro ller_client.h" 5 #include "components/security_interstitials/content/security_interstitial_contro ller_client.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "components/prefs/pref_service.h" 9 #include "components/prefs/pref_service.h"
10 #include "components/safe_browsing/common/safe_browsing_prefs.h" 10 #include "components/safe_browsing/common/safe_browsing_prefs.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 } 64 }
65 65
66 void SecurityInterstitialControllerClient::Proceed() { 66 void SecurityInterstitialControllerClient::Proceed() {
67 interstitial_page_->Proceed(); 67 interstitial_page_->Proceed();
68 } 68 }
69 69
70 void SecurityInterstitialControllerClient::Reload() { 70 void SecurityInterstitialControllerClient::Reload() {
71 web_contents_->GetController().Reload(content::ReloadType::NORMAL, true); 71 web_contents_->GetController().Reload(content::ReloadType::NORMAL, true);
72 } 72 }
73 73
74 void SecurityInterstitialControllerClient::OpenUrlInNewForegroundTab(
75 const GURL& url) {
76 content::OpenURLParams params(url, Referrer(),
77 WindowOpenDisposition::NEW_FOREGROUND_TAB,
78 ui::PAGE_TRANSITION_LINK, false);
79 web_contents_->OpenURL(params);
80 }
81
74 void SecurityInterstitialControllerClient::OpenUrlInCurrentTab( 82 void SecurityInterstitialControllerClient::OpenUrlInCurrentTab(
75 const GURL& url) { 83 const GURL& url) {
76 content::OpenURLParams params(url, Referrer(), 84 content::OpenURLParams params(url, Referrer(),
77 WindowOpenDisposition::CURRENT_TAB, 85 WindowOpenDisposition::CURRENT_TAB,
78 ui::PAGE_TRANSITION_LINK, false); 86 ui::PAGE_TRANSITION_LINK, false);
79 web_contents_->OpenURL(params); 87 web_contents_->OpenURL(params);
80 } 88 }
81 89
82 const std::string& 90 const std::string&
83 SecurityInterstitialControllerClient::GetApplicationLocale() const { 91 SecurityInterstitialControllerClient::GetApplicationLocale() const {
(...skipping 13 matching lines...) Expand all
97 bool SecurityInterstitialControllerClient::CanLaunchDateAndTimeSettings() { 105 bool SecurityInterstitialControllerClient::CanLaunchDateAndTimeSettings() {
98 NOTREACHED(); 106 NOTREACHED();
99 return false; 107 return false;
100 } 108 }
101 109
102 void SecurityInterstitialControllerClient::LaunchDateAndTimeSettings() { 110 void SecurityInterstitialControllerClient::LaunchDateAndTimeSettings() {
103 NOTREACHED(); 111 NOTREACHED();
104 } 112 }
105 113
106 } // namespace security_interstitials 114 } // namespace security_interstitials
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698