| 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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 | 402 |
| 403 channel_->AddFilter( | 403 channel_->AddFilter( |
| 404 new WorkerMessageFilter( | 404 new WorkerMessageFilter( |
| 405 id(), | 405 id(), |
| 406 &browser_context()->GetResourceContext(), | 406 &browser_context()->GetResourceContext(), |
| 407 content::GetContentClient()->browser()->GetResourceDispatcherHost(), | 407 content::GetContentClient()->browser()->GetResourceDispatcherHost(), |
| 408 NewCallbackWithReturnValue( | 408 NewCallbackWithReturnValue( |
| 409 widget_helper_.get(), &RenderWidgetHelper::GetNextRoutingID))); | 409 widget_helper_.get(), &RenderWidgetHelper::GetNextRoutingID))); |
| 410 | 410 |
| 411 #if defined(ENABLE_P2P_APIS) | 411 #if defined(ENABLE_P2P_APIS) |
| 412 channel_->AddFilter(new P2PSocketDispatcherHost( | 412 channel_->AddFilter(new content::P2PSocketDispatcherHost( |
| 413 &browser_context()->GetResourceContext())); | 413 &browser_context()->GetResourceContext())); |
| 414 #endif | 414 #endif |
| 415 | 415 |
| 416 channel_->AddFilter(new TraceMessageFilter()); | 416 channel_->AddFilter(new TraceMessageFilter()); |
| 417 channel_->AddFilter(new ResolveProxyMsgHelper(NULL)); | 417 channel_->AddFilter(new ResolveProxyMsgHelper(NULL)); |
| 418 channel_->AddFilter(new QuotaDispatcherHost( | 418 channel_->AddFilter(new QuotaDispatcherHost( |
| 419 id(), browser_context()->GetQuotaManager(), | 419 id(), browser_context()->GetQuotaManager(), |
| 420 content::GetContentClient()->browser()->CreateQuotaPermissionContext())); | 420 content::GetContentClient()->browser()->CreateQuotaPermissionContext())); |
| 421 } | 421 } |
| 422 | 422 |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { | 928 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { |
| 929 // Only honor the request if appropriate persmissions are granted. | 929 // Only honor the request if appropriate persmissions are granted. |
| 930 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) | 930 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) |
| 931 content::GetContentClient()->browser()->OpenItem(path); | 931 content::GetContentClient()->browser()->OpenItem(path); |
| 932 } | 932 } |
| 933 | 933 |
| 934 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) { | 934 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) { |
| 935 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 935 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
| 936 MHTMLGenerated(job_id, success); | 936 MHTMLGenerated(job_id, success); |
| 937 } | 937 } |
| OLD | NEW |