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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
589 | 589 |
590 #if defined(ENABLE_WEBRTC) | 590 #if defined(ENABLE_WEBRTC) |
591 channel_->AddFilter(new P2PSocketDispatcherHost(resource_context)); | 591 channel_->AddFilter(new P2PSocketDispatcherHost(resource_context)); |
592 #endif | 592 #endif |
593 | 593 |
594 channel_->AddFilter(new TraceMessageFilter()); | 594 channel_->AddFilter(new TraceMessageFilter()); |
595 channel_->AddFilter(new ResolveProxyMsgHelper( | 595 channel_->AddFilter(new ResolveProxyMsgHelper( |
596 browser_context->GetRequestContextForRenderProcess(GetID()))); | 596 browser_context->GetRequestContextForRenderProcess(GetID()))); |
597 channel_->AddFilter(new QuotaDispatcherHost( | 597 channel_->AddFilter(new QuotaDispatcherHost( |
598 GetID(), | 598 GetID(), |
599 BrowserContext::GetQuotaManager(browser_context), | 599 BrowserContext::GetQuotaManagerForRenderProcess(browser_context, GetID()), |
awong
2012/08/10 14:17:20
If we go with making StoragePartiiton public, then
| |
600 GetContentClient()->browser()->CreateQuotaPermissionContext())); | 600 GetContentClient()->browser()->CreateQuotaPermissionContext())); |
601 channel_->AddFilter(new GamepadBrowserMessageFilter(this)); | 601 channel_->AddFilter(new GamepadBrowserMessageFilter(this)); |
602 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 602 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
603 channel_->AddFilter(new content::HistogramMessageFilter()); | 603 channel_->AddFilter(new content::HistogramMessageFilter()); |
604 } | 604 } |
605 | 605 |
606 int RenderProcessHostImpl::GetNextRoutingID() { | 606 int RenderProcessHostImpl::GetNextRoutingID() { |
607 return widget_helper_->GetNextRoutingID(); | 607 return widget_helper_->GetNextRoutingID(); |
608 } | 608 } |
609 | 609 |
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1506 int32 route_id, | 1506 int32 route_id, |
1507 int32 gpu_process_host_id) { | 1507 int32 gpu_process_host_id) { |
1508 TRACE_EVENT0("renderer_host", | 1508 TRACE_EVENT0("renderer_host", |
1509 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1509 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1510 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1510 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
1511 gpu_process_host_id, | 1511 gpu_process_host_id, |
1512 0); | 1512 0); |
1513 } | 1513 } |
1514 | 1514 |
1515 } // namespace content | 1515 } // namespace content |
OLD | NEW |