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

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: Mihai Review #2 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..0981b8d2ec855ee277228dca1712979aad585dfb 100644
--- a/chrome/common/extensions/api/sync_file_system.idl
+++ b/chrome/common/extensions/api/sync_file_system.idl
@@ -3,9 +3,17 @@
// found in the LICENSE file.
namespace syncFileSystem {
+ dictionary StorageInfo {
+ long usage_bytes;
+ long quota_bytes;
+ };
+
// [nodoc] A callback type for requestFileSystem.
callback GetFileSystemCallback =
void ([instanceOf=DOMFileSystem] object fileSystem);
+
+ // [nodoc] A callback type for getUsageAndQuota.
+ callback QuotaAndUsageCallback = void (StorageInfo info);
interface Functions {
// Get a sync file system backed by |serviceName|.
@@ -13,6 +21,9 @@ namespace syncFileSystem {
// will return the same handle to the same file system.
static void requestFileSystem(DOMString serviceName,
GetFileSystemCallback callback);
+
+ // Get usage and quota in bytes for sync file system with |serviceName|.
+ static void getUsageAndQuota(DOMString serviceName,
+ QuotaAndUsageCallback callback);
};
};
-

Powered by Google App Engine
This is Rietveld 408576698