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/indexed_db/indexed_db_context_impl.h" | 59 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
60 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" | 60 #include "content/browser/indexed_db/indexed_db_dispatcher_host.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/midi_host.h" | 77 #include "content/browser/renderer_host/media/midi_host.h" |
77 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" | 78 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" |
78 #include "content/browser/renderer_host/media/video_capture_host.h" | 79 #include "content/browser/renderer_host/media/video_capture_host.h" |
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 #endif | 699 #endif |
699 | 700 |
700 channel_->AddFilter(new TraceMessageFilter()); | 701 channel_->AddFilter(new TraceMessageFilter()); |
701 channel_->AddFilter(new ResolveProxyMsgHelper( | 702 channel_->AddFilter(new ResolveProxyMsgHelper( |
702 browser_context->GetRequestContextForRenderProcess(GetID()))); | 703 browser_context->GetRequestContextForRenderProcess(GetID()))); |
703 channel_->AddFilter(new QuotaDispatcherHost( | 704 channel_->AddFilter(new QuotaDispatcherHost( |
704 GetID(), | 705 GetID(), |
705 storage_partition_impl_->GetQuotaManager(), | 706 storage_partition_impl_->GetQuotaManager(), |
706 GetContentClient()->browser()->CreateQuotaPermissionContext())); | 707 GetContentClient()->browser()->CreateQuotaPermissionContext())); |
707 channel_->AddFilter(new GamepadBrowserMessageFilter()); | 708 channel_->AddFilter(new GamepadBrowserMessageFilter()); |
| 709 channel_->AddFilter(new DeviceMotionBrowserMessageFilter()); |
708 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 710 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
709 channel_->AddFilter(new HistogramMessageFilter()); | 711 channel_->AddFilter(new HistogramMessageFilter()); |
710 channel_->AddFilter(new HyphenatorMessageFilter(this)); | 712 channel_->AddFilter(new HyphenatorMessageFilter(this)); |
711 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) | 713 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) |
712 if (CommandLine::ForCurrentProcess()->HasSwitch( | 714 if (CommandLine::ForCurrentProcess()->HasSwitch( |
713 switches::kEnableMemoryBenchmarking)) | 715 switches::kEnableMemoryBenchmarking)) |
714 channel_->AddFilter(new MemoryBenchmarkMessageFilter()); | 716 channel_->AddFilter(new MemoryBenchmarkMessageFilter()); |
715 #endif | 717 #endif |
716 } | 718 } |
717 | 719 |
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1777 // Skip widgets in other processes. | 1779 // Skip widgets in other processes. |
1778 if (widgets[i]->GetProcess()->GetID() != GetID()) | 1780 if (widgets[i]->GetProcess()->GetID() != GetID()) |
1779 continue; | 1781 continue; |
1780 | 1782 |
1781 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); | 1783 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); |
1782 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1784 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1783 } | 1785 } |
1784 } | 1786 } |
1785 | 1787 |
1786 } // namespace content | 1788 } // namespace content |
OLD | NEW |