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

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

Issue 16232004: Adds DataChannelInit param to createDataChannel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
« no previous file with comments | « content/renderer/media/rtc_peer_connection_handler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/rtc_peer_connection_handler.cc
diff --git a/content/renderer/media/rtc_peer_connection_handler.cc b/content/renderer/media/rtc_peer_connection_handler.cc
index ab2ebcc1affb64e43e52964950a6113164edf363..f674626f2e749e9024452974078d1c8f075f8974 100644
--- a/content/renderer/media/rtc_peer_connection_handler.cc
+++ b/content/renderer/media/rtc_peer_connection_handler.cc
@@ -578,6 +578,15 @@ void RTCPeerConnectionHandler::GetStats(
}
WebKit::WebRTCDataChannelHandler* RTCPeerConnectionHandler::createDataChannel(
+ const WebKit::WebString& label, const WebKit::WebRTCDataChannelInit& init) {
+ // TODO(jiayl): update reliable to
+ // (init.ordered && init.maxRetransmitTime == -1 && init.maxRetransmits == -1)
+ // once Libjingle is updated to ignore this field for RTP data channels.
+ bool reliable = false;
+ return createDataChannel(label, reliable);
+}
+
+WebKit::WebRTCDataChannelHandler* RTCPeerConnectionHandler::createDataChannel(
const WebKit::WebString& label, bool reliable) {
DVLOG(1) << "createDataChannel label " << UTF16ToUTF8(label);
« no previous file with comments | « content/renderer/media/rtc_peer_connection_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698