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

Unified Diff: Source/modules/webdatabase/DatabaseThread.cpp

Issue 201083003: Oilpan: Prepare to move DatabaseThread and SQLTransactionCoordinator to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/webdatabase/DatabaseThread.cpp
diff --git a/Source/modules/webdatabase/DatabaseThread.cpp b/Source/modules/webdatabase/DatabaseThread.cpp
index b4afdaba1fcf1cb6152ced89bab69225bcc319dd..055808959d466c23552cde96a854418b5022075b 100644
--- a/Source/modules/webdatabase/DatabaseThread.cpp
+++ b/Source/modules/webdatabase/DatabaseThread.cpp
@@ -42,7 +42,7 @@ namespace WebCore {
DatabaseThread::DatabaseThread()
: m_transactionClient(adoptPtr(new SQLTransactionClient()))
- , m_transactionCoordinator(adoptPtr(new SQLTransactionCoordinator()))
+ , m_transactionCoordinator(adoptPtrWillBeNoop(new SQLTransactionCoordinator()))
, m_cleanupSync(0)
, m_terminationRequested(false)
{
@@ -60,6 +60,12 @@ DatabaseThread::~DatabaseThread()
m_thread.clear();
}
+void DatabaseThread::trace(Visitor* visitor)
+{
+ visitor->trace(m_openDatabaseSet);
+ visitor->trace(m_transactionCoordinator);
+}
+
void DatabaseThread::start()
{
if (m_thread)

Powered by Google App Engine
This is Rietveld 408576698