Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 16025005: Web MIDI API back-end (work-in-progress) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add stub for non-OSX MIDIManagers Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 609
609 channel_->AddFilter(resource_message_filter); 610 channel_->AddFilter(resource_message_filter);
610 media::AudioManager* audio_manager = BrowserMainLoop::GetAudioManager(); 611 media::AudioManager* audio_manager = BrowserMainLoop::GetAudioManager();
611 MediaStreamManager* media_stream_manager = 612 MediaStreamManager* media_stream_manager =
612 BrowserMainLoop::GetMediaStreamManager(); 613 BrowserMainLoop::GetMediaStreamManager();
613 channel_->AddFilter(new AudioInputRendererHost(audio_manager, 614 channel_->AddFilter(new AudioInputRendererHost(audio_manager,
614 media_stream_manager)); 615 media_stream_manager));
615 channel_->AddFilter(new AudioRendererHost( 616 channel_->AddFilter(new AudioRendererHost(
616 GetID(), audio_manager, BrowserMainLoop::GetAudioMirroringManager(), 617 GetID(), audio_manager, BrowserMainLoop::GetAudioMirroringManager(),
617 media_internals, media_stream_manager)); 618 media_internals, media_stream_manager));
619 channel_->AddFilter(new MIDIHost(BrowserMainLoop::GetMIDIManager()));
618 channel_->AddFilter(new VideoCaptureHost()); 620 channel_->AddFilter(new VideoCaptureHost());
619 channel_->AddFilter(new AppCacheDispatcherHost( 621 channel_->AddFilter(new AppCacheDispatcherHost(
620 storage_partition_impl_->GetAppCacheService(), 622 storage_partition_impl_->GetAppCacheService(),
621 GetID())); 623 GetID()));
622 channel_->AddFilter(new ClipboardMessageFilter); 624 channel_->AddFilter(new ClipboardMessageFilter);
623 channel_->AddFilter( 625 channel_->AddFilter(
624 new DOMStorageMessageFilter( 626 new DOMStorageMessageFilter(
625 GetID(), 627 GetID(),
626 storage_partition_impl_->GetDOMStorageContext())); 628 storage_partition_impl_->GetDOMStorageContext()));
627 channel_->AddFilter( 629 channel_->AddFilter(
(...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after
1794 continue; 1796 continue;
1795 1797
1796 RenderViewHost* rvh = 1798 RenderViewHost* rvh =
1797 RenderViewHost::From(const_cast<RenderWidgetHost*>(widget)); 1799 RenderViewHost::From(const_cast<RenderWidgetHost*>(widget));
1798 1800
1799 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1801 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1800 } 1802 }
1801 } 1803 }
1802 1804
1803 } // namespace content 1805 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698