content/base/public/nsIDOMDataChannel.idl
author David Major <dmajor@mozilla.com>
Thu, 14 Aug 2014 10:38:29 +1200
changeset 199389 494ab80e54f888962721ba57763294a99e07dba6
parent 182263 c590fcb23c3c1c1bb3a41979b04fdc3031953130
permissions -rw-r--r--
Bug 1051858: Update UUIDs that should have been revved in bug 741295. r=smaug

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsIDOMEventTarget.idl"

%{C++
#ifdef GetBinaryType
// Windows apparently has a #define for GetBinaryType...
#undef GetBinaryType
#endif
%}

interface nsIVariant;

[builtinclass, uuid(b00a4ca7-312e-4926-84f6-8ebb43e53d83)]
interface nsIDOMDataChannel : nsIDOMEventTarget
{
  readonly attribute DOMString label;
  readonly attribute DOMString protocol;
  readonly attribute boolean reliable;
  readonly attribute boolean ordered;

  readonly attribute DOMString readyState;
  readonly attribute unsigned long bufferedAmount;

  readonly attribute unsigned short id;
  readonly attribute unsigned short stream; /* deprecated name for 'id' */

  [implicit_jscontext] attribute jsval onopen;
  [implicit_jscontext] attribute jsval onerror;
  [implicit_jscontext] attribute jsval onclose;
  [implicit_jscontext] attribute jsval onmessage;

  attribute DOMString binaryType;

  void close();
};