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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 #endif | 673 #endif |
673 | 674 |
674 channel_->AddFilter(new TraceMessageFilter()); | 675 channel_->AddFilter(new TraceMessageFilter()); |
675 channel_->AddFilter(new ResolveProxyMsgHelper( | 676 channel_->AddFilter(new ResolveProxyMsgHelper( |
676 browser_context->GetRequestContextForRenderProcess(GetID()))); | 677 browser_context->GetRequestContextForRenderProcess(GetID()))); |
677 channel_->AddFilter(new QuotaDispatcherHost( | 678 channel_->AddFilter(new QuotaDispatcherHost( |
678 GetID(), | 679 GetID(), |
679 storage_partition_impl_->GetQuotaManager(), | 680 storage_partition_impl_->GetQuotaManager(), |
680 GetContentClient()->browser()->CreateQuotaPermissionContext())); | 681 GetContentClient()->browser()->CreateQuotaPermissionContext())); |
681 channel_->AddFilter(new GamepadBrowserMessageFilter()); | 682 channel_->AddFilter(new GamepadBrowserMessageFilter()); |
| 683 channel_->AddFilter(new DeviceMotionBrowserMessageFilter()); |
682 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 684 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
683 channel_->AddFilter(new HistogramMessageFilter()); | 685 channel_->AddFilter(new HistogramMessageFilter()); |
684 channel_->AddFilter(new HyphenatorMessageFilter(this)); | 686 channel_->AddFilter(new HyphenatorMessageFilter(this)); |
685 #if defined(ENABLE_WEBRTC) | 687 #if defined(ENABLE_WEBRTC) |
686 channel_->AddFilter(new WebRtcLoggingHandlerHost()); | 688 channel_->AddFilter(new WebRtcLoggingHandlerHost()); |
687 #endif | 689 #endif |
688 } | 690 } |
689 | 691 |
690 int RenderProcessHostImpl::GetNextRoutingID() { | 692 int RenderProcessHostImpl::GetNextRoutingID() { |
691 return widget_helper_->GetNextRoutingID(); | 693 return widget_helper_->GetNextRoutingID(); |
(...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1741 TRACE_EVENT0("renderer_host", | 1743 TRACE_EVENT0("renderer_host", |
1742 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1744 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1743 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1745 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
1744 ack_params.sync_point = 0; | 1746 ack_params.sync_point = 0; |
1745 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, | 1747 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, |
1746 gpu_process_host_id, | 1748 gpu_process_host_id, |
1747 ack_params); | 1749 ack_params); |
1748 } | 1750 } |
1749 | 1751 |
1750 } // namespace content | 1752 } // namespace content |
OLD | NEW |