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

Unified Diff: Source/modules/quota/WorkerNavigatorStorageQuota.h

Issue 1301393002: Expose durable storage to workers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update webexposed lists Created 5 years, 4 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: Source/modules/quota/WorkerNavigatorStorageQuota.h
diff --git a/Source/modules/quota/WorkerNavigatorStorageQuota.h b/Source/modules/quota/WorkerNavigatorStorageQuota.h
index 9267a393e7dfa39bedf6c6ec5ea1a1f3707c5172..5dbf9f3d56129a8798c11080c16c39b6b48224d1 100644
--- a/Source/modules/quota/WorkerNavigatorStorageQuota.h
+++ b/Source/modules/quota/WorkerNavigatorStorageQuota.h
@@ -39,6 +39,8 @@
namespace blink {
+class StorageManager;
+
class WorkerNavigatorStorageQuota final : public GarbageCollected<WorkerNavigatorStorageQuota>, public HeapSupplement<WorkerNavigator> {
USING_GARBAGE_COLLECTED_MIXIN(WorkerNavigatorStorageQuota);
public:
@@ -46,8 +48,11 @@ public:
static DeprecatedStorageQuota* webkitTemporaryStorage(WorkerNavigator&);
static DeprecatedStorageQuota* webkitPersistentStorage(WorkerNavigator&);
+ static StorageManager* storage(WorkerNavigator&);
+
DeprecatedStorageQuota* webkitTemporaryStorage() const;
DeprecatedStorageQuota* webkitPersistentStorage() const;
+ StorageManager* storage() const;
DECLARE_VIRTUAL_TRACE();
@@ -57,6 +62,7 @@ private:
mutable Member<DeprecatedStorageQuota> m_temporaryStorage;
mutable Member<DeprecatedStorageQuota> m_persistentStorage;
+ mutable Member<StorageManager> m_storageManager;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698