| OLD | NEW |
| 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 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1343 #if defined(ENABLE_EXTENSIONS) | 1343 #if defined(ENABLE_EXTENSIONS) |
| 1344 return ChromeContentBrowserClientExtensionsPart:: | 1344 return ChromeContentBrowserClientExtensionsPart:: |
| 1345 ShouldSwapBrowsingInstancesForNavigation( | 1345 ShouldSwapBrowsingInstancesForNavigation( |
| 1346 site_instance, current_url, new_url); | 1346 site_instance, current_url, new_url); |
| 1347 #else | 1347 #else |
| 1348 return false; | 1348 return false; |
| 1349 #endif | 1349 #endif |
| 1350 } | 1350 } |
| 1351 | 1351 |
| 1352 bool ChromeContentBrowserClient::ShouldSwapProcessesForRedirect( | 1352 bool ChromeContentBrowserClient::ShouldSwapProcessesForRedirect( |
| 1353 content::ResourceContext* resource_context, const GURL& current_url, | 1353 content::BrowserContext* browser_context, |
| 1354 const GURL& current_url, |
| 1354 const GURL& new_url) { | 1355 const GURL& new_url) { |
| 1355 #if defined(ENABLE_EXTENSIONS) | 1356 #if defined(ENABLE_EXTENSIONS) |
| 1356 return ChromeContentBrowserClientExtensionsPart:: | 1357 return ChromeContentBrowserClientExtensionsPart:: |
| 1357 ShouldSwapProcessesForRedirect(resource_context, current_url, new_url); | 1358 ShouldSwapProcessesForRedirect(browser_context, current_url, new_url); |
| 1358 #else | 1359 #else |
| 1359 return false; | 1360 return false; |
| 1360 #endif | 1361 #endif |
| 1361 } | 1362 } |
| 1362 | 1363 |
| 1363 bool ChromeContentBrowserClient::ShouldAssignSiteForURL(const GURL& url) { | 1364 bool ChromeContentBrowserClient::ShouldAssignSiteForURL(const GURL& url) { |
| 1364 return !url.SchemeIs(chrome::kChromeNativeScheme); | 1365 return !url.SchemeIs(chrome::kChromeNativeScheme); |
| 1365 } | 1366 } |
| 1366 | 1367 |
| 1367 std::string ChromeContentBrowserClient::GetCanonicalEncodingNameByAliasName( | 1368 std::string ChromeContentBrowserClient::GetCanonicalEncodingNameByAliasName( |
| (...skipping 1910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3278 if (channel <= kMaxDisableEncryptionChannel) { | 3279 if (channel <= kMaxDisableEncryptionChannel) { |
| 3279 static const char* const kWebRtcDevSwitchNames[] = { | 3280 static const char* const kWebRtcDevSwitchNames[] = { |
| 3280 switches::kDisableWebRtcEncryption, | 3281 switches::kDisableWebRtcEncryption, |
| 3281 }; | 3282 }; |
| 3282 to_command_line->CopySwitchesFrom(from_command_line, | 3283 to_command_line->CopySwitchesFrom(from_command_line, |
| 3283 kWebRtcDevSwitchNames, | 3284 kWebRtcDevSwitchNames, |
| 3284 arraysize(kWebRtcDevSwitchNames)); | 3285 arraysize(kWebRtcDevSwitchNames)); |
| 3285 } | 3286 } |
| 3286 } | 3287 } |
| 3287 #endif // defined(ENABLE_WEBRTC) | 3288 #endif // defined(ENABLE_WEBRTC) |
| OLD | NEW |