Skip to content

Commit

Permalink
Bug 1070944 - Part 1: MozNetworkStats WebIDL change. r=ehsan
Browse files Browse the repository at this point in the history
  • Loading branch information
ethantseng committed Jan 23, 2015
1 parent 791808d commit 0f9ee2a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions dom/webidl/MozNetworkStats.webidl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit 0f9ee2a

Please sign in to comment.