Index: third_party/WebKit/Source/modules/quota/StorageQuota.idl |
diff --git a/third_party/WebKit/Source/modules/quota/StorageQuota.idl b/third_party/WebKit/Source/modules/quota/StorageQuota.idl |
index a94e33510d25d214345b9ff27e6e12dbf0d1dbcf..dd5e19ffae819f450e84b562d3a51c1361d32977 100644 |
--- a/third_party/WebKit/Source/modules/quota/StorageQuota.idl |
+++ b/third_party/WebKit/Source/modules/quota/StorageQuota.idl |
@@ -28,15 +28,21 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
+// https://w3c.github.io/quota-api/#storagetype-enum |
+ |
enum StorageType { |
"temporary", |
"persistent" |
}; |
+// https://w3c.github.io/quota-api/#storagequota-interface |
+ |
[ |
NoInterfaceObject, |
RuntimeEnabled=QuotaPromise |
] interface StorageQuota { |
+ // TODO(jsbell): |supportedTypes| should be FrozenArray<StorageType>. |
+ // https://github.com/w3c/quota-api/issues/5 |
readonly attribute StorageType[] supportedTypes; |
[CallWith=ScriptState] Promise queryInfo(StorageType type); |
[CallWith=ScriptState] Promise requestPersistentQuota([Clamp] unsigned long long newQuota); |