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

Unified Diff: Source/modules/indexeddb/IDBPendingTransactionMonitor.cpp

Issue 409113003: Revert of [oilpan]: Remove support for tracing off-heap hashmaps. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/indexeddb/IDBPendingTransactionMonitor.cpp
diff --git a/Source/modules/indexeddb/IDBPendingTransactionMonitor.cpp b/Source/modules/indexeddb/IDBPendingTransactionMonitor.cpp
index 6b1b7d1d9b949e4426c27213040f9ffaf8e1a6c4..b762038a0f04edffa54f9bade2d7729c1d021a27 100644
--- a/Source/modules/indexeddb/IDBPendingTransactionMonitor.cpp
+++ b/Source/modules/indexeddb/IDBPendingTransactionMonitor.cpp
@@ -31,8 +31,6 @@
namespace blink {
-DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(IDBPendingTransactionMonitor)
-
const char* IDBPendingTransactionMonitor::supplementName()
{
return "IDBPendingTransactionMonitor";
@@ -42,14 +40,18 @@
{
}
-IDBPendingTransactionMonitor& IDBPendingTransactionMonitor::from(WillBeHeapSupplementable<ExecutionContext>& context)
+IDBPendingTransactionMonitor& IDBPendingTransactionMonitor::from(Supplementable<ExecutionContext>& context)
{
- IDBPendingTransactionMonitor* supplement = static_cast<IDBPendingTransactionMonitor*>(WillBeHeapSupplement<ExecutionContext>::from(context, supplementName()));
+ IDBPendingTransactionMonitor* supplement = static_cast<IDBPendingTransactionMonitor*>(Supplement<ExecutionContext>::from(context, supplementName()));
if (!supplement) {
supplement = new IDBPendingTransactionMonitor();
- provideTo(context, supplementName(), adoptPtrWillBeNoop(supplement));
+ provideTo(context, supplementName(), adoptPtr(supplement));
}
return *supplement;
+}
+
+IDBPendingTransactionMonitor::~IDBPendingTransactionMonitor()
+{
}
void IDBPendingTransactionMonitor::addNewTransaction(IDBTransaction& transaction)
@@ -65,12 +67,4 @@
m_transactions.clear();
}
-void IDBPendingTransactionMonitor::trace(Visitor* visitor)
-{
-#if ENABLE(OILPAN)
- visitor->trace(m_transactions);
-#endif
- WillBeHeapSupplement<ExecutionContext>::trace(visitor);
-}
-
-} // namespace blink
+};
« no previous file with comments | « Source/modules/indexeddb/IDBPendingTransactionMonitor.h ('k') | Source/modules/webdatabase/SQLTransactionCoordinator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698