Index: modules/mediastream/RTCDataChannel.idl |
diff --git a/modules/mediastream/RTCDataChannel.idl b/modules/mediastream/RTCDataChannel.idl |
index 4a69b5addef5d0c9db35b1ab8d48475d99bdae3b..7827c200761462c9343bb6e6c126dde33cb92ea9 100644 |
--- a/modules/mediastream/RTCDataChannel.idl |
+++ b/modules/mediastream/RTCDataChannel.idl |
@@ -22,35 +22,30 @@ |
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+// http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCDataChannel |
+ |
[ |
- NoInterfaceObject |
+ WillBeGarbageCollected, |
+ NoInterfaceObject, |
] interface RTCDataChannel : EventTarget { |
readonly attribute DOMString label; |
- |
- // DEPRECATED |
- readonly attribute boolean reliable; |
- |
+ readonly attribute boolean reliable; // DEPRECATED |
readonly attribute boolean ordered; |
readonly attribute unsigned short maxRetransmitTime; |
readonly attribute unsigned short maxRetransmits; |
readonly attribute DOMString protocol; |
readonly attribute boolean negotiated; |
readonly attribute unsigned short id; |
- |
readonly attribute DOMString readyState; |
readonly attribute unsigned long bufferedAmount; |
- |
+ attribute EventHandler onopen; |
+ attribute EventHandler onerror; |
+ attribute EventHandler onclose; |
+ void close(); |
+ attribute EventHandler onmessage; |
[RaisesException=Setter] attribute DOMString binaryType; |
- |
+ [RaisesException] void send(DOMString data); |
+ [RaisesException] void send(Blob data); |
[RaisesException] void send(ArrayBuffer data); |
[RaisesException] void send(ArrayBufferView data); |
- [RaisesException] void send(Blob data); |
- [RaisesException] void send(DOMString data); |
- |
- void close(); |
- |
- attribute EventHandler onopen; |
- attribute EventHandler onerror; |
- attribute EventHandler onclose; |
- attribute EventHandler onmessage; |
}; |