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

Unified Diff: public/platform/WebRTCPeerConnectionHandler.h

Issue 16025003: Adds DataChannelInit param to createDataChannel (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebRTCPeerConnectionHandler.h
diff --git a/public/platform/WebRTCPeerConnectionHandler.h b/public/platform/WebRTCPeerConnectionHandler.h
index c4defa8f50a605404fb21ce9cc25637055385985..fb2fc6f46faf29972fddd90d156dc1c8d532301f 100644
--- a/public/platform/WebRTCPeerConnectionHandler.h
+++ b/public/platform/WebRTCPeerConnectionHandler.h
@@ -31,6 +31,9 @@
#ifndef WebRTCPeerConnectionHandler_h
#define WebRTCPeerConnectionHandler_h
+#include "WebCommon.h"
+#include "WebString.h"
+
namespace WebKit {
class WebMediaConstraints;
class WebMediaStream;
@@ -44,7 +47,15 @@ class WebRTCSessionDescription;
class WebRTCSessionDescriptionRequest;
class WebRTCStatsRequest;
class WebRTCVoidRequest;
-class WebString;
+
+struct WebRTCDataChannelInit {
+ unsigned short id;
+ bool ordered;
+ bool negotiated;
+ int maxRetransmitTime;
+ int maxRetransmits;
+ WebString protocol;
+};
class WebRTCPeerConnectionHandler {
public:
@@ -64,6 +75,11 @@ public:
virtual void removeStream(const WebMediaStream&) = 0;
virtual void getStats(const WebRTCStatsRequest&) = 0;
virtual WebRTCDataChannelHandler* createDataChannel(const WebString& label, bool reliable) = 0;
+ virtual WebRTCDataChannelHandler* createDataChannel(const WebString& label, const WebRTCDataChannelInit& init)
+ {
+ WEBKIT_ASSERT_NOT_REACHED();
+ return 0;
+ }
virtual WebRTCDTMFSenderHandler* createDTMFSender(const WebMediaStreamTrack&) = 0;
virtual void stop() = 0;
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698