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 #include <algorithm> | 10 #include <algorithm> |
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
688 browser_context->GetRequestContextForRenderProcess(GetID()))); | 688 browser_context->GetRequestContextForRenderProcess(GetID()))); |
689 channel_->AddFilter(new QuotaDispatcherHost( | 689 channel_->AddFilter(new QuotaDispatcherHost( |
690 GetID(), | 690 GetID(), |
691 storage_partition_impl_->GetQuotaManager(), | 691 storage_partition_impl_->GetQuotaManager(), |
692 GetContentClient()->browser()->CreateQuotaPermissionContext())); | 692 GetContentClient()->browser()->CreateQuotaPermissionContext())); |
693 channel_->AddFilter(new GamepadBrowserMessageFilter()); | 693 channel_->AddFilter(new GamepadBrowserMessageFilter()); |
694 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 694 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
695 channel_->AddFilter(new HistogramMessageFilter()); | 695 channel_->AddFilter(new HistogramMessageFilter()); |
696 channel_->AddFilter(new HyphenatorMessageFilter(this)); | 696 channel_->AddFilter(new HyphenatorMessageFilter(this)); |
697 #if defined(ENABLE_WEBRTC) | 697 #if defined(ENABLE_WEBRTC) |
698 channel_->AddFilter(new WebRtcLoggingHandlerHost()); | 698 channel_->AddFilter(new WebRtcLoggingHandlerHost(this)); |
699 #endif | 699 #endif |
700 } | 700 } |
701 | 701 |
702 int RenderProcessHostImpl::GetNextRoutingID() { | 702 int RenderProcessHostImpl::GetNextRoutingID() { |
703 return widget_helper_->GetNextRoutingID(); | 703 return widget_helper_->GetNextRoutingID(); |
704 } | 704 } |
705 | 705 |
706 void RenderProcessHostImpl::SimulateSwapOutACK( | 706 void RenderProcessHostImpl::SimulateSwapOutACK( |
707 const ViewMsg_SwapOut_Params& params) { | 707 const ViewMsg_SwapOut_Params& params) { |
708 widget_helper_->SimulateSwapOutACK(params); | 708 widget_helper_->SimulateSwapOutACK(params); |
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1765 TRACE_EVENT0("renderer_host", | 1765 TRACE_EVENT0("renderer_host", |
1766 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1766 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1767 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1767 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
1768 ack_params.sync_point = 0; | 1768 ack_params.sync_point = 0; |
1769 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1769 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
1770 gpu_process_host_id, | 1770 gpu_process_host_id, |
1771 ack_params); | 1771 ack_params); |
1772 } | 1772 } |
1773 | 1773 |
1774 } // namespace content | 1774 } // namespace content |
OLD | NEW |