dom/webidl/MozNetworkStats.webidl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/webidl/MozNetworkStats.webidl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     1.6 + * You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.7 +
     1.8 +/**
     1.9 + * Provide the detailed options for specifying different kinds of data filtering
    1.10 + * in getSamples function.
    1.11 + */
    1.12 +dictionary NetworkStatsGetOptions
    1.13 +{
    1.14 +  /**
    1.15 +   * App manifest URL is used to filter network stats by app, while service type
    1.16 +   * is used to filter stats by system service.
    1.17 +   * Note that, these two options cannot be specified at the same time for now;
    1.18 +   * others, an NS_ERROR_NOT_IMPLMENTED exception will be thrown.
    1.19 +   */
    1.20 +  DOMString appManifestURL;
    1.21 +  DOMString serviceType;
    1.22 +};
    1.23 +
    1.24 +dictionary NetworkStatsAlarmOptions
    1.25 +{
    1.26 +  Date startTime;
    1.27 +  Date data;
    1.28 +};

mercurial