Index: Source/modules/indexeddb/IDBPendingTransactionMonitor.cpp |
diff --git a/Source/modules/indexeddb/IDBPendingTransactionMonitor.cpp b/Source/modules/indexeddb/IDBPendingTransactionMonitor.cpp |
index b762038a0f04edffa54f9bade2d7729c1d021a27..5a6779aa6ae95e61ae1c4a068461f20c99942a37 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,10 @@ void IDBPendingTransactionMonitor::deactivateNewTransactions() |
m_transactions.clear(); |
} |
+void IDBPendingTransactionMonitor::trace(Visitor* visitor) |
+{ |
+#if ENABLE(OILPAN) |
+ visitor->trace(m_transactions); |
+#endif |
+ WillBeHeapSupplement<ExecutionContext>::trace(visitor); } |
haraken
2014/07/21 14:47:04
'}' should be written in the next line.
wibling-chromium
2014/07/22 08:24:34
Done.
|
}; |