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

Unified Diff: Source/modules/quota/StorageQuota.cpp

Issue 1110063011: WIP Durable storage, webkit side (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ToT Created 5 years, 7 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 | « Source/modules/quota/StorageQuota.h ('k') | Source/modules/quota/StorageQuota.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/quota/StorageQuota.cpp
diff --git a/Source/modules/quota/StorageQuota.cpp b/Source/modules/quota/StorageQuota.cpp
index 7c98ac84b65119b10483d08ae4fdeaa2fd11cf38..2907adf684c02dc62bb6af53ae1eefb576d15c92 100644
--- a/Source/modules/quota/StorageQuota.cpp
+++ b/Source/modules/quota/StorageQuota.cpp
@@ -99,6 +99,19 @@ ScriptPromise StorageQuota::queryInfo(ScriptState* scriptState, String type)
return promise;
}
+ScriptPromise StorageQuota::requestDurability(ScriptState* scriptState)
+{
+ StorageQuotaClient* client = StorageQuotaClient::from(scriptState->executionContext());
+ if (!client) {
+ RefPtrWillBeRawPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scriptState);
+ ScriptPromise promise = resolver->promise();
+ resolver->reject(DOMError::create(NotSupportedError));
+ return promise;
+ }
+
+ return client->requestDurability(scriptState);
+}
+
ScriptPromise StorageQuota::requestPersistentQuota(ScriptState* scriptState, unsigned long long newQuota)
{
StorageQuotaClient* client = StorageQuotaClient::from(scriptState->executionContext());
« no previous file with comments | « Source/modules/quota/StorageQuota.h ('k') | Source/modules/quota/StorageQuota.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698