Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3280)

Unified Diff: chrome/common/extensions/api/experimental_system_info_storage.idl

Issue 16707002: [SystemInfo API] Rewrite storage info provider using storage monitor impl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change field "location" to "name" in SystemInfoStorage IDL definition file. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/experimental_system_info_storage.idl
diff --git a/chrome/common/extensions/api/experimental_system_info_storage.idl b/chrome/common/extensions/api/experimental_system_info_storage.idl
index d6d5002dfcc6a38f0c91ee6b271da30cf570c318..d1b2efffde4a89c159aff0873ddabd3bf7e9ee08 100644
--- a/chrome/common/extensions/api/experimental_system_info_storage.idl
+++ b/chrome/common/extensions/api/experimental_system_info_storage.idl
@@ -14,18 +14,20 @@ namespace experimental.systemInfo.storage {
};
dictionary StorageUnitInfo {
- // The unique id of the storage unit.
+ // The unique storage id. It is persistent between storage attachments.
Greg Billock 2013/06/27 17:12:22 (!) This shouldn't be documented as persistent --
Haojian Wu 2013/06/28 14:51:05 Done.
DOMString id;
+ // The name of the storage unit.
+ DOMString name;
// The media type of the storage unit.
StorageUnitType type;
- // The total amount of the storage space, in bytes.
+ // The total amount of the storage space, in bytes, default value is 0.
double capacity;
- // The available amount of the storage space, in bytes.
+ // The available amount of the storage space, in bytes, default value is 0.
double availableCapacity;
};
- dictionary StorageChangeInfo {
- // The uniue id of the storage unit already changed.
+ dictionary StorageCapacityChangeInfo {
+ // The unique id of the storage unit already changed.
DOMString id;
// The new value of the available capacity.
double availableCapacity;
@@ -65,7 +67,7 @@ namespace experimental.systemInfo.storage {
interface Events {
// Fired when the storage device available capacity is changed.
// |info|: The changed information for the specified storage unit.
- static void onAvailableCapacityChanged(StorageChangeInfo info);
+ static void onAvailableCapacityChanged(StorageCapacityChangeInfo info);
// Fired when a new removable storage is attached to the system.
static void onAttached(StorageUnitInfo info);

Powered by Google App Engine
This is Rietveld 408576698