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

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: more 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
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..08be39255b418a4e81e605487a981f89482445ba 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(nhiroki): |supportedTypes| should be FrozenArray<StorageType>.
jsbell 2016/10/03 16:41:47 You can give this one to me.
foolip 2016/10/04 10:02:20 Done.
+ // 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);

Powered by Google App Engine
This is Rietveld 408576698