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

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

Issue 178663004: Oilpan: move WorkerGlobalScope to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove redundant include Created 6 years, 10 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 a69c1be1d2c8570c81f123c3efa44247528fba02..f97a58c13c706e279c90473a101d7a47ff7a3777 100644
--- a/Source/modules/quota/WorkerNavigatorStorageQuota.h
+++ b/Source/modules/quota/WorkerNavigatorStorageQuota.h
@@ -39,7 +39,7 @@
namespace WebCore {
-class WorkerNavigatorStorageQuota FINAL : public Supplement<WorkerNavigator> {
+class WorkerNavigatorStorageQuota FINAL : public NoBaseWillBeGarbageCollected<WorkerNavigatorStorageQuota>, public WillBeHeapSupplement<WorkerNavigator> {
haraken 2014/02/27 02:46:01 It's a shame that we have to add NoBaseWillBeGarba
Mads Ager (chromium) 2014/02/27 06:41:47 In my opinion that would be too magical. However,
public:
virtual ~WorkerNavigatorStorageQuota();
static WorkerNavigatorStorageQuota& from(WorkerNavigator&);
@@ -49,12 +49,14 @@ public:
DeprecatedStorageQuota* webkitTemporaryStorage() const;
DeprecatedStorageQuota* webkitPersistentStorage() const;
+ virtual void trace(Visitor*);
+
private:
explicit WorkerNavigatorStorageQuota();
static const char* supplementName();
- mutable RefPtrWillBePersistent<DeprecatedStorageQuota> m_temporaryStorage;
- mutable RefPtrWillBePersistent<DeprecatedStorageQuota> m_persistentStorage;
+ mutable RefPtrWillBeMember<DeprecatedStorageQuota> m_temporaryStorage;
+ mutable RefPtrWillBeMember<DeprecatedStorageQuota> m_persistentStorage;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698