| OLD | NEW |
| 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 Loading... |
| 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 1915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3003 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 3003 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
| 3004 | 3004 |
| 3005 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. | 3005 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. |
| 3006 // Capture the error message in a crash key value. | 3006 // Capture the error message in a crash key value. |
| 3007 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); | 3007 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); |
| 3008 bad_message::ReceivedBadMessage(render_process_id, | 3008 bad_message::ReceivedBadMessage(render_process_id, |
| 3009 bad_message::RPH_MOJO_PROCESS_ERROR); | 3009 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 3010 } | 3010 } |
| 3011 | 3011 |
| 3012 } // namespace content | 3012 } // namespace content |
| OLD | NEW |