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

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

Issue 949193002: [bindings] Remove SQLTransaction's usage of custom binding. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed exception Created 5 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
« no previous file with comments | « Source/modules/webdatabase/SQLTransaction.h ('k') | Source/modules/webdatabase/SQLTransaction.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webdatabase/SQLTransaction.cpp
diff --git a/Source/modules/webdatabase/SQLTransaction.cpp b/Source/modules/webdatabase/SQLTransaction.cpp
index 31a6605d36e5dd9e5d4f14ee97032f92a789056c..eb9779a22a09a4df2ea0f765ac1257b3f367c52b 100644
--- a/Source/modules/webdatabase/SQLTransaction.cpp
+++ b/Source/modules/webdatabase/SQLTransaction.cpp
@@ -291,6 +291,19 @@ void SQLTransaction::executeSQL(const String& sqlStatement, const Vector<SQLValu
m_backend->executeSQL(statement, sqlStatement, arguments, permissions);
}
+void SQLTransaction::executeSql(ScriptState* scriptState, const String& sqlStatement, ExceptionState& exceptionState)
+{
+ executeSQL(sqlStatement, Vector<SQLValue>(), nullptr, nullptr, exceptionState);
+}
+
+void SQLTransaction::executeSql(ScriptState* scriptState, const String& sqlStatement, const Nullable<Vector<ScriptValue>>& arguments, SQLStatementCallback* callback, SQLStatementErrorCallback* callbackError, ExceptionState& exceptionState)
+{
+ Vector<SQLValue> sqlValues;
+ if (!arguments.isNull())
+ sqlValues = toImplArray<SQLValue>(arguments.get(), scriptState->isolate(), exceptionState);
+ executeSQL(sqlStatement, sqlValues, callback, callbackError, exceptionState);
+}
+
bool SQLTransaction::computeNextStateAndCleanupIfNeeded()
{
// Only honor the requested state transition if we're not supposed to be
« no previous file with comments | « Source/modules/webdatabase/SQLTransaction.h ('k') | Source/modules/webdatabase/SQLTransaction.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698