Index: content/renderer/render_thread_impl.cc |
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc |
index 1f5216ed4f9533713f755b492b2e63b5a67affc2..bd56cfcebcd812885f1291e1dcf9ff04ef673541 100644 |
--- a/content/renderer/render_thread_impl.cc |
+++ b/content/renderer/render_thread_impl.cc |
@@ -46,6 +46,7 @@ |
#include "content/renderer/gpu/compositor_thread.h" |
#include "content/renderer/media/audio_input_message_filter.h" |
#include "content/renderer/media/audio_message_filter.h" |
+#include "content/renderer/media/media_stream_center.h" |
#include "content/renderer/media/video_capture_impl_manager.h" |
#include "content/renderer/media/video_capture_message_filter.h" |
#include "content/renderer/plugin_channel_host.h" |
@@ -206,6 +207,8 @@ void RenderThreadImpl::Init() { |
main_thread_indexed_db_dispatcher_.reset( |
IndexedDBDispatcher::ThreadSpecificInstance()); |
+ media_stream_center_ = NULL; |
+ |
db_message_filter_ = new DBMessageFilter(); |
AddFilter(db_message_filter_.get()); |
@@ -906,6 +909,17 @@ GpuChannelHost* RenderThreadImpl::EstablishGpuChannelSync( |
return GetGpuChannel(); |
} |
+WebKit::WebMediaStreamCenter* RenderThreadImpl::CreateMediaStreamCenter( |
+ WebKit::WebMediaStreamCenterClient* client) { |
+ if (!CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kEnableMediaStream)) { |
+ return NULL; |
+ } |
+ if (!media_stream_center_) |
+ media_stream_center_ = new content::MediaStreamCenter(client); |
+ return media_stream_center_; |
+} |
+ |
GpuChannelHost* RenderThreadImpl::GetGpuChannel() { |
if (!gpu_channel_.get()) |
return NULL; |