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

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

Issue 76063007: Clean up RenderViewHostManager swapping logic. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits Created 7 years 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 | Annotate | Revision Log
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 <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after
1315 BrowserThread::PostTask( 1315 BrowserThread::PostTask(
1316 BrowserThread::IO, 1316 BrowserThread::IO,
1317 FROM_HERE, 1317 FROM_HERE,
1318 base::Bind(&InfoMap::UnregisterExtensionProcess, 1318 base::Bind(&InfoMap::UnregisterExtensionProcess,
1319 extensions::ExtensionSystem::Get(profile)->info_map(), 1319 extensions::ExtensionSystem::Get(profile)->info_map(),
1320 extension->id(), 1320 extension->id(),
1321 site_instance->GetProcess()->GetID(), 1321 site_instance->GetProcess()->GetID(),
1322 site_instance->GetId())); 1322 site_instance->GetId()));
1323 } 1323 }
1324 1324
1325 bool ChromeContentBrowserClient::ShouldSwapProcessesForNavigation( 1325 bool ChromeContentBrowserClient::ShouldSwapBrowsingInstancesForNavigation(
1326 SiteInstance* site_instance, 1326 SiteInstance* site_instance,
1327 const GURL& current_url, 1327 const GURL& current_url,
1328 const GURL& new_url) { 1328 const GURL& new_url) {
1329 if (current_url.is_empty()) { 1329 if (current_url.is_empty()) {
1330 // Always choose a new process when navigating to extension URLs. The 1330 // Always choose a new process when navigating to extension URLs. The
1331 // process grouping logic will combine all of a given extension's pages 1331 // process grouping logic will combine all of a given extension's pages
1332 // into the same process. 1332 // into the same process.
1333 if (new_url.SchemeIs(extensions::kExtensionScheme)) 1333 if (new_url.SchemeIs(extensions::kExtensionScheme))
1334 return true; 1334 return true;
1335 1335
(...skipping 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after
2630 return IsExtensionOrSharedModuleWhitelisted(url, extension_set, 2630 return IsExtensionOrSharedModuleWhitelisted(url, extension_set,
2631 allowed_file_handle_origins_) || 2631 allowed_file_handle_origins_) ||
2632 IsHostAllowedByCommandLine(url, extension_set, 2632 IsHostAllowedByCommandLine(url, extension_set,
2633 switches::kAllowNaClFileHandleAPI); 2633 switches::kAllowNaClFileHandleAPI);
2634 #else 2634 #else
2635 return false; 2635 return false;
2636 #endif 2636 #endif
2637 } 2637 }
2638 2638
2639 } // namespace chrome 2639 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | content/browser/frame_host/render_view_host_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698