| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" | 59 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" |
| 60 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 60 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
| 61 #include "content/browser/loader/resource_message_filter.h" | 61 #include "content/browser/loader/resource_message_filter.h" |
| 62 #include "content/browser/loader/resource_scheduler_filter.h" | 62 #include "content/browser/loader/resource_scheduler_filter.h" |
| 63 #include "content/browser/media/media_internals.h" | 63 #include "content/browser/media/media_internals.h" |
| 64 #include "content/browser/mime_registry_message_filter.h" | 64 #include "content/browser/mime_registry_message_filter.h" |
| 65 #include "content/browser/plugin_service_impl.h" | 65 #include "content/browser/plugin_service_impl.h" |
| 66 #include "content/browser/profiler_message_filter.h" | 66 #include "content/browser/profiler_message_filter.h" |
| 67 #include "content/browser/renderer_host/clipboard_message_filter.h" | 67 #include "content/browser/renderer_host/clipboard_message_filter.h" |
| 68 #include "content/browser/renderer_host/database_message_filter.h" | 68 #include "content/browser/renderer_host/database_message_filter.h" |
| 69 #include "content/browser/renderer_host/device_motion_browser_message_filter.h" |
| 69 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 70 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
| 70 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" | 71 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" |
| 71 #include "content/browser/renderer_host/gpu_message_filter.h" | 72 #include "content/browser/renderer_host/gpu_message_filter.h" |
| 72 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" | 73 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
| 73 #include "content/browser/renderer_host/media/audio_mirroring_manager.h" | 74 #include "content/browser/renderer_host/media/audio_mirroring_manager.h" |
| 74 #include "content/browser/renderer_host/media/audio_renderer_host.h" | 75 #include "content/browser/renderer_host/media/audio_renderer_host.h" |
| 75 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" | 76 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" |
| 76 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" | 77 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" |
| 77 #include "content/browser/renderer_host/media/video_capture_host.h" | 78 #include "content/browser/renderer_host/media/video_capture_host.h" |
| 78 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" | 79 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" |
| (...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 #endif | 685 #endif |
| 685 | 686 |
| 686 channel_->AddFilter(new TraceMessageFilter()); | 687 channel_->AddFilter(new TraceMessageFilter()); |
| 687 channel_->AddFilter(new ResolveProxyMsgHelper( | 688 channel_->AddFilter(new ResolveProxyMsgHelper( |
| 688 browser_context->GetRequestContextForRenderProcess(GetID()))); | 689 browser_context->GetRequestContextForRenderProcess(GetID()))); |
| 689 channel_->AddFilter(new QuotaDispatcherHost( | 690 channel_->AddFilter(new QuotaDispatcherHost( |
| 690 GetID(), | 691 GetID(), |
| 691 storage_partition_impl_->GetQuotaManager(), | 692 storage_partition_impl_->GetQuotaManager(), |
| 692 GetContentClient()->browser()->CreateQuotaPermissionContext())); | 693 GetContentClient()->browser()->CreateQuotaPermissionContext())); |
| 693 channel_->AddFilter(new GamepadBrowserMessageFilter()); | 694 channel_->AddFilter(new GamepadBrowserMessageFilter()); |
| 695 channel_->AddFilter(new DeviceMotionBrowserMessageFilter()); |
| 694 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 696 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
| 695 channel_->AddFilter(new HistogramMessageFilter()); | 697 channel_->AddFilter(new HistogramMessageFilter()); |
| 696 channel_->AddFilter(new HyphenatorMessageFilter(this)); | 698 channel_->AddFilter(new HyphenatorMessageFilter(this)); |
| 697 #if defined(ENABLE_WEBRTC) | 699 #if defined(ENABLE_WEBRTC) |
| 698 channel_->AddFilter(new WebRtcLoggingHandlerHost()); | 700 channel_->AddFilter(new WebRtcLoggingHandlerHost()); |
| 699 #endif | 701 #endif |
| 700 } | 702 } |
| 701 | 703 |
| 702 int RenderProcessHostImpl::GetNextRoutingID() { | 704 int RenderProcessHostImpl::GetNextRoutingID() { |
| 703 return widget_helper_->GetNextRoutingID(); | 705 return widget_helper_->GetNextRoutingID(); |
| (...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1756 TRACE_EVENT0("renderer_host", | 1758 TRACE_EVENT0("renderer_host", |
| 1757 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1759 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
| 1758 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1760 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
| 1759 ack_params.sync_point = 0; | 1761 ack_params.sync_point = 0; |
| 1760 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1762 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
| 1761 gpu_process_host_id, | 1763 gpu_process_host_id, |
| 1762 ack_params); | 1764 ack_params); |
| 1763 } | 1765 } |
| 1764 | 1766 |
| 1765 } // namespace content | 1767 } // namespace content |
| OLD | NEW |