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

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

Issue 311273005: Oilpan: Prepare to move AbstractSQLStatement, SQLStatement, and SQLCallbackWrapper<T> to Oilpan hea… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/modules/webdatabase/SQLStatement.h ('k') | Source/modules/webdatabase/SQLStatementBackend.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webdatabase/SQLStatement.cpp
diff --git a/Source/modules/webdatabase/SQLStatement.cpp b/Source/modules/webdatabase/SQLStatement.cpp
index 539441b2072c22c03319df68b89178ca98aad8b5..0847f4393924917aeef8107f4b7dba31250c6c18 100644
--- a/Source/modules/webdatabase/SQLStatement.cpp
+++ b/Source/modules/webdatabase/SQLStatement.cpp
@@ -42,10 +42,10 @@
namespace WebCore {
-PassOwnPtr<SQLStatement> SQLStatement::create(Database* database,
+PassOwnPtrWillBeRawPtr<SQLStatement> SQLStatement::create(Database* database,
PassOwnPtr<SQLStatementCallback> callback, PassOwnPtr<SQLStatementErrorCallback> errorCallback)
{
- return adoptPtr(new SQLStatement(database, callback, errorCallback));
+ return adoptPtrWillBeNoop(new SQLStatement(database, callback, errorCallback));
}
SQLStatement::SQLStatement(Database* database, PassOwnPtr<SQLStatementCallback> callback,
@@ -55,6 +55,14 @@ SQLStatement::SQLStatement(Database* database, PassOwnPtr<SQLStatementCallback>
{
}
+void SQLStatement::trace(Visitor* visitor)
+{
+ visitor->trace(m_backend);
+ visitor->trace(m_statementCallbackWrapper);
+ visitor->trace(m_statementErrorCallbackWrapper);
+ AbstractSQLStatement::trace(visitor);
+}
+
void SQLStatement::setBackend(AbstractSQLStatementBackend* backend)
{
m_backend = backend;
« no previous file with comments | « Source/modules/webdatabase/SQLStatement.h ('k') | Source/modules/webdatabase/SQLStatementBackend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698