| 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 | 403 |
| 404 channel_->AddFilter( | 404 channel_->AddFilter( |
| 405 new WorkerMessageFilter( | 405 new WorkerMessageFilter( |
| 406 id(), | 406 id(), |
| 407 &browser_context()->GetResourceContext(), | 407 &browser_context()->GetResourceContext(), |
| 408 content::GetContentClient()->browser()->GetResourceDispatcherHost(), | 408 content::GetContentClient()->browser()->GetResourceDispatcherHost(), |
| 409 NewCallbackWithReturnValue( | 409 NewCallbackWithReturnValue( |
| 410 widget_helper_.get(), &RenderWidgetHelper::GetNextRoutingID))); | 410 widget_helper_.get(), &RenderWidgetHelper::GetNextRoutingID))); |
| 411 | 411 |
| 412 #if defined(ENABLE_P2P_APIS) | 412 #if defined(ENABLE_P2P_APIS) |
| 413 channel_->AddFilter(new P2PSocketDispatcherHost( | 413 channel_->AddFilter(new content::P2PSocketDispatcherHost( |
| 414 &browser_context()->GetResourceContext())); | 414 &browser_context()->GetResourceContext())); |
| 415 #endif | 415 #endif |
| 416 | 416 |
| 417 channel_->AddFilter(new TraceMessageFilter()); | 417 channel_->AddFilter(new TraceMessageFilter()); |
| 418 channel_->AddFilter(new ResolveProxyMsgHelper(NULL)); | 418 channel_->AddFilter(new ResolveProxyMsgHelper(NULL)); |
| 419 channel_->AddFilter(new QuotaDispatcherHost( | 419 channel_->AddFilter(new QuotaDispatcherHost( |
| 420 id(), browser_context()->GetQuotaManager(), | 420 id(), browser_context()->GetQuotaManager(), |
| 421 content::GetContentClient()->browser()->CreateQuotaPermissionContext())); | 421 content::GetContentClient()->browser()->CreateQuotaPermissionContext())); |
| 422 } | 422 } |
| 423 | 423 |
| (...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { | 938 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { |
| 939 // Only honor the request if appropriate persmissions are granted. | 939 // Only honor the request if appropriate persmissions are granted. |
| 940 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) | 940 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) |
| 941 content::GetContentClient()->browser()->OpenItem(path); | 941 content::GetContentClient()->browser()->OpenItem(path); |
| 942 } | 942 } |
| 943 | 943 |
| 944 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) { | 944 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) { |
| 945 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> | 945 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> |
| 946 MHTMLGenerated(job_id, success); | 946 MHTMLGenerated(job_id, success); |
| 947 } | 947 } |
| OLD | NEW |