dom/webidl/NetDashboard.webidl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     4  * You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 dictionary SocketElement {
     7   DOMString host = "";
     8   unsigned long port = 0;
     9   boolean active = false;
    10   boolean tcp = false;
    11   double sent = 0;
    12   double received = 0;
    13 };
    15 dictionary SocketsDict {
    16   sequence<SocketElement> sockets;
    17   double sent = 0;
    18   double received = 0;
    19 };
    21 dictionary HttpConnInfo {
    22   unsigned long rtt = 0;
    23   unsigned long ttl = 0;
    24   DOMString protocolVersion = "";
    25 };
    27 dictionary HalfOpenInfoDict {
    28   boolean speculative = false;
    29 };
    31 dictionary HttpConnectionElement {
    32   DOMString host = "";
    33   unsigned long port = 0;
    34   boolean spdy = false;
    35   boolean ssl = false;
    36   sequence<HttpConnInfo> active;
    37   sequence<HttpConnInfo> idle;
    38   sequence<HalfOpenInfoDict> halfOpens;
    39 };
    41 dictionary HttpConnDict {
    42   sequence<HttpConnectionElement> connections;
    43 };
    45 dictionary WebSocketElement {
    46   DOMString hostport = "";
    47   unsigned long msgsent = 0;
    48   unsigned long msgreceived = 0;
    49   double sentsize = 0;
    50   double receivedsize = 0;
    51   boolean encrypted = false;
    52 };
    54 dictionary WebSocketDict {
    55   sequence<WebSocketElement> websockets;
    56 };
    58 dictionary DnsCacheEntry {
    59   DOMString hostname = "";
    60   sequence<DOMString> hostaddr;
    61   DOMString family = "";
    62   double expiration = 0;
    63 };
    65 dictionary DNSCacheDict {
    66   sequence<DnsCacheEntry> entries;
    67 };
    69 dictionary DNSLookupDict {
    70   sequence<DOMString> address;
    71   DOMString error = "";
    72   boolean answer = false;
    73 };
    75 dictionary ConnStatusDict {
    76   DOMString status = "";
    77 };

mercurial