2013-04-15 05:32:06 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* 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/. */
|
|
|
|
|
2017-07-05 02:41:00 +03:00
|
|
|
// This file defines dictionaries used by about:networking page.
|
|
|
|
|
2013-11-20 18:29:01 +04:00
|
|
|
dictionary SocketElement {
|
|
|
|
DOMString host = "";
|
|
|
|
unsigned long port = 0;
|
|
|
|
boolean active = false;
|
|
|
|
boolean tcp = false;
|
|
|
|
double sent = 0;
|
|
|
|
double received = 0;
|
|
|
|
};
|
|
|
|
|
2013-04-15 05:32:06 +04:00
|
|
|
dictionary SocketsDict {
|
2013-11-20 18:29:01 +04:00
|
|
|
sequence<SocketElement> sockets;
|
2013-04-15 05:32:06 +04:00
|
|
|
double sent = 0;
|
|
|
|
double received = 0;
|
|
|
|
};
|
|
|
|
|
2013-11-20 18:29:01 +04:00
|
|
|
dictionary HttpConnInfo {
|
|
|
|
unsigned long rtt = 0;
|
|
|
|
unsigned long ttl = 0;
|
|
|
|
DOMString protocolVersion = "";
|
2013-04-15 05:32:06 +04:00
|
|
|
};
|
|
|
|
|
2013-07-23 18:52:01 +04:00
|
|
|
dictionary HalfOpenInfoDict {
|
2013-11-20 18:29:01 +04:00
|
|
|
boolean speculative = false;
|
2013-07-23 18:52:01 +04:00
|
|
|
};
|
|
|
|
|
2013-11-20 18:29:01 +04:00
|
|
|
dictionary HttpConnectionElement {
|
|
|
|
DOMString host = "";
|
|
|
|
unsigned long port = 0;
|
|
|
|
boolean spdy = false;
|
|
|
|
boolean ssl = false;
|
|
|
|
sequence<HttpConnInfo> active;
|
|
|
|
sequence<HttpConnInfo> idle;
|
2013-07-23 18:52:01 +04:00
|
|
|
sequence<HalfOpenInfoDict> halfOpens;
|
2013-11-20 18:29:01 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
dictionary HttpConnDict {
|
|
|
|
sequence<HttpConnectionElement> connections;
|
|
|
|
};
|
|
|
|
|
|
|
|
dictionary WebSocketElement {
|
|
|
|
DOMString hostport = "";
|
|
|
|
unsigned long msgsent = 0;
|
|
|
|
unsigned long msgreceived = 0;
|
|
|
|
double sentsize = 0;
|
|
|
|
double receivedsize = 0;
|
|
|
|
boolean encrypted = false;
|
2013-04-15 05:32:06 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
dictionary WebSocketDict {
|
2013-11-20 18:29:01 +04:00
|
|
|
sequence<WebSocketElement> websockets;
|
|
|
|
};
|
|
|
|
|
|
|
|
dictionary DnsCacheEntry {
|
|
|
|
DOMString hostname = "";
|
|
|
|
sequence<DOMString> hostaddr;
|
|
|
|
DOMString family = "";
|
|
|
|
double expiration = 0;
|
2013-04-15 05:32:06 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
dictionary DNSCacheDict {
|
2013-11-20 18:29:01 +04:00
|
|
|
sequence<DnsCacheEntry> entries;
|
2013-04-15 05:32:06 +04:00
|
|
|
};
|
2013-07-31 17:16:44 +04:00
|
|
|
|
2013-08-02 20:42:45 +04:00
|
|
|
dictionary DNSLookupDict {
|
|
|
|
sequence<DOMString> address;
|
2013-11-20 18:29:01 +04:00
|
|
|
DOMString error = "";
|
|
|
|
boolean answer = false;
|
2013-08-02 20:42:45 +04:00
|
|
|
};
|
|
|
|
|
2013-07-31 17:16:44 +04:00
|
|
|
dictionary ConnStatusDict {
|
2013-11-20 18:29:01 +04:00
|
|
|
DOMString status = "";
|
2013-07-31 17:16:44 +04:00
|
|
|
};
|
2017-05-10 20:23:54 +03:00
|
|
|
|
2017-07-05 02:41:00 +03:00
|
|
|
dictionary RcwnPerfStats {
|
|
|
|
unsigned long avgShort = 0;
|
|
|
|
unsigned long avgLong = 0;
|
|
|
|
unsigned long stddevLong = 0;
|
|
|
|
};
|
|
|
|
|
2017-05-10 20:23:54 +03:00
|
|
|
dictionary RcwnStatus {
|
|
|
|
unsigned long totalNetworkRequests = 0;
|
|
|
|
unsigned long rcwnCacheWonCount = 0;
|
|
|
|
unsigned long rcwnNetWonCount = 0;
|
2017-07-05 02:41:00 +03:00
|
|
|
unsigned long cacheSlowCount = 0;
|
|
|
|
unsigned long cacheNotSlowCount = 0;
|
|
|
|
// Sequence is indexed by CachePerfStats::EDataType
|
|
|
|
sequence<RcwnPerfStats> perfStats;
|
2017-05-10 20:23:54 +03:00
|
|
|
};
|