Bug 1070944 - Part 1: MozNetworkStats WebIDL change. r=ehsan

This commit is contained in:
Ethan Tseng 2015-01-23 19:12:03 +08:00
parent 2a69c8a3f7
commit 7a6cb650d3

View File

@ -16,6 +16,13 @@ dictionary NetworkStatsGetOptions
*/
DOMString appManifestURL;
DOMString serviceType;
/**
* If it is set as true, only the browsing traffic, which is generated from
* the mozbrowser iframe element within an app, is returned in result.
* If it is set as false or not set, the total traffic, which is generated
* from both the mozapp and mozbrowser iframe elements, is returned.
*/
boolean browsingTrafficOnly;
};
dictionary NetworkStatsAlarmOptions
@ -35,6 +42,13 @@ interface MozNetworkStats {
*/
readonly attribute DOMString appManifestURL;
/**
* True if this stats is the browsing traffic of an app (the traffic generated
* by a mozbrowser iframe element).
* Otherwise this stats represents the total traffic of an app.
*/
readonly attribute boolean browsingTrafficOnly;
/**
* Service type is used to retrieve the corresponding "system-only" stats.
* E.g., "Tethering", "OTA", etc.