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 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 // stashed in a member variable. | 592 // stashed in a member variable. |
593 audio_renderer_host_ = new AudioRendererHost( | 593 audio_renderer_host_ = new AudioRendererHost( |
594 GetID(), | 594 GetID(), |
595 audio_manager, | 595 audio_manager, |
596 BrowserMainLoop::GetInstance()->audio_mirroring_manager(), | 596 BrowserMainLoop::GetInstance()->audio_mirroring_manager(), |
597 media_internals, | 597 media_internals, |
598 media_stream_manager); | 598 media_stream_manager); |
599 AddFilter(audio_renderer_host_); | 599 AddFilter(audio_renderer_host_); |
600 AddFilter( | 600 AddFilter( |
601 new MIDIHost(GetID(), BrowserMainLoop::GetInstance()->midi_manager())); | 601 new MIDIHost(GetID(), BrowserMainLoop::GetInstance()->midi_manager())); |
602 AddFilter(new MIDIDispatcherHost(GetID(), browser_context)); | 602 AddFilter(new MIDIDispatcherHost( |
| 603 GetID(), browser_context->GetMidiPermissionContext())); |
603 AddFilter(new VideoCaptureHost(media_stream_manager)); | 604 AddFilter(new VideoCaptureHost(media_stream_manager)); |
604 AddFilter(new AppCacheDispatcherHost( | 605 AddFilter(new AppCacheDispatcherHost( |
605 storage_partition_impl_->GetAppCacheService(), | 606 storage_partition_impl_->GetAppCacheService(), |
606 GetID())); | 607 GetID())); |
607 AddFilter(new ClipboardMessageFilter); | 608 AddFilter(new ClipboardMessageFilter); |
608 AddFilter(new DOMStorageMessageFilter( | 609 AddFilter(new DOMStorageMessageFilter( |
609 GetID(), | 610 GetID(), |
610 storage_partition_impl_->GetDOMStorageContext())); | 611 storage_partition_impl_->GetDOMStorageContext())); |
611 AddFilter(new IndexedDBDispatcherHost( | 612 AddFilter(new IndexedDBDispatcherHost( |
612 GetID(), | 613 GetID(), |
(...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1819 // Skip widgets in other processes. | 1820 // Skip widgets in other processes. |
1820 if (widget->GetProcess()->GetID() != GetID()) | 1821 if (widget->GetProcess()->GetID() != GetID()) |
1821 continue; | 1822 continue; |
1822 | 1823 |
1823 RenderViewHost* rvh = RenderViewHost::From(widget); | 1824 RenderViewHost* rvh = RenderViewHost::From(widget); |
1824 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1825 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1825 } | 1826 } |
1826 } | 1827 } |
1827 | 1828 |
1828 } // namespace content | 1829 } // namespace content |
OLD | NEW |