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 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1317 #if defined(ENABLE_EXTENSIONS) | 1317 #if defined(ENABLE_EXTENSIONS) |
1318 return ChromeContentBrowserClientExtensionsPart:: | 1318 return ChromeContentBrowserClientExtensionsPart:: |
1319 ShouldSwapBrowsingInstancesForNavigation( | 1319 ShouldSwapBrowsingInstancesForNavigation( |
1320 site_instance, current_url, new_url); | 1320 site_instance, current_url, new_url); |
1321 #else | 1321 #else |
1322 return false; | 1322 return false; |
1323 #endif | 1323 #endif |
1324 } | 1324 } |
1325 | 1325 |
1326 bool ChromeContentBrowserClient::ShouldSwapProcessesForRedirect( | 1326 bool ChromeContentBrowserClient::ShouldSwapProcessesForRedirect( |
1327 content::ResourceContext* resource_context, const GURL& current_url, | 1327 content::BrowserContext* browser_context, |
| 1328 const GURL& current_url, |
1328 const GURL& new_url) { | 1329 const GURL& new_url) { |
1329 #if defined(ENABLE_EXTENSIONS) | 1330 #if defined(ENABLE_EXTENSIONS) |
1330 return ChromeContentBrowserClientExtensionsPart:: | 1331 return ChromeContentBrowserClientExtensionsPart:: |
1331 ShouldSwapProcessesForRedirect(resource_context, current_url, new_url); | 1332 ShouldSwapProcessesForRedirect(browser_context, current_url, new_url); |
1332 #else | 1333 #else |
1333 return false; | 1334 return false; |
1334 #endif | 1335 #endif |
1335 } | 1336 } |
1336 | 1337 |
1337 bool ChromeContentBrowserClient::ShouldAssignSiteForURL(const GURL& url) { | 1338 bool ChromeContentBrowserClient::ShouldAssignSiteForURL(const GURL& url) { |
1338 return !url.SchemeIs(chrome::kChromeNativeScheme); | 1339 return !url.SchemeIs(chrome::kChromeNativeScheme); |
1339 } | 1340 } |
1340 | 1341 |
1341 std::string ChromeContentBrowserClient::GetCanonicalEncodingNameByAliasName( | 1342 std::string ChromeContentBrowserClient::GetCanonicalEncodingNameByAliasName( |
(...skipping 1835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3177 if (channel <= kMaxDisableEncryptionChannel) { | 3178 if (channel <= kMaxDisableEncryptionChannel) { |
3178 static const char* const kWebRtcDevSwitchNames[] = { | 3179 static const char* const kWebRtcDevSwitchNames[] = { |
3179 switches::kDisableWebRtcEncryption, | 3180 switches::kDisableWebRtcEncryption, |
3180 }; | 3181 }; |
3181 to_command_line->CopySwitchesFrom(from_command_line, | 3182 to_command_line->CopySwitchesFrom(from_command_line, |
3182 kWebRtcDevSwitchNames, | 3183 kWebRtcDevSwitchNames, |
3183 arraysize(kWebRtcDevSwitchNames)); | 3184 arraysize(kWebRtcDevSwitchNames)); |
3184 } | 3185 } |
3185 } | 3186 } |
3186 #endif // defined(ENABLE_WEBRTC) | 3187 #endif // defined(ENABLE_WEBRTC) |
OLD | NEW |