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

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

Issue 2566673002: Web MIDI: introduce MidiService class (Closed)
Patch Set: review #16 Created 4 years 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
1067 GetID(), base::GetProcId(GetHandle()), audio_manager, 1067 GetID(), base::GetProcId(GetHandle()), audio_manager,
1068 media_stream_manager, AudioMirroringManager::GetInstance(), 1068 media_stream_manager, AudioMirroringManager::GetInstance(),
1069 BrowserMainLoop::GetInstance()->user_input_monitor()); 1069 BrowserMainLoop::GetInstance()->user_input_monitor());
1070 AddFilter(audio_input_renderer_host_.get()); 1070 AddFilter(audio_input_renderer_host_.get());
1071 audio_renderer_host_ = new AudioRendererHost( 1071 audio_renderer_host_ = new AudioRendererHost(
1072 GetID(), audio_manager, AudioMirroringManager::GetInstance(), 1072 GetID(), audio_manager, AudioMirroringManager::GetInstance(),
1073 media_stream_manager, 1073 media_stream_manager,
1074 browser_context->GetResourceContext()->GetMediaDeviceIDSalt()); 1074 browser_context->GetResourceContext()->GetMediaDeviceIDSalt());
1075 AddFilter(audio_renderer_host_.get()); 1075 AddFilter(audio_renderer_host_.get());
1076 AddFilter( 1076 AddFilter(
1077 new MidiHost(GetID(), BrowserMainLoop::GetInstance()->midi_manager())); 1077 new MidiHost(GetID(), BrowserMainLoop::GetInstance()->midi_service()));
1078 AddFilter(new AppCacheDispatcherHost( 1078 AddFilter(new AppCacheDispatcherHost(
1079 storage_partition_impl_->GetAppCacheService(), GetID())); 1079 storage_partition_impl_->GetAppCacheService(), GetID()));
1080 AddFilter(new ClipboardMessageFilter(blob_storage_context)); 1080 AddFilter(new ClipboardMessageFilter(blob_storage_context));
1081 AddFilter(new DOMStorageMessageFilter( 1081 AddFilter(new DOMStorageMessageFilter(
1082 storage_partition_impl_->GetDOMStorageContext())); 1082 storage_partition_impl_->GetDOMStorageContext()));
1083 AddFilter(new IndexedDBDispatcherHost( 1083 AddFilter(new IndexedDBDispatcherHost(
1084 GetID(), storage_partition_impl_->GetURLRequestContext(), 1084 GetID(), storage_partition_impl_->GetURLRequestContext(),
1085 storage_partition_impl_->GetIndexedDBContext(), 1085 storage_partition_impl_->GetIndexedDBContext(),
1086 blob_storage_context.get())); 1086 blob_storage_context.get()));
1087 1087
(...skipping 1914 matching lines...) Expand 10 before | Expand all | Expand 10 after
3002 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 3002 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
3003 3003
3004 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. 3004 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing.
3005 // Capture the error message in a crash key value. 3005 // Capture the error message in a crash key value.
3006 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); 3006 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error);
3007 bad_message::ReceivedBadMessage(render_process_id, 3007 bad_message::ReceivedBadMessage(render_process_id,
3008 bad_message::RPH_MOJO_PROCESS_ERROR); 3008 bad_message::RPH_MOJO_PROCESS_ERROR);
3009 } 3009 }
3010 3010
3011 } // namespace content 3011 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698