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 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1314 #if defined(ENABLE_EXTENSIONS) | 1314 #if defined(ENABLE_EXTENSIONS) |
1315 return ChromeContentBrowserClientExtensionsPart:: | 1315 return ChromeContentBrowserClientExtensionsPart:: |
1316 ShouldSwapBrowsingInstancesForNavigation( | 1316 ShouldSwapBrowsingInstancesForNavigation( |
1317 site_instance, current_url, new_url); | 1317 site_instance, current_url, new_url); |
1318 #else | 1318 #else |
1319 return false; | 1319 return false; |
1320 #endif | 1320 #endif |
1321 } | 1321 } |
1322 | 1322 |
1323 bool ChromeContentBrowserClient::ShouldSwapProcessesForRedirect( | 1323 bool ChromeContentBrowserClient::ShouldSwapProcessesForRedirect( |
1324 content::ResourceContext* resource_context, const GURL& current_url, | 1324 content::BrowserContext* browser_context, |
| 1325 const GURL& current_url, |
1325 const GURL& new_url) { | 1326 const GURL& new_url) { |
1326 #if defined(ENABLE_EXTENSIONS) | 1327 #if defined(ENABLE_EXTENSIONS) |
1327 return ChromeContentBrowserClientExtensionsPart:: | 1328 return ChromeContentBrowserClientExtensionsPart:: |
1328 ShouldSwapProcessesForRedirect(resource_context, current_url, new_url); | 1329 ShouldSwapProcessesForRedirect(browser_context, current_url, new_url); |
1329 #else | 1330 #else |
1330 return false; | 1331 return false; |
1331 #endif | 1332 #endif |
1332 } | 1333 } |
1333 | 1334 |
1334 bool ChromeContentBrowserClient::ShouldAssignSiteForURL(const GURL& url) { | 1335 bool ChromeContentBrowserClient::ShouldAssignSiteForURL(const GURL& url) { |
1335 return !url.SchemeIs(chrome::kChromeNativeScheme); | 1336 return !url.SchemeIs(chrome::kChromeNativeScheme); |
1336 } | 1337 } |
1337 | 1338 |
1338 std::string ChromeContentBrowserClient::GetCanonicalEncodingNameByAliasName( | 1339 std::string ChromeContentBrowserClient::GetCanonicalEncodingNameByAliasName( |
(...skipping 1874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3213 if (channel <= kMaxDisableEncryptionChannel) { | 3214 if (channel <= kMaxDisableEncryptionChannel) { |
3214 static const char* const kWebRtcDevSwitchNames[] = { | 3215 static const char* const kWebRtcDevSwitchNames[] = { |
3215 switches::kDisableWebRtcEncryption, | 3216 switches::kDisableWebRtcEncryption, |
3216 }; | 3217 }; |
3217 to_command_line->CopySwitchesFrom(from_command_line, | 3218 to_command_line->CopySwitchesFrom(from_command_line, |
3218 kWebRtcDevSwitchNames, | 3219 kWebRtcDevSwitchNames, |
3219 arraysize(kWebRtcDevSwitchNames)); | 3220 arraysize(kWebRtcDevSwitchNames)); |
3220 } | 3221 } |
3221 } | 3222 } |
3222 #endif // defined(ENABLE_WEBRTC) | 3223 #endif // defined(ENABLE_WEBRTC) |
OLD | NEW |