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 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
611 ChromeBlobStorageContext::GetFor(browser_context), | 611 ChromeBlobStorageContext::GetFor(browser_context), |
612 storage_partition_impl_->GetFileSystemContext(), | 612 storage_partition_impl_->GetFileSystemContext(), |
613 new RendererURLRequestContextSelector(browser_context, GetID())); | 613 new RendererURLRequestContextSelector(browser_context, GetID())); |
614 | 614 |
615 channel_->AddFilter(resource_message_filter); | 615 channel_->AddFilter(resource_message_filter); |
616 MediaStreamManager* media_stream_manager = | 616 MediaStreamManager* media_stream_manager = |
617 BrowserMainLoop::GetInstance()->media_stream_manager(); | 617 BrowserMainLoop::GetInstance()->media_stream_manager(); |
618 channel_->AddFilter(new AudioInputRendererHost( | 618 channel_->AddFilter(new AudioInputRendererHost( |
619 audio_manager, | 619 audio_manager, |
620 media_stream_manager, | 620 media_stream_manager, |
621 BrowserMainLoop::GetInstance()->audio_mirroring_manager())); | 621 BrowserMainLoop::GetInstance()->audio_mirroring_manager(), |
| 622 BrowserMainLoop::GetInstance()->user_input_monitor())); |
622 channel_->AddFilter(new AudioRendererHost( | 623 channel_->AddFilter(new AudioRendererHost( |
623 GetID(), audio_manager, | 624 GetID(), |
| 625 audio_manager, |
624 BrowserMainLoop::GetInstance()->audio_mirroring_manager(), | 626 BrowserMainLoop::GetInstance()->audio_mirroring_manager(), |
625 media_internals, media_stream_manager)); | 627 media_internals, |
| 628 media_stream_manager)); |
626 channel_->AddFilter( | 629 channel_->AddFilter( |
627 new MIDIHost(BrowserMainLoop::GetInstance()->midi_manager())); | 630 new MIDIHost(BrowserMainLoop::GetInstance()->midi_manager())); |
628 channel_->AddFilter(new MIDIDispatcherHost(GetID(), browser_context)); | 631 channel_->AddFilter(new MIDIDispatcherHost(GetID(), browser_context)); |
629 channel_->AddFilter(new VideoCaptureHost(media_stream_manager)); | 632 channel_->AddFilter(new VideoCaptureHost(media_stream_manager)); |
630 channel_->AddFilter(new AppCacheDispatcherHost( | 633 channel_->AddFilter(new AppCacheDispatcherHost( |
631 storage_partition_impl_->GetAppCacheService(), | 634 storage_partition_impl_->GetAppCacheService(), |
632 GetID())); | 635 GetID())); |
633 channel_->AddFilter(new ClipboardMessageFilter); | 636 channel_->AddFilter(new ClipboardMessageFilter); |
634 channel_->AddFilter(new DOMStorageMessageFilter( | 637 channel_->AddFilter(new DOMStorageMessageFilter( |
635 GetID(), | 638 GetID(), |
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1804 // Skip widgets in other processes. | 1807 // Skip widgets in other processes. |
1805 if (widgets[i]->GetProcess()->GetID() != GetID()) | 1808 if (widgets[i]->GetProcess()->GetID() != GetID()) |
1806 continue; | 1809 continue; |
1807 | 1810 |
1808 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); | 1811 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); |
1809 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1812 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1810 } | 1813 } |
1811 } | 1814 } |
1812 | 1815 |
1813 } // namespace content | 1816 } // namespace content |
OLD | NEW |