OLD | NEW |
---|---|
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 Loading... | |
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 } | |
OLD | NEW |