Chromium Code Reviews

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

Issue 2591763002: RTCPeerConnection.getStats: Remove selector argument. (Closed)
Patch Set: Added TODO Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 89 matching lines...)
100 [CallWith=ScriptState] Promise<void> createAnswer(RTCSessionDescriptionCallb ack successCallback, RTCPeerConnectionErrorCallback failureCallback, optional Di ctionary mediaConstraints); 100 [CallWith=ScriptState] Promise<void> createAnswer(RTCSessionDescriptionCallb ack successCallback, RTCPeerConnectionErrorCallback failureCallback, optional Di ctionary mediaConstraints);
101 [CallWith=ScriptState] Promise<void> setLocalDescription(RTCSessionDescripti onInit description, VoidCallback successCallback, [Default=Undefined] optional R TCPeerConnectionErrorCallback failureCallback); 101 [CallWith=ScriptState] Promise<void> setLocalDescription(RTCSessionDescripti onInit description, VoidCallback successCallback, [Default=Undefined] optional R TCPeerConnectionErrorCallback failureCallback);
102 // TODO(guidou): The failureCallback argument should be non-optional. 102 // TODO(guidou): The failureCallback argument should be non-optional.
103 [CallWith=ScriptState] Promise<void> setRemoteDescription(RTCSessionDescript ionInit description, VoidCallback successCallback, [Default=Undefined] optional RTCPeerConnectionErrorCallback failureCallback); 103 [CallWith=ScriptState] Promise<void> setRemoteDescription(RTCSessionDescript ionInit description, VoidCallback successCallback, [Default=Undefined] optional RTCPeerConnectionErrorCallback failureCallback);
104 [CallWith=ScriptState, MeasureAs=RTCPeerConnectionAddIceCandidateLegacy] Pro mise<void> addIceCandidate((RTCIceCandidateInit or RTCIceCandidate) candidate, V oidCallback successCallback, RTCPeerConnectionErrorCallback failureCallback); 104 [CallWith=ScriptState, MeasureAs=RTCPeerConnectionAddIceCandidateLegacy] Pro mise<void> addIceCandidate((RTCIceCandidateInit or RTCIceCandidate) candidate, V oidCallback successCallback, RTCPeerConnectionErrorCallback failureCallback);
105 105
106 // TODO(guidou): The selector argument should the first (nullable, 106 // TODO(guidou): The selector argument should the first (nullable,
107 // non-optional) argument, and there should be a third failureCallback 107 // non-optional) argument, and there should be a third failureCallback
108 // argument. 108 // argument.
109 [CallWith=ScriptState, LegacyInterfaceTypeChecking] Promise<void> getStats(R TCStatsCallback successCallback, optional MediaStreamTrack? selector); 109 [CallWith=ScriptState, LegacyInterfaceTypeChecking] Promise<void> getStats(R TCStatsCallback successCallback, optional MediaStreamTrack? selector);
110 [CallWith=ScriptState, RuntimeEnabled=RTCPeerConnectionNewGetStats] Promise< RTCStatsReport> getStats(optional MediaStreamTrack? selector); 110 // TODO(hbos): The spec has an optional |selector| argument that is not
111 // supported yet. There is a discussion about what to do with it (clarify
112 // spec, remove it or change it?): https://github.com/w3c/webrtc-stats/issue s/116
113 [CallWith=ScriptState, RuntimeEnabled=RTCPeerConnectionNewGetStats] Promise< RTCStatsReport> getStats();
111 114
112 // https://w3c.github.io/webrtc-pc/#peer-to-peer-data-api 115 // https://w3c.github.io/webrtc-pc/#peer-to-peer-data-api
113 // TODO(guidou): The label argument should have [TreatNullAs=EmptyString] 116 // TODO(guidou): The label argument should have [TreatNullAs=EmptyString]
114 // and be non-nullable. 117 // and be non-nullable.
115 [CallWith=ExecutionContext, RaisesException] RTCDataChannel createDataChanne l(DOMString? label, optional Dictionary options); 118 [CallWith=ExecutionContext, RaisesException] RTCDataChannel createDataChanne l(DOMString? label, optional Dictionary options);
116 attribute EventHandler ondatachannel; 119 attribute EventHandler ondatachannel;
117 120
118 // Certificate management 121 // Certificate management
119 // https://w3c.github.io/webrtc-pc/#sec.cert-mgmt 122 // https://w3c.github.io/webrtc-pc/#sec.cert-mgmt
120 [RaisesException, CallWith=ScriptState] static Promise<RTCCertificate> gener ateCertificate(AlgorithmIdentifier keygenAlgorithm); 123 [RaisesException, CallWith=ScriptState] static Promise<RTCCertificate> gener ateCertificate(AlgorithmIdentifier keygenAlgorithm);
121 124
122 // Non-standard or removed from the spec: 125 // Non-standard or removed from the spec:
123 [Measure, CallWith=ExecutionContext, RaisesException] void updateIce(optiona l RTCConfiguration configuration, optional Dictionary mediaConstraints); 126 [Measure, CallWith=ExecutionContext, RaisesException] void updateIce(optiona l RTCConfiguration configuration, optional Dictionary mediaConstraints);
124 [Measure] sequence<MediaStream> getLocalStreams(); 127 [Measure] sequence<MediaStream> getLocalStreams();
125 [Measure] sequence<MediaStream> getRemoteStreams(); 128 [Measure] sequence<MediaStream> getRemoteStreams();
126 [Measure] MediaStream getStreamById(DOMString streamId); 129 [Measure] MediaStream getStreamById(DOMString streamId);
127 [Measure, CallWith=ExecutionContext, RaisesException] void addStream(MediaSt ream? stream, optional Dictionary mediaConstraints); 130 [Measure, CallWith=ExecutionContext, RaisesException] void addStream(MediaSt ream? stream, optional Dictionary mediaConstraints);
128 [Measure, RaisesException] void removeStream(MediaStream? stream); 131 [Measure, RaisesException] void removeStream(MediaStream? stream);
129 [Measure, RaisesException] RTCDTMFSender createDTMFSender(MediaStreamTrack t rack); 132 [Measure, RaisesException] RTCDTMFSender createDTMFSender(MediaStreamTrack t rack);
130 attribute EventHandler onaddstream; 133 attribute EventHandler onaddstream;
131 attribute EventHandler onremovestream; 134 attribute EventHandler onremovestream;
132 }; 135 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine