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

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

Issue 11146034: Add GetUsageAndQuota() to Syncable API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/sync_file_system.idl
diff --git a/chrome/common/extensions/api/sync_file_system.idl b/chrome/common/extensions/api/sync_file_system.idl
index 89cab271d468ebd3982b0a870f7a0634554828a3..110a0324aab6070180d44e637405397b4203286f 100644
--- a/chrome/common/extensions/api/sync_file_system.idl
+++ b/chrome/common/extensions/api/sync_file_system.idl
@@ -3,9 +3,16 @@
// found in the LICENSE file.
namespace syncFileSystem {
+ dictionary StorageInfo {
+ long usage;
Mihai Parparita -not on Chrome 2012/10/18 20:10:56 Mentioning units (ideally in the field name) is a
calvinlo 2012/10/19 06:59:43 Good ideas. Done.
+ long quota;
+ };
+
// [nodoc] A callback type for requestFileSystem.
callback GetFileSystemCallback =
void ([instanceOf=DOMFileSystem] object fileSystem);
+
+ callback QuotaAndUsageCallback = void (StorageInfo info);
interface Functions {
// Get a sync file system backed by |serviceName|.
@@ -13,6 +20,8 @@ namespace syncFileSystem {
// will return the same handle to the same file system.
static void requestFileSystem(DOMString serviceName,
GetFileSystemCallback callback);
+
+ static void getUsageAndQuota(DOMString serviceName,
kinuko 2012/10/18 13:00:59 Can you add a comment? I think we generate API doc
calvinlo 2012/10/19 06:59:43 Done.
+ QuotaAndUsageCallback callback);
};
};
-

Powered by Google App Engine
This is Rietveld 408576698