Index: Source/modules/indexeddb/IDBPendingTransactionMonitor.cpp |
diff --git a/Source/modules/indexeddb/IDBPendingTransactionMonitor.cpp b/Source/modules/indexeddb/IDBPendingTransactionMonitor.cpp |
index b762038a0f04edffa54f9bade2d7729c1d021a27..6b1b7d1d9b949e4426c27213040f9ffaf8e1a6c4 100644 |
--- a/Source/modules/indexeddb/IDBPendingTransactionMonitor.cpp |
+++ b/Source/modules/indexeddb/IDBPendingTransactionMonitor.cpp |
@@ -31,6 +31,8 @@ |
namespace blink { |
+DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(IDBPendingTransactionMonitor) |
+ |
const char* IDBPendingTransactionMonitor::supplementName() |
{ |
return "IDBPendingTransactionMonitor"; |
@@ -40,20 +42,16 @@ inline IDBPendingTransactionMonitor::IDBPendingTransactionMonitor() |
{ |
} |
-IDBPendingTransactionMonitor& IDBPendingTransactionMonitor::from(Supplementable<ExecutionContext>& context) |
+IDBPendingTransactionMonitor& IDBPendingTransactionMonitor::from(WillBeHeapSupplementable<ExecutionContext>& context) |
{ |
- IDBPendingTransactionMonitor* supplement = static_cast<IDBPendingTransactionMonitor*>(Supplement<ExecutionContext>::from(context, supplementName())); |
+ IDBPendingTransactionMonitor* supplement = static_cast<IDBPendingTransactionMonitor*>(WillBeHeapSupplement<ExecutionContext>::from(context, supplementName())); |
if (!supplement) { |
supplement = new IDBPendingTransactionMonitor(); |
- provideTo(context, supplementName(), adoptPtr(supplement)); |
+ provideTo(context, supplementName(), adoptPtrWillBeNoop(supplement)); |
} |
return *supplement; |
} |
-IDBPendingTransactionMonitor::~IDBPendingTransactionMonitor() |
-{ |
-} |
- |
void IDBPendingTransactionMonitor::addNewTransaction(IDBTransaction& transaction) |
{ |
m_transactions.append(&transaction); |
@@ -67,4 +65,12 @@ void IDBPendingTransactionMonitor::deactivateNewTransactions() |
m_transactions.clear(); |
} |
-}; |
+void IDBPendingTransactionMonitor::trace(Visitor* visitor) |
+{ |
+#if ENABLE(OILPAN) |
+ visitor->trace(m_transactions); |
+#endif |
+ WillBeHeapSupplement<ExecutionContext>::trace(visitor); |
+} |
+ |
+} // namespace blink |