| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 #include "content/browser/gpu/gpu_data_manager_impl.h" | 57 #include "content/browser/gpu/gpu_data_manager_impl.h" |
| 58 #include "content/browser/gpu/gpu_process_host.h" | 58 #include "content/browser/gpu/gpu_process_host.h" |
| 59 #include "content/browser/gpu/shader_disk_cache.h" | 59 #include "content/browser/gpu/shader_disk_cache.h" |
| 60 #include "content/browser/histogram_message_filter.h" | 60 #include "content/browser/histogram_message_filter.h" |
| 61 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 61 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
| 62 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" | 62 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" |
| 63 #include "content/browser/loader/resource_message_filter.h" | 63 #include "content/browser/loader/resource_message_filter.h" |
| 64 #include "content/browser/loader/resource_scheduler_filter.h" | 64 #include "content/browser/loader/resource_scheduler_filter.h" |
| 65 #include "content/browser/media/capture/audio_mirroring_manager.h" | 65 #include "content/browser/media/capture/audio_mirroring_manager.h" |
| 66 #include "content/browser/media/media_internals.h" | 66 #include "content/browser/media/media_internals.h" |
| 67 #include "content/browser/media/midi_host.h" |
| 67 #include "content/browser/message_port_message_filter.h" | 68 #include "content/browser/message_port_message_filter.h" |
| 68 #include "content/browser/mime_registry_message_filter.h" | 69 #include "content/browser/mime_registry_message_filter.h" |
| 69 #include "content/browser/mojo/mojo_application_host.h" | 70 #include "content/browser/mojo/mojo_application_host.h" |
| 70 #include "content/browser/plugin_service_impl.h" | 71 #include "content/browser/plugin_service_impl.h" |
| 71 #include "content/browser/profiler_message_filter.h" | 72 #include "content/browser/profiler_message_filter.h" |
| 72 #include "content/browser/push_messaging_message_filter.h" | 73 #include "content/browser/push_messaging_message_filter.h" |
| 73 #include "content/browser/quota_dispatcher_host.h" | 74 #include "content/browser/quota_dispatcher_host.h" |
| 74 #include "content/browser/renderer_host/clipboard_message_filter.h" | 75 #include "content/browser/renderer_host/clipboard_message_filter.h" |
| 75 #include "content/browser/renderer_host/database_message_filter.h" | 76 #include "content/browser/renderer_host/database_message_filter.h" |
| 76 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 77 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
| 77 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" | 78 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" |
| 78 #include "content/browser/renderer_host/gpu_message_filter.h" | 79 #include "content/browser/renderer_host/gpu_message_filter.h" |
| 79 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" | 80 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
| 80 #include "content/browser/renderer_host/media/audio_renderer_host.h" | 81 #include "content/browser/renderer_host/media/audio_renderer_host.h" |
| 81 #include "content/browser/renderer_host/media/device_request_message_filter.h" | 82 #include "content/browser/renderer_host/media/device_request_message_filter.h" |
| 82 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" | 83 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" |
| 83 #include "content/browser/renderer_host/media/midi_dispatcher_host.h" | |
| 84 #include "content/browser/renderer_host/media/midi_host.h" | |
| 85 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" | 84 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" |
| 86 #include "content/browser/renderer_host/media/video_capture_host.h" | 85 #include "content/browser/renderer_host/media/video_capture_host.h" |
| 87 #include "content/browser/renderer_host/memory_benchmark_message_filter.h" | 86 #include "content/browser/renderer_host/memory_benchmark_message_filter.h" |
| 88 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" | 87 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" |
| 89 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" | 88 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" |
| 90 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" | 89 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" |
| 91 #include "content/browser/renderer_host/render_message_filter.h" | 90 #include "content/browser/renderer_host/render_message_filter.h" |
| 92 #include "content/browser/renderer_host/render_view_host_delegate.h" | 91 #include "content/browser/renderer_host/render_view_host_delegate.h" |
| 93 #include "content/browser/renderer_host/render_view_host_impl.h" | 92 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 94 #include "content/browser/renderer_host/render_widget_helper.h" | 93 #include "content/browser/renderer_host/render_widget_helper.h" |
| (...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 734 // stashed in a member variable. | 733 // stashed in a member variable. |
| 735 audio_renderer_host_ = new AudioRendererHost( | 734 audio_renderer_host_ = new AudioRendererHost( |
| 736 GetID(), | 735 GetID(), |
| 737 audio_manager, | 736 audio_manager, |
| 738 BrowserMainLoop::GetInstance()->audio_mirroring_manager(), | 737 BrowserMainLoop::GetInstance()->audio_mirroring_manager(), |
| 739 media_internals, | 738 media_internals, |
| 740 media_stream_manager); | 739 media_stream_manager); |
| 741 AddFilter(audio_renderer_host_); | 740 AddFilter(audio_renderer_host_); |
| 742 AddFilter( | 741 AddFilter( |
| 743 new MidiHost(GetID(), BrowserMainLoop::GetInstance()->midi_manager())); | 742 new MidiHost(GetID(), BrowserMainLoop::GetInstance()->midi_manager())); |
| 744 AddFilter(new MidiDispatcherHost(GetID(), browser_context)); | |
| 745 AddFilter(new VideoCaptureHost(media_stream_manager)); | 743 AddFilter(new VideoCaptureHost(media_stream_manager)); |
| 746 AddFilter(new AppCacheDispatcherHost( | 744 AddFilter(new AppCacheDispatcherHost( |
| 747 storage_partition_impl_->GetAppCacheService(), | 745 storage_partition_impl_->GetAppCacheService(), |
| 748 GetID())); | 746 GetID())); |
| 749 AddFilter(new ClipboardMessageFilter); | 747 AddFilter(new ClipboardMessageFilter); |
| 750 AddFilter(new DOMStorageMessageFilter( | 748 AddFilter(new DOMStorageMessageFilter( |
| 751 GetID(), | 749 GetID(), |
| 752 storage_partition_impl_->GetDOMStorageContext())); | 750 storage_partition_impl_->GetDOMStorageContext())); |
| 753 AddFilter(new IndexedDBDispatcherHost( | 751 AddFilter(new IndexedDBDispatcherHost( |
| 754 GetID(), | 752 GetID(), |
| (...skipping 1547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2302 void RenderProcessHostImpl::GpuMemoryBufferAllocated( | 2300 void RenderProcessHostImpl::GpuMemoryBufferAllocated( |
| 2303 IPC::Message* reply, | 2301 IPC::Message* reply, |
| 2304 const gfx::GpuMemoryBufferHandle& handle) { | 2302 const gfx::GpuMemoryBufferHandle& handle) { |
| 2305 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2303 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2306 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, | 2304 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, |
| 2307 handle); | 2305 handle); |
| 2308 Send(reply); | 2306 Send(reply); |
| 2309 } | 2307 } |
| 2310 | 2308 |
| 2311 } // namespace content | 2309 } // namespace content |
| OLD | NEW |