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 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 #endif | 700 #endif |
700 | 701 |
701 channel_->AddFilter(new TraceMessageFilter()); | 702 channel_->AddFilter(new TraceMessageFilter()); |
702 channel_->AddFilter(new ResolveProxyMsgHelper( | 703 channel_->AddFilter(new ResolveProxyMsgHelper( |
703 browser_context->GetRequestContextForRenderProcess(GetID()))); | 704 browser_context->GetRequestContextForRenderProcess(GetID()))); |
704 channel_->AddFilter(new QuotaDispatcherHost( | 705 channel_->AddFilter(new QuotaDispatcherHost( |
705 GetID(), | 706 GetID(), |
706 storage_partition_impl_->GetQuotaManager(), | 707 storage_partition_impl_->GetQuotaManager(), |
707 GetContentClient()->browser()->CreateQuotaPermissionContext())); | 708 GetContentClient()->browser()->CreateQuotaPermissionContext())); |
708 channel_->AddFilter(new GamepadBrowserMessageFilter()); | 709 channel_->AddFilter(new GamepadBrowserMessageFilter()); |
| 710 channel_->AddFilter(new DeviceMotionBrowserMessageFilter()); |
709 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 711 channel_->AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
710 channel_->AddFilter(new HistogramMessageFilter()); | 712 channel_->AddFilter(new HistogramMessageFilter()); |
711 channel_->AddFilter(new HyphenatorMessageFilter(this)); | 713 channel_->AddFilter(new HyphenatorMessageFilter(this)); |
712 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) | 714 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) |
713 if (CommandLine::ForCurrentProcess()->HasSwitch( | 715 if (CommandLine::ForCurrentProcess()->HasSwitch( |
714 switches::kEnableMemoryBenchmarking)) | 716 switches::kEnableMemoryBenchmarking)) |
715 channel_->AddFilter(new MemoryBenchmarkMessageFilter()); | 717 channel_->AddFilter(new MemoryBenchmarkMessageFilter()); |
716 #endif | 718 #endif |
717 } | 719 } |
718 | 720 |
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1784 // Skip widgets in other processes. | 1786 // Skip widgets in other processes. |
1785 if (widgets[i]->GetProcess()->GetID() != GetID()) | 1787 if (widgets[i]->GetProcess()->GetID() != GetID()) |
1786 continue; | 1788 continue; |
1787 | 1789 |
1788 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); | 1790 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); |
1789 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1791 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1790 } | 1792 } |
1791 } | 1793 } |
1792 | 1794 |
1793 } // namespace content | 1795 } // namespace content |
OLD | NEW |