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

Side by Side Diff: content/browser/renderer_host/browser_render_process_host.cc

Issue 8033001: Delegate decision what site instances can be rendered in what process to chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/browser_render_process_host.h" 8 #include "content/browser/renderer_host/browser_render_process_host.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { 992 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) {
993 // Only honor the request if appropriate persmissions are granted. 993 // Only honor the request if appropriate persmissions are granted.
994 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) 994 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path))
995 content::GetContentClient()->browser()->OpenItem(path); 995 content::GetContentClient()->browser()->OpenItem(path);
996 } 996 }
997 997
998 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) { 998 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) {
999 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> 999 content::GetContentClient()->browser()->GetMHTMLGenerationManager()->
1000 MHTMLGenerated(job_id, success); 1000 MHTMLGenerated(job_id, success);
1001 } 1001 }
1002
1003 bool BrowserRenderProcessHost::IsSuitableHost(const GURL& site_url) {
jam 2011/09/26 15:46:16 it's unclear to me why you implement have this met
1004 if (!RenderProcessHost::IsSuitableHost(site_url))
1005 return false;
1006 return content::GetContentClient()->browser()->IsSuitableHost(this, site_url);
1007 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698