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

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

Issue 178663004: Oilpan: move WorkerGlobalScope to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 9 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.cpp
diff --git a/Source/modules/quota/WorkerNavigatorStorageQuota.cpp b/Source/modules/quota/WorkerNavigatorStorageQuota.cpp
index f2e0a2892f6f8a652fc45f8e0782c1e291df9d54..7a18b5c4eed0d3932a180ef254b47878b85b5845 100644
--- a/Source/modules/quota/WorkerNavigatorStorageQuota.cpp
+++ b/Source/modules/quota/WorkerNavigatorStorageQuota.cpp
@@ -50,10 +50,10 @@ const char* WorkerNavigatorStorageQuota::supplementName()
WorkerNavigatorStorageQuota& WorkerNavigatorStorageQuota::from(WorkerNavigator& navigator)
{
- WorkerNavigatorStorageQuota* supplement = static_cast<WorkerNavigatorStorageQuota*>(Supplement<WorkerNavigator>::from(navigator, supplementName()));
+ WorkerNavigatorStorageQuota* supplement = static_cast<WorkerNavigatorStorageQuota*>(WillBeHeapSupplement<WorkerNavigator>::from(navigator, supplementName()));
if (!supplement) {
supplement = new WorkerNavigatorStorageQuota();
- provideTo(navigator, supplementName(), adoptPtr(supplement));
+ provideTo(navigator, supplementName(), adoptPtrWillBeNoop(supplement));
}
return *supplement;
}
@@ -82,4 +82,10 @@ DeprecatedStorageQuota* WorkerNavigatorStorageQuota::webkitPersistentStorage() c
return m_persistentStorage.get();
}
+void WorkerNavigatorStorageQuota::trace(Visitor* visitor)
+{
+ visitor->trace(m_temporaryStorage);
+ visitor->trace(m_persistentStorage);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/modules/quota/WorkerNavigatorStorageQuota.h ('k') | Source/modules/serviceworkers/ServiceWorkerGlobalScope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698