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

Side by Side Diff: third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.idl

Issue 2511633002: Rename "updateICE" to "setConfiguration", everywhere except in Blink. (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 [CallWith=ScriptState] Promise<void> setRemoteDescription(RTCSessionDescript ionInit description); 77 [CallWith=ScriptState] Promise<void> setRemoteDescription(RTCSessionDescript ionInit description);
78 readonly attribute RTCSessionDescription? remoteDescription; 78 readonly attribute RTCSessionDescription? remoteDescription;
79 // readonly attribute RTCSessionDescription? currentRemoteDescription; 79 // readonly attribute RTCSessionDescription? currentRemoteDescription;
80 // readonly attribute RTCSessionDescription? pendingRemoteDescription; 80 // readonly attribute RTCSessionDescription? pendingRemoteDescription;
81 [CallWith=ScriptState, MeasureAs=RTCPeerConnectionAddIceCandidatePromise] Pr omise<void> addIceCandidate ((RTCIceCandidateInit or RTCIceCandidate) candidate) ; 81 [CallWith=ScriptState, MeasureAs=RTCPeerConnectionAddIceCandidatePromise] Pr omise<void> addIceCandidate ((RTCIceCandidateInit or RTCIceCandidate) candidate) ;
82 readonly attribute RTCSignalingState signalingState; 82 readonly attribute RTCSignalingState signalingState;
83 readonly attribute RTCIceGatheringState iceGatheringState; 83 readonly attribute RTCIceGatheringState iceGatheringState;
84 readonly attribute RTCIceConnectionState iceConnectionState; 84 readonly attribute RTCIceConnectionState iceConnectionState;
85 // readonly attribute boolean? canTrickleIceCandidates; 85 // readonly attribute boolean? canTrickleIceCandidates;
86 // RTCConfiguration getConfiguration(); 86 // RTCConfiguration getConfiguration();
87 // void setConfiguration(RTCConfiguration configuration); 87 [CallWith=ExecutionContext, RaisesException] void setConfiguration (RTCConfi guration configuration);
foolip 2016/11/17 10:10:54 This is great, if the implementation already does
Taylor_Brandstetter 2016/11/17 21:32:52 It doesn't do everything yet. Things it doesn't ye
foolip 2016/11/18 09:16:05 It's fine to ship with some known issues, if fixin
88 // TODO(guidou): close() should never throw an exception. 88 // TODO(guidou): close() should never throw an exception.
89 [RaisesException] void close(); 89 [RaisesException] void close();
90 attribute EventHandler onnegotiationneeded; 90 attribute EventHandler onnegotiationneeded;
91 attribute EventHandler onicecandidate; 91 attribute EventHandler onicecandidate;
92 attribute EventHandler onsignalingstatechange; 92 attribute EventHandler onsignalingstatechange;
93 attribute EventHandler oniceconnectionstatechange; 93 attribute EventHandler oniceconnectionstatechange;
94 // attribute EventHandler onicegatheringstatechange; 94 // attribute EventHandler onicegatheringstatechange;
95 95
96 // https://w3c.github.io/webrtc-pc/#legacy-interface-extensions 96 // https://w3c.github.io/webrtc-pc/#legacy-interface-extensions
97 // These methods return Promise<void> because having Promise-based versions requires that all overloads return Promises. 97 // These methods return Promise<void> because having Promise-based versions requires that all overloads return Promises.
(...skipping 15 matching lines...) Expand all
113 // TODO(guidou): The label argument should have [TreatNullAs=EmptyString] 113 // TODO(guidou): The label argument should have [TreatNullAs=EmptyString]
114 // and be non-nullable. 114 // and be non-nullable.
115 [CallWith=ExecutionContext, RaisesException] RTCDataChannel createDataChanne l(DOMString? label, optional Dictionary options); 115 [CallWith=ExecutionContext, RaisesException] RTCDataChannel createDataChanne l(DOMString? label, optional Dictionary options);
116 attribute EventHandler ondatachannel; 116 attribute EventHandler ondatachannel;
117 117
118 // Certificate management 118 // Certificate management
119 // https://w3c.github.io/webrtc-pc/#sec.cert-mgmt 119 // https://w3c.github.io/webrtc-pc/#sec.cert-mgmt
120 [RaisesException, CallWith=ScriptState] static Promise<RTCCertificate> gener ateCertificate(AlgorithmIdentifier keygenAlgorithm); 120 [RaisesException, CallWith=ScriptState] static Promise<RTCCertificate> gener ateCertificate(AlgorithmIdentifier keygenAlgorithm);
121 121
122 // Non-standard or removed from the spec: 122 // Non-standard or removed from the spec:
123 [Measure, CallWith=ExecutionContext, RaisesException] void updateIce(optiona l RTCConfiguration configuration, optional Dictionary mediaConstraints);
124 [Measure] sequence<MediaStream> getLocalStreams(); 123 [Measure] sequence<MediaStream> getLocalStreams();
125 [Measure] sequence<MediaStream> getRemoteStreams(); 124 [Measure] sequence<MediaStream> getRemoteStreams();
126 [Measure] MediaStream getStreamById(DOMString streamId); 125 [Measure] MediaStream getStreamById(DOMString streamId);
127 [Measure, CallWith=ExecutionContext, RaisesException] void addStream(MediaSt ream? stream, optional Dictionary mediaConstraints); 126 [Measure, CallWith=ExecutionContext, RaisesException] void addStream(MediaSt ream? stream, optional Dictionary mediaConstraints);
128 [Measure, RaisesException] void removeStream(MediaStream? stream); 127 [Measure, RaisesException] void removeStream(MediaStream? stream);
129 [Measure, RaisesException] RTCDTMFSender createDTMFSender(MediaStreamTrack t rack); 128 [Measure, RaisesException] RTCDTMFSender createDTMFSender(MediaStreamTrack t rack);
130 attribute EventHandler onaddstream; 129 attribute EventHandler onaddstream;
131 attribute EventHandler onremovestream; 130 attribute EventHandler onremovestream;
132 }; 131 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698