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

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

Issue 2397893002: Revert the merge of CrossSiteResourceHandler and NavigationResourceThrottle. (Closed)
Patch Set: Add back initialization of started_from_context_menu_. Created 4 years, 2 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 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 #if defined(ENABLE_EXTENSIONS) 1341 #if defined(ENABLE_EXTENSIONS)
1342 return ChromeContentBrowserClientExtensionsPart:: 1342 return ChromeContentBrowserClientExtensionsPart::
1343 ShouldSwapBrowsingInstancesForNavigation( 1343 ShouldSwapBrowsingInstancesForNavigation(
1344 site_instance, current_url, new_url); 1344 site_instance, current_url, new_url);
1345 #else 1345 #else
1346 return false; 1346 return false;
1347 #endif 1347 #endif
1348 } 1348 }
1349 1349
1350 bool ChromeContentBrowserClient::ShouldSwapProcessesForRedirect( 1350 bool ChromeContentBrowserClient::ShouldSwapProcessesForRedirect(
1351 content::BrowserContext* browser_context, 1351 content::ResourceContext* resource_context, const GURL& current_url,
1352 const GURL& current_url,
1353 const GURL& new_url) { 1352 const GURL& new_url) {
1354 #if defined(ENABLE_EXTENSIONS) 1353 #if defined(ENABLE_EXTENSIONS)
1355 return ChromeContentBrowserClientExtensionsPart:: 1354 return ChromeContentBrowserClientExtensionsPart::
1356 ShouldSwapProcessesForRedirect(browser_context, current_url, new_url); 1355 ShouldSwapProcessesForRedirect(resource_context, current_url, new_url);
1357 #else 1356 #else
1358 return false; 1357 return false;
1359 #endif 1358 #endif
1360 } 1359 }
1361 1360
1362 bool ChromeContentBrowserClient::ShouldAssignSiteForURL(const GURL& url) { 1361 bool ChromeContentBrowserClient::ShouldAssignSiteForURL(const GURL& url) {
1363 return !url.SchemeIs(chrome::kChromeNativeScheme); 1362 return !url.SchemeIs(chrome::kChromeNativeScheme);
1364 } 1363 }
1365 1364
1366 std::string ChromeContentBrowserClient::GetCanonicalEncodingNameByAliasName( 1365 std::string ChromeContentBrowserClient::GetCanonicalEncodingNameByAliasName(
(...skipping 1910 matching lines...) Expand 10 before | Expand all | Expand 10 after
3277 if (channel <= kMaxDisableEncryptionChannel) { 3276 if (channel <= kMaxDisableEncryptionChannel) {
3278 static const char* const kWebRtcDevSwitchNames[] = { 3277 static const char* const kWebRtcDevSwitchNames[] = {
3279 switches::kDisableWebRtcEncryption, 3278 switches::kDisableWebRtcEncryption,
3280 }; 3279 };
3281 to_command_line->CopySwitchesFrom(from_command_line, 3280 to_command_line->CopySwitchesFrom(from_command_line,
3282 kWebRtcDevSwitchNames, 3281 kWebRtcDevSwitchNames,
3283 arraysize(kWebRtcDevSwitchNames)); 3282 arraysize(kWebRtcDevSwitchNames));
3284 } 3283 }
3285 } 3284 }
3286 #endif // defined(ENABLE_WEBRTC) 3285 #endif // defined(ENABLE_WEBRTC)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698