Chromium Code Reviews| 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); |
| }; |
| }; |
| - |