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

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

Issue 10703095: New PeerConnection handler in Chrome to support latest PeerConnection draft (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Readd the UMA histogram for Deprecated PeerConnection to not screw up the stats. Created 8 years, 3 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/peer_connection_handler_base.cc
diff --git a/content/renderer/media/peer_connection_handler_base.cc b/content/renderer/media/peer_connection_handler_base.cc
index 156d0f157a79473302218ec722adcdb04f5d01d3..aee660ab9facd252df10dcea51cce7c301b0cdb4 100644
--- a/content/renderer/media/peer_connection_handler_base.cc
+++ b/content/renderer/media/peer_connection_handler_base.cc
@@ -39,6 +39,16 @@ void PeerConnectionHandlerBase::AddStream(
DCHECK(native_stream);
}
+bool PeerConnectionHandlerBase::AddStream(
+ const WebKit::WebMediaStreamDescriptor& stream,
+ const webrtc::MediaConstraintsInterface* constraints) {
+ webrtc::LocalMediaStreamInterface* native_stream =
+ GetLocalNativeMediaStream(stream);
+ if (!native_stream)
+ return false;
+ return native_peer_connection_->AddStream(native_stream, constraints);
+}
+
void PeerConnectionHandlerBase::RemoveStream(
const WebKit::WebMediaStreamDescriptor& stream) {
webrtc::LocalMediaStreamInterface* native_stream =
« no previous file with comments | « content/renderer/media/peer_connection_handler_base.h ('k') | content/renderer/media/rtc_peer_connection_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698