summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/peerconnection/rtc_ice_candidate.idl
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/peerconnection/rtc_ice_candidate.idl')
-rw-r--r--chromium/third_party/blink/renderer/modules/peerconnection/rtc_ice_candidate.idl4
1 files changed, 3 insertions, 1 deletions
diff --git a/chromium/third_party/blink/renderer/modules/peerconnection/rtc_ice_candidate.idl b/chromium/third_party/blink/renderer/modules/peerconnection/rtc_ice_candidate.idl
index 3bb7c975c4e..afbe83ccada 100644
--- a/chromium/third_party/blink/renderer/modules/peerconnection/rtc_ice_candidate.idl
+++ b/chromium/third_party/blink/renderer/modules/peerconnection/rtc_ice_candidate.idl
@@ -28,6 +28,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+// https://w3c.github.io/webrtc-pc/#rtcicecandidate-interface
[
Constructor(RTCIceCandidateInit candidateInitDict),
ConstructorCallWith=ExecutionContext,
@@ -37,5 +38,6 @@
attribute DOMString candidate;
attribute DOMString sdpMid;
attribute unsigned short sdpMLineIndex;
- serializer = {attribute};
+ // TODO(peria): Return type should be RTCIceCandidateInit.
+ [CallWith=ScriptState, ImplementedAs=toJSONForBinding] object toJSON();
};