Upstream version 9.37.197.0
[platform/framework/web/crosswalk.git] / src / third_party / trace-viewer / third_party / tvcm / third_party / Promises / reworked_APIs / QuotaAPI / before.idl
1 /**************************************
2  * Extracted from:
3  *    http://www.w3.org/TR/quota-api/
4  *
5  * By running:
6  *
7  *    Array.prototype.slice.call(
8  *      document.querySelectorAll(".idl,.es-code")
9  *    ).map(function(n) { return n.innerText; }).join("\n\n\n");
10  *
11  **/
12
13 /**************************************
14  * 4.1
15  **/
16 interface StorageQuota {
17     void queryUsageAndQuota (in StorageUsageCallback successCallback,
18                              in optional StorageErrorCallback errorCallback);
19     void requestQuota (in unsigned long long newQuotaInBytes,
20                        in optional StorageQuotaCallback successCallback,
21                        in optional StorageErrorCallback errorCallback);
22 };
23
24 /**************************************
25  * 4.2
26  **/
27 callback StorageUsageCallback = void (in unsigned long long currentUsageInBytes,
28                                       in unsigned long long currentQuotaInBytes);
29
30 /**************************************
31  * 4.3
32  **/
33 callback StorageQuotaCallback = void (in unsigned long long grantedQuotaInBytes);
34
35 /**************************************
36  * 4.4
37  **/
38 callback StorageErrorCallback = void (in DOMError error);
39
40 /**************************************
41  * 4.5
42  **/
43 [NoInterfaceObject]
44 interface StorageQuotaEnvironment {
45     readonly attribute StorageQuota persistentStorage;
46     readonly attribute StorageQuota temporaryStorage;
47 };