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

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

Issue 158133003: Move quota module to oilpan (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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/DOMWindowQuota.cpp
diff --git a/Source/modules/quota/DOMWindowQuota.cpp b/Source/modules/quota/DOMWindowQuota.cpp
index 053816047587075d104ca7e2f04aabf70674a7ef..e194ceb0bc3d1d6a63b45e597c6d13ba4be273be 100644
--- a/Source/modules/quota/DOMWindowQuota.cpp
+++ b/Source/modules/quota/DOMWindowQuota.cpp
@@ -39,21 +39,20 @@
namespace WebCore {
+#ifdef DOMWindow_IS_GARBAGE_COLLECTED
+DEFINE_GC_INFO(DOMWindowQuota);
+#endif
+
DOMWindowQuota::DOMWindowQuota(DOMWindow* window)
: DOMWindowProperty(window->frame())
{
}
-DOMWindowQuota::~DOMWindowQuota()
-{
-}
-
const char* DOMWindowQuota::supplementName()
{
return "DOMWindowQuota";
}
-// static
DOMWindowQuota* DOMWindowQuota::from(DOMWindow* window)
{
DOMWindowQuota* supplement = static_cast<DOMWindowQuota*>(Supplement<DOMWindow>::from(window, supplementName()));
@@ -64,7 +63,6 @@ DOMWindowQuota* DOMWindowQuota::from(DOMWindow* window)
return supplement;
}
-// static
DeprecatedStorageInfo* DOMWindowQuota::webkitStorageInfo(DOMWindow* window)
{
return DOMWindowQuota::from(window)->webkitStorageInfo();
@@ -77,4 +75,11 @@ DeprecatedStorageInfo* DOMWindowQuota::webkitStorageInfo() const
return m_storageInfo.get();
}
+#ifdef DOMWindow_IS_GARBAGE_COLLECTED
+void DOMWindowQuota::trace(Visitor* visitor)
+{
+ visitor->trace(m_storageInfo);
+}
+#endif
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698