Bug 784575 - Part 3: NetworkStats API IDL Modification. r=gene, sr=sicking

This commit is contained in:
John Shih 2013-07-03 16:33:17 +08:00
parent 4403e85d0a
commit e031de401b

View File

@ -12,8 +12,12 @@ dictionary NetworkStatsOptions
* Connection type used to filter which network stats will be returned:
* 'mobile', 'wifi' or null.
* If null, stats for both mobile and wifi are returned.
*
* Manifest URL used to retrieve network stats per app.
* If null, system stats (regardless of the app) are returned.
*/
DOMString connectionType;
DOMString manifestURL;
jsval start; // date
jsval end; // date
};
@ -22,11 +26,13 @@ dictionary NetworkStatsOptions
interface nsIDOMMozNetworkStatsManager : nsISupports
{
/**
* Query network interface statistics.
* Query network statistics.
*
* If options.connectionType is not provided, return statistics for all known
* network interfaces.
*
* If options.manifestURL is not provided, return statistics regardless of the app.
*
* If successful, the request result will be an nsIDOMMozNetworkStats object.
*
* If network stats are not available for some dates, then rxBytes &