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

Unified Diff: third_party/WebKit/Source/modules/quota/StorageQuota.idl

Issue 2380383003: Use sequence<T> instead of T[] where possible and document exceptions (Closed)
Patch Set: address feedback Created 4 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
« no previous file with comments | « third_party/WebKit/Source/modules/mediasource/TrackDefault.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « third_party/WebKit/Source/modules/mediasource/TrackDefault.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698