dom/webidl/NetDashboard.webidl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/webidl/NetDashboard.webidl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,77 @@
     1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     1.7 + * You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +dictionary SocketElement {
    1.10 +  DOMString host = "";
    1.11 +  unsigned long port = 0;
    1.12 +  boolean active = false;
    1.13 +  boolean tcp = false;
    1.14 +  double sent = 0;
    1.15 +  double received = 0;
    1.16 +};
    1.17 +
    1.18 +dictionary SocketsDict {
    1.19 +  sequence<SocketElement> sockets;
    1.20 +  double sent = 0;
    1.21 +  double received = 0;
    1.22 +};
    1.23 +
    1.24 +dictionary HttpConnInfo {
    1.25 +  unsigned long rtt = 0;
    1.26 +  unsigned long ttl = 0;
    1.27 +  DOMString protocolVersion = "";
    1.28 +};
    1.29 +
    1.30 +dictionary HalfOpenInfoDict {
    1.31 +  boolean speculative = false;
    1.32 +};
    1.33 +
    1.34 +dictionary HttpConnectionElement {
    1.35 +  DOMString host = "";
    1.36 +  unsigned long port = 0;
    1.37 +  boolean spdy = false;
    1.38 +  boolean ssl = false;
    1.39 +  sequence<HttpConnInfo> active;
    1.40 +  sequence<HttpConnInfo> idle;
    1.41 +  sequence<HalfOpenInfoDict> halfOpens;
    1.42 +};
    1.43 +
    1.44 +dictionary HttpConnDict {
    1.45 +  sequence<HttpConnectionElement> connections;
    1.46 +};
    1.47 +
    1.48 +dictionary WebSocketElement {
    1.49 +  DOMString hostport = "";
    1.50 +  unsigned long msgsent = 0;
    1.51 +  unsigned long msgreceived = 0;
    1.52 +  double sentsize = 0;
    1.53 +  double receivedsize = 0;
    1.54 +  boolean encrypted = false;
    1.55 +};
    1.56 +
    1.57 +dictionary WebSocketDict {
    1.58 +  sequence<WebSocketElement> websockets;
    1.59 +};
    1.60 +
    1.61 +dictionary DnsCacheEntry {
    1.62 +  DOMString hostname = "";
    1.63 +  sequence<DOMString> hostaddr;
    1.64 +  DOMString family = "";
    1.65 +  double expiration = 0;
    1.66 +};
    1.67 +
    1.68 +dictionary DNSCacheDict {
    1.69 +  sequence<DnsCacheEntry> entries;
    1.70 +};
    1.71 +
    1.72 +dictionary DNSLookupDict {
    1.73 +  sequence<DOMString> address;
    1.74 +  DOMString error = "";
    1.75 +  boolean answer = false;
    1.76 +};
    1.77 +
    1.78 +dictionary ConnStatusDict {
    1.79 +  DOMString status = "";
    1.80 +};

mercurial