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

Side by Side Diff: Source/modules/mediastream/RTCDataChannel.idl

Issue 21350002: MediaStream API: Update RTCDataChannel to match the specification (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 months 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 | Annotate | Revision Log
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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution. 11 * documentation and/or other materials provided with the distribution.
12 * 12 *
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND AN Y 13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND AN Y
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 15 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16 * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR AN Y 16 * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR AN Y
17 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 17 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 18 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND O N 19 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND O N
20 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 20 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */ 23 */
24 24
25 [ 25 [
26 NoInterfaceObject 26 NoInterfaceObject
27 ] interface RTCDataChannel : EventTarget { 27 ] interface RTCDataChannel : EventTarget {
28 readonly attribute DOMString label; 28 readonly attribute DOMString label;
29
30 // DEPRECATED
29 readonly attribute boolean reliable; 31 readonly attribute boolean reliable;
32
33 readonly attribute boolean ordered;
34 readonly attribute unsigned short maxRetransmitTime;
35 readonly attribute unsigned short maxRetransmits;
36 readonly attribute DOMString protocol;
37 readonly attribute boolean negotiated;
38 readonly attribute unsigned short id;
39
30 readonly attribute DOMString readyState; 40 readonly attribute DOMString readyState;
31 readonly attribute unsigned long bufferedAmount; 41 readonly attribute unsigned long bufferedAmount;
32 42
33 [SetterRaisesException] attribute DOMString binaryType; 43 [SetterRaisesException] attribute DOMString binaryType;
34 44
35 [RaisesException] void send(ArrayBuffer data); 45 [RaisesException] void send(ArrayBuffer data);
36 [RaisesException] void send(ArrayBufferView data); 46 [RaisesException] void send(ArrayBufferView data);
37 [RaisesException] void send(Blob data); 47 [RaisesException] void send(Blob data);
38 [RaisesException] void send(DOMString data); 48 [RaisesException] void send(DOMString data);
39 49
40 void close(); 50 void close();
41 51
42 attribute EventListener onopen; 52 attribute EventListener onopen;
43 attribute EventListener onerror; 53 attribute EventListener onerror;
44 attribute EventListener onclose; 54 attribute EventListener onclose;
45 attribute EventListener onmessage; 55 attribute EventListener onmessage;
46 }; 56 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698