| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 #include "content/browser/media/capture/audio_mirroring_manager.h" | 64 #include "content/browser/media/capture/audio_mirroring_manager.h" |
| 65 #include "content/browser/media/media_internals.h" | 65 #include "content/browser/media/media_internals.h" |
| 66 #include "content/browser/message_port_message_filter.h" | 66 #include "content/browser/message_port_message_filter.h" |
| 67 #include "content/browser/mime_registry_message_filter.h" | 67 #include "content/browser/mime_registry_message_filter.h" |
| 68 #include "content/browser/plugin_service_impl.h" | 68 #include "content/browser/plugin_service_impl.h" |
| 69 #include "content/browser/profiler_message_filter.h" | 69 #include "content/browser/profiler_message_filter.h" |
| 70 #include "content/browser/quota_dispatcher_host.h" | 70 #include "content/browser/quota_dispatcher_host.h" |
| 71 #include "content/browser/renderer_host/clipboard_message_filter.h" | 71 #include "content/browser/renderer_host/clipboard_message_filter.h" |
| 72 #include "content/browser/renderer_host/database_message_filter.h" | 72 #include "content/browser/renderer_host/database_message_filter.h" |
| 73 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 73 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
| 74 #include "content/browser/renderer_host/fontmgr_message_filter.h" |
| 74 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" | 75 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" |
| 75 #include "content/browser/renderer_host/gpu_message_filter.h" | 76 #include "content/browser/renderer_host/gpu_message_filter.h" |
| 76 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" | 77 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
| 77 #include "content/browser/renderer_host/media/audio_renderer_host.h" | 78 #include "content/browser/renderer_host/media/audio_renderer_host.h" |
| 78 #include "content/browser/renderer_host/media/device_request_message_filter.h" | 79 #include "content/browser/renderer_host/media/device_request_message_filter.h" |
| 79 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" | 80 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" |
| 80 #include "content/browser/renderer_host/media/midi_dispatcher_host.h" | 81 #include "content/browser/renderer_host/media/midi_dispatcher_host.h" |
| 81 #include "content/browser/renderer_host/media/midi_host.h" | 82 #include "content/browser/renderer_host/media/midi_host.h" |
| 82 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" | 83 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" |
| 83 #include "content/browser/renderer_host/media/video_capture_host.h" | 84 #include "content/browser/renderer_host/media/video_capture_host.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 #include "ui/gfx/switches.h" | 145 #include "ui/gfx/switches.h" |
| 145 #include "ui/gl/gl_switches.h" | 146 #include "ui/gl/gl_switches.h" |
| 146 #include "ui/native_theme/native_theme_switches.h" | 147 #include "ui/native_theme/native_theme_switches.h" |
| 147 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" | 148 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" |
| 148 #include "webkit/common/resource_type.h" | 149 #include "webkit/common/resource_type.h" |
| 149 | 150 |
| 150 #if defined(OS_WIN) | 151 #if defined(OS_WIN) |
| 151 #include "base/win/scoped_com_initializer.h" | 152 #include "base/win/scoped_com_initializer.h" |
| 152 #include "content/common/font_cache_dispatcher_win.h" | 153 #include "content/common/font_cache_dispatcher_win.h" |
| 153 #include "content/common/sandbox_win.h" | 154 #include "content/common/sandbox_win.h" |
| 155 #include "skia/ext/refptr.h" |
| 156 #include "third_party/skia/include/ports/SkRemotableFontMgr.h" |
| 157 #include "third_party/skia/include/ports/SkTypeface_win.h" |
| 154 #endif | 158 #endif |
| 155 | 159 |
| 156 #if defined(ENABLE_WEBRTC) | 160 #if defined(ENABLE_WEBRTC) |
| 157 #include "content/browser/media/webrtc_internals.h" | 161 #include "content/browser/media/webrtc_internals.h" |
| 158 #include "content/browser/renderer_host/media/media_stream_track_metrics_host.h" | 162 #include "content/browser/renderer_host/media/media_stream_track_metrics_host.h" |
| 159 #include "content/browser/renderer_host/media/webrtc_identity_service_host.h" | 163 #include "content/browser/renderer_host/media/webrtc_identity_service_host.h" |
| 160 #include "content/common/media/media_stream_messages.h" | 164 #include "content/common/media/media_stream_messages.h" |
| 161 #endif | 165 #endif |
| 162 | 166 |
| 163 #if defined(USE_MOJO) | 167 #if defined(USE_MOJO) |
| (...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 758 ChromeBlobStorageContext::GetFor(browser_context), | 762 ChromeBlobStorageContext::GetFor(browser_context), |
| 759 StreamContext::GetFor(browser_context))); | 763 StreamContext::GetFor(browser_context))); |
| 760 AddFilter(new FileUtilitiesMessageFilter(GetID())); | 764 AddFilter(new FileUtilitiesMessageFilter(GetID())); |
| 761 AddFilter(new MimeRegistryMessageFilter()); | 765 AddFilter(new MimeRegistryMessageFilter()); |
| 762 AddFilter(new DatabaseMessageFilter( | 766 AddFilter(new DatabaseMessageFilter( |
| 763 storage_partition_impl_->GetDatabaseTracker())); | 767 storage_partition_impl_->GetDatabaseTracker())); |
| 764 #if defined(OS_MACOSX) | 768 #if defined(OS_MACOSX) |
| 765 AddFilter(new TextInputClientMessageFilter(GetID())); | 769 AddFilter(new TextInputClientMessageFilter(GetID())); |
| 766 #elif defined(OS_WIN) | 770 #elif defined(OS_WIN) |
| 767 channel_->AddFilter(new FontCacheDispatcher()); | 771 channel_->AddFilter(new FontCacheDispatcher()); |
| 772 skia::RefPtr<SkRemotableFontMgr> dw_remotable_fontmgr = |
| 773 skia::AdoptRef(SkRemotableFontMgr_New_DirectWrite()); |
| 774 if (dw_remotable_fontmgr) { |
| 775 AddFilter(new content::FontMgrMessageFilter(dw_remotable_fontmgr)); |
| 776 } |
| 768 #elif defined(OS_ANDROID) | 777 #elif defined(OS_ANDROID) |
| 769 browser_demuxer_android_ = new BrowserDemuxerAndroid(); | 778 browser_demuxer_android_ = new BrowserDemuxerAndroid(); |
| 770 AddFilter(browser_demuxer_android_); | 779 AddFilter(browser_demuxer_android_); |
| 771 #endif | 780 #endif |
| 772 | 781 |
| 773 SocketStreamDispatcherHost::GetRequestContextCallback | 782 SocketStreamDispatcherHost::GetRequestContextCallback |
| 774 request_context_callback( | 783 request_context_callback( |
| 775 base::Bind(&GetRequestContext, request_context, | 784 base::Bind(&GetRequestContext, request_context, |
| 776 media_request_context)); | 785 media_request_context)); |
| 777 | 786 |
| (...skipping 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2172 child_process_launcher_->GetHandle(); | 2181 child_process_launcher_->GetHandle(); |
| 2173 base::PlatformFile client_file = | 2182 base::PlatformFile client_file = |
| 2174 PlatformFileFromScopedPlatformHandle(channel_pair.PassClientHandle()); | 2183 PlatformFileFromScopedPlatformHandle(channel_pair.PassClientHandle()); |
| 2175 Send(new MojoMsg_ChannelCreated( | 2184 Send(new MojoMsg_ChannelCreated( |
| 2176 IPC::GetFileHandleForProcess(client_file, process_handle, true))); | 2185 IPC::GetFileHandleForProcess(client_file, process_handle, true))); |
| 2177 } | 2186 } |
| 2178 } | 2187 } |
| 2179 #endif | 2188 #endif |
| 2180 | 2189 |
| 2181 } // namespace content | 2190 } // namespace content |
| OLD | NEW |