Bug 942367 - Part 1: WebIDL changes for peerIdentity constraint. r=jib
☠☠ backed out by c2094871202f ☠ ☠
authorMartin Thomson <martin.thomson@gmail.com>
Tue, 08 Apr 2014 10:39:48 -0700
changeset 179493 7cc66aee4341db6523eeee2b10f6fa9e58a30ca6
parent 179492 d32e6e5c56177e430ad79c4b8f4bde821bcbf30b
child 179494 7d2138e87ca0d7617333a18137819b5ad6480855
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersjib
bugs942367
milestone31.0a1
Bug 942367 - Part 1: WebIDL changes for peerIdentity constraint. r=jib
dom/webidl/MediaStream.webidl
dom/webidl/PeerConnectionImpl.webidl
dom/webidl/RTCConfiguration.webidl
--- a/dom/webidl/MediaStream.webidl
+++ b/dom/webidl/MediaStream.webidl
@@ -13,23 +13,25 @@
 // These dictionaries need to be in a separate file from their
 // MediaTrackConstraints* counterparts due to a webidl compiler limitation.
 
 dictionary MediaStreamConstraints {
     (boolean or MediaTrackConstraints) audio = false;
     (boolean or MediaTrackConstraints) video = false;
     boolean picture = false;
     boolean fake = false;
+    DOMString? peerIdentity = null;
 };
 
 dictionary MediaStreamConstraintsInternal {
     (boolean or MediaTrackConstraintsInternal) audio;
     (boolean or MediaTrackConstraintsInternal) video;
     boolean picture = false;
     boolean fake = false;
+    DOMString? peerIdentity = null;
 };
 
 interface MediaStream {
     // readonly attribute DOMString    id;
     sequence<AudioStreamTrack> getAudioTracks ();
     sequence<VideoStreamTrack> getVideoTracks ();
     // MediaStreamTrack           getTrackById (DOMString trackId);
     // void                       addTrack (MediaStreamTrack track);
--- a/dom/webidl/PeerConnectionImpl.webidl
+++ b/dom/webidl/PeerConnectionImpl.webidl
@@ -67,16 +67,19 @@ interface PeerConnectionImpl  {
   readonly attribute DOMString remoteDescription;
 
   readonly attribute PCImplIceConnectionState iceConnectionState;
   readonly attribute PCImplIceGatheringState iceGatheringState;
   readonly attribute PCImplReadyState readyState;
   readonly attribute PCImplSignalingState signalingState;
   readonly attribute PCImplSipccState sipccState;
 
+  attribute DOMString peerIdentity;
+  readonly attribute boolean privacyRequested;
+
   /* Data channels */
   [Throws]
   DataChannel createDataChannel(DOMString label, DOMString protocol,
     unsigned short type, boolean outOfOrderAllowed,
     unsigned short maxTime, unsigned short maxNum,
     boolean externalNegotiated, unsigned short stream);
   [Throws]
   void connectDataConnection(unsigned short localport,
--- a/dom/webidl/RTCConfiguration.webidl
+++ b/dom/webidl/RTCConfiguration.webidl
@@ -10,9 +10,10 @@
 dictionary RTCIceServer {
     DOMString  url;
     DOMString? credential = null;
     DOMString? username = null;
 };
 
 dictionary RTCConfiguration {
     sequence<RTCIceServer> iceServers;
+    DOMString? peerIdentity = null;
 };