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

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

Issue 10824232: Add systeminfo.storage API implementation skeleton (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: chromium-style virtual dtor not public for ref-counted class Created 8 years, 4 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
new file mode 100644
index 0000000000000000000000000000000000000000..f56d598b12f27a904f84c3f40261b6f37ba7cf17
--- /dev/null
+++ b/chrome/common/extensions/api/experimental_system_info_storage.idl
@@ -0,0 +1,40 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+namespace experimental.systemInfo.storage {
+
+ enum StorageUnitType {
+ // Unknow storage type.
+ unknown,
+ // Hard disk.
+ harddisk,
+ // Removable storage, e.g.USB device.
+ removable
+ };
+
+ dictionary StorageUnitInfo {
+ // The unique id of the storage unit.
+ DOMString id;
+ // The type of storage device. The value is one of the constants defined
+ // for this type.
+ StorageUnitType type;
+ // The total amount of the storage space, in bytes.
+ double capacity;
+ // The available amount of the storage space, in bytes.
+ double availableCapacity;
+ };
+
+ dictionary StorageInfo {
+ // The array of storage units connected to the system.
+ StorageUnitInfo[] units;
+ };
+
+ callback StorageInfoCallback = void (StorageInfo info);
+
+ interface Functions {
+ // Get the storage information from the system.
+ static void get(StorageInfoCallback callback);
+ };
+};
+
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/test/data/extensions/api_test/systeminfo/storage/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698