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

Unified Diff: third_party/WebKit/Source/modules/peerconnection/RTCConfiguration.idl

Issue 2442763002: Convert Dictionary handling to RTCConfiguration IDL dictionary (Closed)
Patch Set: revert rtcpMuxPolicy default, also measure urls Created 4 years, 2 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: third_party/WebKit/Source/modules/peerconnection/RTCConfiguration.idl
diff --git a/third_party/WebKit/Source/modules/peerconnection/RTCConfiguration.idl b/third_party/WebKit/Source/modules/peerconnection/RTCConfiguration.idl
new file mode 100644
index 0000000000000000000000000000000000000000..58ebd35b8003e3099b4a0394def77a4767a5e84f
--- /dev/null
+++ b/third_party/WebKit/Source/modules/peerconnection/RTCConfiguration.idl
@@ -0,0 +1,43 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// https://w3c.github.io/webrtc-pc/#rtcicetransportpolicy-enum
+
hbos_chromium 2016/10/24 11:35:24 nit: Here and other places - do we have a space be
foolip 2016/10/24 12:05:25 In core/ there's pretty consistently a blank line
+// TODO(foolip): This is called RTCIceTransportPolicy in the spec, and that enum
+// does not have "none" as one of its values.
+enum RTCIceTransports {
+ "none",
+ "relay",
+ "all"
+};
+
+// https://w3c.github.io/webrtc-pc/#rtcbundlepolicy-enum
+
+enum RTCBundlePolicy {
+ "balanced",
+ "max-compat",
+ "max-bundle"
+};
+
+// https://w3c.github.io/webrtc-pc/#rtcrtcpmuxpolicy-enum
+
+enum RTCRtcpMuxPolicy {
+ "negotiate",
+ "require"
+};
+
+// https://w3c.github.io/webrtc-pc/#rtcconfiguration-dictionary
+
+dictionary RTCConfiguration {
+ sequence<RTCIceServer> iceServers;
+ // TODO(foolip): |iceTransports| should be |iceTransportPolicy|.
foolip 2016/10/23 10:17:58 Having written https://github.com/w3c/web-platform
+ RTCIceTransports iceTransports = "all";
+ RTCBundlePolicy bundlePolicy = "balanced";
+ // TODO(foolip): |rtcpMuxPolicy| default should be "require".
+ RTCRtcpMuxPolicy rtcpMuxPolicy;
+ // TODO(foolip): DOMString peerIdentity;
+ // TODO(foolip): |certificates| should not be nullable.
+ sequence<RTCCertificate>? certificates;
+ // TODO(foolip): unsigned short iceCandidatePoolSize = 0;
+};

Powered by Google App Engine
This is Rietveld 408576698