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

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

Issue 2283493003: Delete browser MSE implementation. (Closed)
Patch Set: Actually delete MSP. Cleanse references. Remove AudioTrack usage. Created 4 years, 2 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
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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 #include "ui/base/ui_base_switches.h" 186 #include "ui/base/ui_base_switches.h"
187 #include "ui/display/display_switches.h" 187 #include "ui/display/display_switches.h"
188 #include "ui/events/event_switches.h" 188 #include "ui/events/event_switches.h"
189 #include "ui/gfx/switches.h" 189 #include "ui/gfx/switches.h"
190 #include "ui/gl/gl_switches.h" 190 #include "ui/gl/gl_switches.h"
191 #include "ui/gl/gpu_switching_manager.h" 191 #include "ui/gl/gpu_switching_manager.h"
192 #include "ui/native_theme/native_theme_switches.h" 192 #include "ui/native_theme/native_theme_switches.h"
193 193
194 #if defined(OS_ANDROID) 194 #if defined(OS_ANDROID)
195 #include "content/browser/android/child_process_launcher_android.h" 195 #include "content/browser/android/child_process_launcher_android.h"
196 #include "content/browser/media/android/browser_demuxer_android.h"
197 #include "content/browser/mojo/interface_registrar_android.h" 196 #include "content/browser/mojo/interface_registrar_android.h"
198 #include "content/browser/screen_orientation/screen_orientation_message_filter_a ndroid.h" 197 #include "content/browser/screen_orientation/screen_orientation_message_filter_a ndroid.h"
199 #include "content/public/browser/android/java_interfaces.h" 198 #include "content/public/browser/android/java_interfaces.h"
200 #include "ipc/ipc_sync_channel.h" 199 #include "ipc/ipc_sync_channel.h"
201 #include "media/audio/android/audio_manager_android.h" 200 #include "media/audio/android/audio_manager_android.h"
202 #endif 201 #endif
203 202
204 #if defined(OS_WIN) 203 #if defined(OS_WIN)
205 #include "base/win/scoped_com_initializer.h" 204 #include "base/win/scoped_com_initializer.h"
206 #include "base/win/windows_version.h" 205 #include "base/win/windows_version.h"
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
1140 #if defined(OS_MACOSX) 1139 #if defined(OS_MACOSX)
1141 AddFilter(new TextInputClientMessageFilter()); 1140 AddFilter(new TextInputClientMessageFilter());
1142 #elif defined(OS_WIN) 1141 #elif defined(OS_WIN)
1143 AddFilter(new DWriteFontProxyMessageFilter()); 1142 AddFilter(new DWriteFontProxyMessageFilter());
1144 1143
1145 // The FontCacheDispatcher is required only when we're using GDI rendering. 1144 // The FontCacheDispatcher is required only when we're using GDI rendering.
1146 // TODO(scottmg): pdf/ppapi still require the renderer to be able to precache 1145 // TODO(scottmg): pdf/ppapi still require the renderer to be able to precache
1147 // GDI fonts (http://crbug.com/383227), even when using DirectWrite. This 1146 // GDI fonts (http://crbug.com/383227), even when using DirectWrite. This
1148 // should eventually be if (!ShouldUseDirectWrite()) guarded. 1147 // should eventually be if (!ShouldUseDirectWrite()) guarded.
1149 channel_->AddFilter(new FontCacheDispatcher()); 1148 channel_->AddFilter(new FontCacheDispatcher());
1150 #elif defined(OS_ANDROID)
1151 browser_demuxer_android_ = new BrowserDemuxerAndroid();
1152 AddFilter(browser_demuxer_android_.get());
1153 #endif 1149 #endif
1154 #if defined(ENABLE_BROWSER_CDMS) 1150 #if defined(ENABLE_BROWSER_CDMS)
1155 AddFilter(new BrowserCdmManager(GetID(), NULL)); 1151 AddFilter(new BrowserCdmManager(GetID(), NULL));
1156 #endif 1152 #endif
1157 1153
1158 message_port_message_filter_ = new MessagePortMessageFilter( 1154 message_port_message_filter_ = new MessagePortMessageFilter(
1159 base::Bind(&RenderWidgetHelper::GetNextRoutingID, 1155 base::Bind(&RenderWidgetHelper::GetNextRoutingID,
1160 base::Unretained(widget_helper_.get()))); 1156 base::Unretained(widget_helper_.get())));
1161 AddFilter(message_port_message_filter_.get()); 1157 AddFilter(message_port_message_filter_.get());
1162 1158
(...skipping 1883 matching lines...) Expand 10 before | Expand all | Expand 10 after
3046 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 3042 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
3047 3043
3048 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias 3044 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias
3049 // enough information here so that we can determine what the bad message was. 3045 // enough information here so that we can determine what the bad message was.
3050 base::debug::Alias(&error); 3046 base::debug::Alias(&error);
3051 bad_message::ReceivedBadMessage(process.get(), 3047 bad_message::ReceivedBadMessage(process.get(),
3052 bad_message::RPH_MOJO_PROCESS_ERROR); 3048 bad_message::RPH_MOJO_PROCESS_ERROR);
3053 } 3049 }
3054 3050
3055 } // namespace content 3051 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698