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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2321543002: Merge CrossSiteResourceHandler and NavigationResourceThrottle (Closed)
Patch Set: Rebase Created 4 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 #if defined(ENABLE_EXTENSIONS) 1310 #if defined(ENABLE_EXTENSIONS)
1311 return ChromeContentBrowserClientExtensionsPart:: 1311 return ChromeContentBrowserClientExtensionsPart::
1312 ShouldSwapBrowsingInstancesForNavigation( 1312 ShouldSwapBrowsingInstancesForNavigation(
1313 site_instance, current_url, new_url); 1313 site_instance, current_url, new_url);
1314 #else 1314 #else
1315 return false; 1315 return false;
1316 #endif 1316 #endif
1317 } 1317 }
1318 1318
1319 bool ChromeContentBrowserClient::ShouldSwapProcessesForRedirect( 1319 bool ChromeContentBrowserClient::ShouldSwapProcessesForRedirect(
1320 content::ResourceContext* resource_context, const GURL& current_url, 1320 content::BrowserContext* browser_context,
1321 const GURL& current_url,
1321 const GURL& new_url) { 1322 const GURL& new_url) {
1322 #if defined(ENABLE_EXTENSIONS) 1323 #if defined(ENABLE_EXTENSIONS)
1323 return ChromeContentBrowserClientExtensionsPart:: 1324 return ChromeContentBrowserClientExtensionsPart::
1324 ShouldSwapProcessesForRedirect(resource_context, current_url, new_url); 1325 ShouldSwapProcessesForRedirect(browser_context, current_url, new_url);
1325 #else 1326 #else
1326 return false; 1327 return false;
1327 #endif 1328 #endif
1328 } 1329 }
1329 1330
1330 bool ChromeContentBrowserClient::ShouldAssignSiteForURL(const GURL& url) { 1331 bool ChromeContentBrowserClient::ShouldAssignSiteForURL(const GURL& url) {
1331 return !url.SchemeIs(chrome::kChromeNativeScheme); 1332 return !url.SchemeIs(chrome::kChromeNativeScheme);
1332 } 1333 }
1333 1334
1334 std::string ChromeContentBrowserClient::GetCanonicalEncodingNameByAliasName( 1335 std::string ChromeContentBrowserClient::GetCanonicalEncodingNameByAliasName(
(...skipping 1833 matching lines...) Expand 10 before | Expand all | Expand 10 after
3168 if (channel <= kMaxDisableEncryptionChannel) { 3169 if (channel <= kMaxDisableEncryptionChannel) {
3169 static const char* const kWebRtcDevSwitchNames[] = { 3170 static const char* const kWebRtcDevSwitchNames[] = {
3170 switches::kDisableWebRtcEncryption, 3171 switches::kDisableWebRtcEncryption,
3171 }; 3172 };
3172 to_command_line->CopySwitchesFrom(from_command_line, 3173 to_command_line->CopySwitchesFrom(from_command_line,
3173 kWebRtcDevSwitchNames, 3174 kWebRtcDevSwitchNames,
3174 arraysize(kWebRtcDevSwitchNames)); 3175 arraysize(kWebRtcDevSwitchNames));
3175 } 3176 }
3176 } 3177 }
3177 #endif // defined(ENABLE_WEBRTC) 3178 #endif // defined(ENABLE_WEBRTC)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698