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

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

Issue 204063002: Oilpan: add transition types to Navigator and its supplements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adjust use of 'virtual' 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/NavigatorStorageQuota.cpp
diff --git a/Source/modules/quota/NavigatorStorageQuota.cpp b/Source/modules/quota/NavigatorStorageQuota.cpp
index 01893b19759faed62fe36c7d8f1b36f9f93ca4ed..90f1fb2e6896eafc8fbf610c3c4b69a8cfecd60b 100644
--- a/Source/modules/quota/NavigatorStorageQuota.cpp
+++ b/Source/modules/quota/NavigatorStorageQuota.cpp
@@ -53,10 +53,10 @@ const char* NavigatorStorageQuota::supplementName()
NavigatorStorageQuota& NavigatorStorageQuota::from(Navigator& navigator)
{
- NavigatorStorageQuota* supplement = static_cast<NavigatorStorageQuota*>(Supplement<Navigator>::from(navigator, supplementName()));
+ NavigatorStorageQuota* supplement = static_cast<NavigatorStorageQuota*>(WillBeHeapSupplement<Navigator>::from(navigator, supplementName()));
if (!supplement) {
supplement = new NavigatorStorageQuota(navigator.frame());
- provideTo(navigator, supplementName(), adoptPtr(supplement));
+ provideTo(navigator, supplementName(), adoptPtrWillBeNoop(supplement));
}
return *supplement;
}
@@ -97,4 +97,11 @@ DeprecatedStorageQuota* NavigatorStorageQuota::webkitPersistentStorage() const
return m_persistentStorage.get();
}
+void NavigatorStorageQuota::trace(Visitor* visitor)
+{
+ visitor->trace(m_storageQuota);
+ visitor->trace(m_temporaryStorage);
+ visitor->trace(m_persistentStorage);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/modules/quota/NavigatorStorageQuota.h ('k') | Source/modules/serviceworkers/NavigatorServiceWorker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698