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

Unified Diff: content/renderer/media/media_stream_impl.cc

Issue 9309078: Adding a skeleton MediaStreamCenter. (Closed)
Patch Set: Fixed review comments Created 8 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/media_stream_impl.cc
diff --git a/content/renderer/media/media_stream_impl.cc b/content/renderer/media/media_stream_impl.cc
index 0a3444746972f838cf73392a9e24b96d0b5994a6..107a3c9cd73e87e5715b512951ce9b39136c86aa 100644
--- a/content/renderer/media/media_stream_impl.cc
+++ b/content/renderer/media/media_stream_impl.cc
@@ -11,6 +11,7 @@
#include "base/synchronization/waitable_event.h"
#include "base/utf_string_conversions.h"
#include "content/renderer/media/capture_video_decoder.h"
+#include "content/renderer/media/media_stream_center.h"
#include "content/renderer/media/media_stream_dependency_factory.h"
#include "content/renderer/media/media_stream_dispatcher.h"
#include "content/renderer/media/peer_connection_handler.h"
@@ -81,6 +82,7 @@ MediaStreamImpl::MediaStreamImpl(
network_manager_(NULL),
vc_manager_(vc_manager),
peer_connection_handler_(NULL),
+ media_stream_center_(NULL),
message_loop_proxy_(base::MessageLoopProxy::current()),
signaling_thread_(NULL),
worker_thread_(NULL),
@@ -125,6 +127,15 @@ WebKit::WebPeerConnectionHandler* MediaStreamImpl::CreatePeerConnectionHandler(
return peer_connection_handler_;
}
+WebKit::WebMediaStreamCenter* MediaStreamImpl::CreateMediaStreamCenter(
+ WebKit::WebMediaStreamCenterClient* client) {
+ DCHECK(CalledOnValidThread());
+ DCHECK(!media_stream_center_);
+
+ media_stream_center_ = new content::MediaStreamCenter(client);
+ return media_stream_center_;
+}
+
void MediaStreamImpl::ClosePeerConnection() {
DCHECK(CalledOnValidThread());
video_renderer_ = NULL;

Powered by Google App Engine
This is Rietveld 408576698