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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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/file_utilities_message_filter.h" | 69 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
70 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" | 70 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" |
71 #include "content/browser/renderer_host/gpu_message_filter.h" | 71 #include "content/browser/renderer_host/gpu_message_filter.h" |
72 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" | 72 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
73 #include "content/browser/renderer_host/media/audio_mirroring_manager.h" | 73 #include "content/browser/renderer_host/media/audio_mirroring_manager.h" |
74 #include "content/browser/renderer_host/media/audio_renderer_host.h" | 74 #include "content/browser/renderer_host/media/audio_renderer_host.h" |
75 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" | 75 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" |
| 76 #include "content/browser/renderer_host/media/midi_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/memory_benchmark_message_filter.h" | 79 #include "content/browser/renderer_host/memory_benchmark_message_filter.h" |
79 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" | 80 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" |
80 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | 81 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" |
81 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" | 82 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" |
82 #include "content/browser/renderer_host/quota_dispatcher_host.h" | 83 #include "content/browser/renderer_host/quota_dispatcher_host.h" |
83 #include "content/browser/renderer_host/render_message_filter.h" | 84 #include "content/browser/renderer_host/render_message_filter.h" |
84 #include "content/browser/renderer_host/render_view_host_delegate.h" | 85 #include "content/browser/renderer_host/render_view_host_delegate.h" |
85 #include "content/browser/renderer_host/render_view_host_impl.h" | 86 #include "content/browser/renderer_host/render_view_host_impl.h" |
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
597 MediaStreamManager* media_stream_manager = | 598 MediaStreamManager* media_stream_manager = |
598 BrowserMainLoop::GetInstance()->media_stream_manager(); | 599 BrowserMainLoop::GetInstance()->media_stream_manager(); |
599 channel_->AddFilter(new AudioInputRendererHost( | 600 channel_->AddFilter(new AudioInputRendererHost( |
600 audio_manager, | 601 audio_manager, |
601 media_stream_manager, | 602 media_stream_manager, |
602 BrowserMainLoop::GetInstance()->audio_mirroring_manager())); | 603 BrowserMainLoop::GetInstance()->audio_mirroring_manager())); |
603 channel_->AddFilter(new AudioRendererHost( | 604 channel_->AddFilter(new AudioRendererHost( |
604 GetID(), audio_manager, | 605 GetID(), audio_manager, |
605 BrowserMainLoop::GetInstance()->audio_mirroring_manager(), | 606 BrowserMainLoop::GetInstance()->audio_mirroring_manager(), |
606 media_internals, media_stream_manager)); | 607 media_internals, media_stream_manager)); |
| 608 channel_->AddFilter( |
| 609 new MIDIHost(BrowserMainLoop::GetInstance()->midi_manager())); |
607 channel_->AddFilter(new VideoCaptureHost(media_stream_manager)); | 610 channel_->AddFilter(new VideoCaptureHost(media_stream_manager)); |
608 channel_->AddFilter(new AppCacheDispatcherHost( | 611 channel_->AddFilter(new AppCacheDispatcherHost( |
609 storage_partition_impl_->GetAppCacheService(), | 612 storage_partition_impl_->GetAppCacheService(), |
610 GetID())); | 613 GetID())); |
611 channel_->AddFilter(new ClipboardMessageFilter); | 614 channel_->AddFilter(new ClipboardMessageFilter); |
612 channel_->AddFilter(new DOMStorageMessageFilter( | 615 channel_->AddFilter(new DOMStorageMessageFilter( |
613 GetID(), | 616 GetID(), |
614 storage_partition_impl_->GetDOMStorageContext())); | 617 storage_partition_impl_->GetDOMStorageContext())); |
615 channel_->AddFilter(new IndexedDBDispatcherHost( | 618 channel_->AddFilter(new IndexedDBDispatcherHost( |
616 GetID(), | 619 GetID(), |
(...skipping 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1772 // Skip widgets in other processes. | 1775 // Skip widgets in other processes. |
1773 if (widgets[i]->GetProcess()->GetID() != GetID()) | 1776 if (widgets[i]->GetProcess()->GetID() != GetID()) |
1774 continue; | 1777 continue; |
1775 | 1778 |
1776 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); | 1779 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); |
1777 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1780 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1778 } | 1781 } |
1779 } | 1782 } |
1780 | 1783 |
1781 } // namespace content | 1784 } // namespace content |
OLD | NEW |