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

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

Issue 403333002: [oilpan]: Remove support for tracing off-heap hashmaps. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add GC_PLUGIN_IGNORE 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 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
« 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