| 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 f960872800a1531147fa8c014db0bba42d5f57da..4be25f820ae22ad7d61cc9045c80d601b32129f8 100644
|
| --- a/chrome/common/extensions/api/experimental_system_info_storage.idl
|
| +++ b/chrome/common/extensions/api/experimental_system_info_storage.idl
|
| @@ -6,44 +6,6 @@
|
| // storage device information and be notified when it changes.
|
| namespace experimental.systemInfo.storage {
|
|
|
| - enum StorageUnitType {
|
| - // The storage has fixed media, e.g. hard disk or SSD.
|
| - fixed,
|
| - // The storage is removable, e.g. USB flash drive.
|
| - removable,
|
| - // The storage type is unknown.
|
| - unknown
|
| - };
|
| -
|
| - dictionary StorageUnitInfo {
|
| - // The unique storage id. It will use the transient ID.
|
| - 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.
|
| - // Default value is 0 if query operation fails.
|
| - double capacity;
|
| - // The available amount of the storage space, in bytes.
|
| - // Default value is 0 if query operation fails.
|
| - double availableCapacity;
|
| - };
|
| -
|
| - [inline_doc] enum EjectDeviceResultCode {
|
| - // The ejection command is successful -- the application can prompt the user
|
| - // to remove the device.
|
| - success,
|
| - // The device is in use by another application. The ejection did not
|
| - // succeed; the user should not remove the device until the other
|
| - // application is done with the device.
|
| - in_use,
|
| - // There is no such device known.
|
| - no_such_device,
|
| - // The ejection command failed.
|
| - failure
|
| - };
|
| -
|
| dictionary StorageFreeSpaceChangeInfo {
|
| // The transient id of the storage unit already changed.
|
| DOMString id;
|
| @@ -58,25 +20,11 @@ namespace experimental.systemInfo.storage {
|
| boolean success;
|
| };
|
|
|
| - callback StorageInfoCallback = void (StorageUnitInfo[] info);
|
| -
|
| - callback EjectDeviceCallback = void (EjectDeviceResultCode result);
|
| -
|
| callback AddWatchCallback = void (AddWatchResult info);
|
|
|
| callback GetAllWatchCallback = void (DOMString[] storageIds);
|
|
|
| interface Functions {
|
| - // Get the storage information from the system. The argument passed to the
|
| - // callback is an array of StorageUnitInfo objects.
|
| - static void get(StorageInfoCallback callback);
|
| -
|
| - // Ejects a removable storage device.
|
| - // Note: We plan to move this function into a namespace that indicates it
|
| - // that modifies the state of the system rather than just gathering
|
| - // information.
|
| - static void ejectDevice(DOMString id, EjectDeviceCallback callback);
|
| -
|
| // Monitor a particular storage device available change capacity.
|
| static void addWatch(DOMString id, AddWatchCallback callback);
|
|
|
| @@ -94,12 +42,6 @@ namespace experimental.systemInfo.storage {
|
| // Fired when the storage device available capacity is changed.
|
| // |info|: The changed information for the specified storage unit.
|
| static void onAvailableCapacityChanged(StorageFreeSpaceChangeInfo info);
|
| -
|
| - // Fired when a new removable storage is attached to the system.
|
| - static void onAttached(StorageUnitInfo info);
|
| -
|
| - // Fired when a removable storage is detached from the system.
|
| - static void onDetached(DOMString id);
|
| };
|
|
|
| };
|
|
|