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

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

Issue 132113015: IPC interface for font management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Checkpoint Created 6 years, 9 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_directwrite_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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 #include "ui/gfx/switches.h" 141 #include "ui/gfx/switches.h"
141 #include "ui/gl/gl_switches.h" 142 #include "ui/gl/gl_switches.h"
142 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" 143 #include "webkit/browser/fileapi/sandbox_file_system_backend.h"
143 #include "webkit/common/resource_type.h" 144 #include "webkit/common/resource_type.h"
144 145
145 #if defined(OS_WIN) 146 #if defined(OS_WIN)
146 #include "base/win/scoped_com_initializer.h" 147 #include "base/win/scoped_com_initializer.h"
147 #include "content/common/font_cache_dispatcher_win.h" 148 #include "content/common/font_cache_dispatcher_win.h"
148 #include "content/common/sandbox_win.h" 149 #include "content/common/sandbox_win.h"
149 #include "content/public/common/sandboxed_process_launcher_delegate.h" 150 #include "content/public/common/sandboxed_process_launcher_delegate.h"
151 #include "third_party/skia/include/ports/SkTypeface_win.h"
150 #endif 152 #endif
151 153
152 #if defined(ENABLE_WEBRTC) 154 #if defined(ENABLE_WEBRTC)
153 #include "content/browser/media/webrtc_internals.h" 155 #include "content/browser/media/webrtc_internals.h"
154 #include "content/browser/renderer_host/media/webrtc_identity_service_host.h" 156 #include "content/browser/renderer_host/media/webrtc_identity_service_host.h"
155 #include "content/common/media/media_stream_messages.h" 157 #include "content/common/media/media_stream_messages.h"
156 #endif 158 #endif
157 159
158 #include "third_party/skia/include/core/SkBitmap.h" 160 #include "third_party/skia/include/core/SkBitmap.h"
159 161
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 ChromeBlobStorageContext::GetFor(browser_context), 722 ChromeBlobStorageContext::GetFor(browser_context),
721 StreamContext::GetFor(browser_context))); 723 StreamContext::GetFor(browser_context)));
722 AddFilter(new FileUtilitiesMessageFilter(GetID())); 724 AddFilter(new FileUtilitiesMessageFilter(GetID()));
723 AddFilter(new MimeRegistryMessageFilter()); 725 AddFilter(new MimeRegistryMessageFilter());
724 AddFilter(new DatabaseMessageFilter( 726 AddFilter(new DatabaseMessageFilter(
725 storage_partition_impl_->GetDatabaseTracker())); 727 storage_partition_impl_->GetDatabaseTracker()));
726 #if defined(OS_MACOSX) 728 #if defined(OS_MACOSX)
727 AddFilter(new TextInputClientMessageFilter(GetID())); 729 AddFilter(new TextInputClientMessageFilter(GetID()));
728 #elif defined(OS_WIN) 730 #elif defined(OS_WIN)
729 channel_->AddFilter(new FontCacheDispatcher()); 731 channel_->AddFilter(new FontCacheDispatcher());
732 AddFilter(new content::FontMgrMessageFilter(
733 SkFontMgrRemotable_New_DirectWrite()));
730 #elif defined(OS_ANDROID) 734 #elif defined(OS_ANDROID)
731 browser_demuxer_android_ = new BrowserDemuxerAndroid(); 735 browser_demuxer_android_ = new BrowserDemuxerAndroid();
732 AddFilter(browser_demuxer_android_); 736 AddFilter(browser_demuxer_android_);
733 #endif 737 #endif
734 738
735 SocketStreamDispatcherHost::GetRequestContextCallback 739 SocketStreamDispatcherHost::GetRequestContextCallback
736 request_context_callback( 740 request_context_callback(
737 base::Bind(&GetRequestContext, request_context, 741 base::Bind(&GetRequestContext, request_context,
738 media_request_context)); 742 media_request_context));
739 743
(...skipping 1337 matching lines...) Expand 10 before | Expand all | Expand 10 after
2077 return; 2081 return;
2078 Send(new MediaStreamMsg_EnableAecDump(file_for_transit)); 2082 Send(new MediaStreamMsg_EnableAecDump(file_for_transit));
2079 } 2083 }
2080 2084
2081 void RenderProcessHostImpl::SendDisableAecDumpToRenderer() { 2085 void RenderProcessHostImpl::SendDisableAecDumpToRenderer() {
2082 Send(new MediaStreamMsg_DisableAecDump()); 2086 Send(new MediaStreamMsg_DisableAecDump());
2083 } 2087 }
2084 #endif 2088 #endif
2085 2089
2086 } // namespace content 2090 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698