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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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/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/midi_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/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/quota_dispatcher_host.h" | 82 #include "content/browser/renderer_host/quota_dispatcher_host.h" |
82 #include "content/browser/renderer_host/render_message_filter.h" | 83 #include "content/browser/renderer_host/render_message_filter.h" |
83 #include "content/browser/renderer_host/render_view_host_delegate.h" | 84 #include "content/browser/renderer_host/render_view_host_delegate.h" |
84 #include "content/browser/renderer_host/render_view_host_impl.h" | 85 #include "content/browser/renderer_host/render_view_host_impl.h" |
(...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 | 591 |
591 channel_->AddFilter(resource_message_filter); | 592 channel_->AddFilter(resource_message_filter); |
592 media::AudioManager* audio_manager = BrowserMainLoop::GetAudioManager(); | 593 media::AudioManager* audio_manager = BrowserMainLoop::GetAudioManager(); |
593 MediaStreamManager* media_stream_manager = | 594 MediaStreamManager* media_stream_manager = |
594 BrowserMainLoop::GetMediaStreamManager(); | 595 BrowserMainLoop::GetMediaStreamManager(); |
595 channel_->AddFilter(new AudioInputRendererHost(audio_manager, | 596 channel_->AddFilter(new AudioInputRendererHost(audio_manager, |
596 media_stream_manager)); | 597 media_stream_manager)); |
597 channel_->AddFilter(new AudioRendererHost( | 598 channel_->AddFilter(new AudioRendererHost( |
598 GetID(), audio_manager, BrowserMainLoop::GetAudioMirroringManager(), | 599 GetID(), audio_manager, BrowserMainLoop::GetAudioMirroringManager(), |
599 media_internals, media_stream_manager)); | 600 media_internals, media_stream_manager)); |
| 601 |
| 602 channel_->AddFilter(new MIDIHost(BrowserMainLoop::GetMIDIManager())); |
| 603 |
| 604 |
600 channel_->AddFilter(new VideoCaptureHost()); | 605 channel_->AddFilter(new VideoCaptureHost()); |
601 channel_->AddFilter(new AppCacheDispatcherHost( | 606 channel_->AddFilter(new AppCacheDispatcherHost( |
602 storage_partition_impl_->GetAppCacheService(), | 607 storage_partition_impl_->GetAppCacheService(), |
603 GetID())); | 608 GetID())); |
604 channel_->AddFilter(new ClipboardMessageFilter); | 609 channel_->AddFilter(new ClipboardMessageFilter); |
605 channel_->AddFilter( | 610 channel_->AddFilter( |
606 new DOMStorageMessageFilter( | 611 new DOMStorageMessageFilter( |
607 GetID(), | 612 GetID(), |
608 storage_partition_impl_->GetDOMStorageContext())); | 613 storage_partition_impl_->GetDOMStorageContext())); |
609 channel_->AddFilter( | 614 channel_->AddFilter( |
(...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1767 TRACE_EVENT0("renderer_host", | 1772 TRACE_EVENT0("renderer_host", |
1768 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); | 1773 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); |
1769 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; | 1774 AcceleratedSurfaceMsg_BufferPresented_Params ack_params; |
1770 ack_params.sync_point = 0; | 1775 ack_params.sync_point = 0; |
1771 RenderWidgetHostImpl::AcknowledgeBufferPresent(params.route_id, | 1776 RenderWidgetHostImpl::AcknowledgeBufferPresent(params.route_id, |
1772 params.gpu_process_host_id, | 1777 params.gpu_process_host_id, |
1773 ack_params); | 1778 ack_params); |
1774 } | 1779 } |
1775 | 1780 |
1776 } // namespace content | 1781 } // namespace content |
OLD | NEW |