dom/network/interfaces/nsIDOMNetworkStats.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
michael@0 3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #include "nsISupports.idl"
michael@0 6
michael@0 7 interface nsIDOMMozNetworkStatsInterface;
michael@0 8
michael@0 9 [scriptable, builtinclass, uuid(3b16fe17-5583-483a-b486-b64a3243221c)]
michael@0 10 interface nsIDOMMozNetworkStatsData : nsISupports
michael@0 11 {
michael@0 12 readonly attribute unsigned long rxBytes; // Received bytes.
michael@0 13 readonly attribute unsigned long txBytes; // Sent bytes.
michael@0 14 readonly attribute jsval date; // Date.
michael@0 15 };
michael@0 16
michael@0 17 [scriptable, builtinclass, uuid(f1996e44-1057-4d4b-8ff8-919e76c4cfa9)]
michael@0 18 interface nsIDOMMozNetworkStats : nsISupports
michael@0 19 {
michael@0 20 /**
michael@0 21 * App manifest URL of an application for specifying the per-app stats of the
michael@0 22 * specified app.
michael@0 23 */
michael@0 24 readonly attribute DOMString appManifestURL;
michael@0 25
michael@0 26 /**
michael@0 27 * Service type is used to retrieve the corresponding "system-only" stats.
michael@0 28 * E.g., "Tethering", "OTA", etc.
michael@0 29 */
michael@0 30 readonly attribute DOMString serviceType;
michael@0 31
michael@0 32 /**
michael@0 33 * Network the returned data belongs to.
michael@0 34 */
michael@0 35 readonly attribute nsIDOMMozNetworkStatsInterface network;
michael@0 36
michael@0 37 /**
michael@0 38 * Stats for a network.
michael@0 39 */
michael@0 40 readonly attribute jsval data; // array of NetworkStatsData.
michael@0 41 // one element per day.
michael@0 42
michael@0 43 /**
michael@0 44 * Dates
michael@0 45 */
michael@0 46 readonly attribute jsval start; // Date.
michael@0 47 readonly attribute jsval end; // Date.
michael@0 48 };

mercurial