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