dom/network/interfaces/nsINetworkStatsServiceProxy.idl

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 /* This Source Code Form is subject to the terms of the Mozilla Public
     2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
     3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 #include "nsISupports.idl"
     7 interface nsINetworkInterface;
     9 [scriptable, function, uuid(5f821529-1d80-4ab5-a933-4e1b3585b6bc)]
    10 interface nsINetworkStatsServiceProxyCallback : nsISupports
    11 {
    12   /*
    13    * @param aResult callback result with boolean value
    14    * @param aMessage message
    15    */
    16   void notify(in boolean aResult, in jsval aMessage);
    17 };
    19 [scriptable, uuid(705c01d6-8574-464c-8ec9-ac1522a45546)]
    20 interface nsINetworkStatsServiceProxy : nsISupports
    21 {
    22   /*
    23    * An interface used to record per-app traffic data.
    24    * @param aAppId app id
    25    * @param aNetworkInterface network
    26    * @param aTimeStamp time stamp
    27    * @param aRxBytes received data amount
    28    * @param aTxBytes transmitted data amount
    29    * @param aIsAccumulative is stats accumulative
    30    * @param aCallback an optional callback
    31    */
    32   void saveAppStats(in unsigned long aAppId,
    33                     in nsINetworkInterface aNetwork,
    34                     in unsigned long long aTimeStamp,
    35                     in unsigned long long aRxBytes,
    36                     in unsigned long long aTxBytes,
    37                     in boolean aIsAccumulative,
    38          [optional] in nsINetworkStatsServiceProxyCallback aCallback);
    40   /*
    41    * An interface used to record per-system service traffic data.
    42    * @param aServiceType system service type
    43    * @param aNetworkInterface network
    44    * @param aTimeStamp time stamp
    45    * @param aRxBytes received data amount
    46    * @param aTxBytes transmitted data amount
    47    * @param aIsAccumulative is stats accumulative
    48    * @param aCallback an optional callback
    49    */
    50   void saveServiceStats(in string aServiceType,
    51                         in nsINetworkInterface aNetwork,
    52                         in unsigned long long aTimeStamp,
    53                         in unsigned long long aRxBytes,
    54                         in unsigned long long aTxBytes,
    55                         in boolean aIsAccumulative,
    56              [optional] in nsINetworkStatsServiceProxyCallback aCallback);
    57 };

mercurial