Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 namespace syncFileSystem { | 5 namespace syncFileSystem { |
| 6 dictionary StorageInfo { | |
| 7 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.
| |
| 8 long quota; | |
| 9 }; | |
| 10 | |
| 6 // [nodoc] A callback type for requestFileSystem. | 11 // [nodoc] A callback type for requestFileSystem. |
| 7 callback GetFileSystemCallback = | 12 callback GetFileSystemCallback = |
| 8 void ([instanceOf=DOMFileSystem] object fileSystem); | 13 void ([instanceOf=DOMFileSystem] object fileSystem); |
| 14 | |
| 15 callback QuotaAndUsageCallback = void (StorageInfo info); | |
| 9 | 16 |
| 10 interface Functions { | 17 interface Functions { |
| 11 // Get a sync file system backed by |serviceName|. | 18 // Get a sync file system backed by |serviceName|. |
| 12 // Calling this multiple times from the same app with the same |serviceName| | 19 // Calling this multiple times from the same app with the same |serviceName| |
| 13 // will return the same handle to the same file system. | 20 // will return the same handle to the same file system. |
| 14 static void requestFileSystem(DOMString serviceName, | 21 static void requestFileSystem(DOMString serviceName, |
| 15 GetFileSystemCallback callback); | 22 GetFileSystemCallback callback); |
| 23 | |
| 24 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.
| |
| 25 QuotaAndUsageCallback callback); | |
| 16 }; | 26 }; |
| 17 }; | 27 }; |
| 18 | |
| OLD | NEW |