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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
537 #endif | 537 #endif |
538 | 538 |
539 channel_->AddFilter(new TraceMessageFilter()); | 539 channel_->AddFilter(new TraceMessageFilter()); |
540 channel_->AddFilter(new ResolveProxyMsgHelper( | 540 channel_->AddFilter(new ResolveProxyMsgHelper( |
541 browser_context->GetRequestContextForRenderProcess(GetID()))); | 541 browser_context->GetRequestContextForRenderProcess(GetID()))); |
542 channel_->AddFilter(new QuotaDispatcherHost( | 542 channel_->AddFilter(new QuotaDispatcherHost( |
543 GetID(), | 543 GetID(), |
544 content::BrowserContext::GetQuotaManager(browser_context), | 544 content::BrowserContext::GetQuotaManager(browser_context), |
545 content::GetContentClient()->browser()->CreateQuotaPermissionContext())); | 545 content::GetContentClient()->browser()->CreateQuotaPermissionContext())); |
546 channel_->AddFilter(new content::GamepadBrowserMessageFilter(this)); | 546 channel_->AddFilter(new content::GamepadBrowserMessageFilter(this)); |
547 channel_->AddFilter(new ProfilerMessageFilter()); | 547 channel_->AddFilter(new content::ProfilerMessageFilter( |
| 548 content::PROCESS_TYPE_RENDERER)); |
548 } | 549 } |
549 | 550 |
550 int RenderProcessHostImpl::GetNextRoutingID() { | 551 int RenderProcessHostImpl::GetNextRoutingID() { |
551 return widget_helper_->GetNextRoutingID(); | 552 return widget_helper_->GetNextRoutingID(); |
552 } | 553 } |
553 | 554 |
554 void RenderProcessHostImpl::CancelResourceRequests(int render_widget_id) { | 555 void RenderProcessHostImpl::CancelResourceRequests(int render_widget_id) { |
555 widget_helper_->CancelResourceRequests(render_widget_id); | 556 widget_helper_->CancelResourceRequests(render_widget_id); |
556 } | 557 } |
557 | 558 |
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1346 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { | 1347 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { |
1347 // Only honor the request if appropriate persmissions are granted. | 1348 // Only honor the request if appropriate persmissions are granted. |
1348 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), | 1349 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), |
1349 path)) | 1350 path)) |
1350 content::GetContentClient()->browser()->OpenItem(path); | 1351 content::GetContentClient()->browser()->OpenItem(path); |
1351 } | 1352 } |
1352 | 1353 |
1353 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { | 1354 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { |
1354 MHTMLGenerationManager::GetInstance()->MHTMLGenerated(job_id, data_size); | 1355 MHTMLGenerationManager::GetInstance()->MHTMLGenerated(job_id, data_size); |
1355 } | 1356 } |
OLD | NEW |