| OLD | NEW |
| 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 // 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/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 9 | 9 |
| 10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 #endif | 530 #endif |
| 531 | 531 |
| 532 channel_->AddFilter(new TraceMessageFilter()); | 532 channel_->AddFilter(new TraceMessageFilter()); |
| 533 channel_->AddFilter(new ResolveProxyMsgHelper( | 533 channel_->AddFilter(new ResolveProxyMsgHelper( |
| 534 browser_context->GetRequestContextForRenderProcess(GetID()))); | 534 browser_context->GetRequestContextForRenderProcess(GetID()))); |
| 535 channel_->AddFilter(new QuotaDispatcherHost( | 535 channel_->AddFilter(new QuotaDispatcherHost( |
| 536 GetID(), | 536 GetID(), |
| 537 content::BrowserContext::GetQuotaManager(browser_context), | 537 content::BrowserContext::GetQuotaManager(browser_context), |
| 538 content::GetContentClient()->browser()->CreateQuotaPermissionContext())); | 538 content::GetContentClient()->browser()->CreateQuotaPermissionContext())); |
| 539 channel_->AddFilter(new content::GamepadBrowserMessageFilter(this)); | 539 channel_->AddFilter(new content::GamepadBrowserMessageFilter(this)); |
| 540 channel_->AddFilter(new ProfilerMessageFilter()); | 540 channel_->AddFilter(new content::ProfilerMessageFilter()); |
| 541 } | 541 } |
| 542 | 542 |
| 543 int RenderProcessHostImpl::GetNextRoutingID() { | 543 int RenderProcessHostImpl::GetNextRoutingID() { |
| 544 return widget_helper_->GetNextRoutingID(); | 544 return widget_helper_->GetNextRoutingID(); |
| 545 } | 545 } |
| 546 | 546 |
| 547 void RenderProcessHostImpl::CancelResourceRequests(int render_widget_id) { | 547 void RenderProcessHostImpl::CancelResourceRequests(int render_widget_id) { |
| 548 widget_helper_->CancelResourceRequests(render_widget_id); | 548 widget_helper_->CancelResourceRequests(render_widget_id); |
| 549 } | 549 } |
| 550 | 550 |
| (...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1331 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { | 1331 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { |
| 1332 // Only honor the request if appropriate persmissions are granted. | 1332 // Only honor the request if appropriate persmissions are granted. |
| 1333 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), | 1333 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), |
| 1334 path)) | 1334 path)) |
| 1335 content::GetContentClient()->browser()->OpenItem(path); | 1335 content::GetContentClient()->browser()->OpenItem(path); |
| 1336 } | 1336 } |
| 1337 | 1337 |
| 1338 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 1338 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
| 1339 MHTMLGenerationManager::GetInstance()->MHTMLGenerated(job_id, data_size); | 1339 MHTMLGenerationManager::GetInstance()->MHTMLGenerated(job_id, data_size); |
| 1340 } | 1340 } |
| OLD | NEW |