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

Unified Diff: Source/modules/webdatabase/Database.h

Issue 103473002: Manage WebSQL callbacks with OwnPtr instead of refcounting (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix RefPtr/OwnPtr transition gcc errors Created 7 years 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/DOMWindowWebDatabase.cpp ('k') | Source/modules/webdatabase/Database.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webdatabase/Database.h
diff --git a/Source/modules/webdatabase/Database.h b/Source/modules/webdatabase/Database.h
index d17bb20d9b53a0102fe125dcc3bab31577f9d52d..0db19c3a8b7e4772fe1705ba1dc6063a75836aa5 100644
--- a/Source/modules/webdatabase/Database.h
+++ b/Source/modules/webdatabase/Database.h
@@ -54,9 +54,9 @@ public:
// Direct support for the DOM API
virtual String version() const;
- void changeVersion(const String& oldVersion, const String& newVersion, PassRefPtr<SQLTransactionCallback>, PassRefPtr<SQLTransactionErrorCallback>, PassRefPtr<SQLVoidCallback> successCallback);
- void transaction(PassRefPtr<SQLTransactionCallback>, PassRefPtr<SQLTransactionErrorCallback>, PassRefPtr<SQLVoidCallback> successCallback);
- void readTransaction(PassRefPtr<SQLTransactionCallback>, PassRefPtr<SQLTransactionErrorCallback>, PassRefPtr<SQLVoidCallback> successCallback);
+ void changeVersion(const String& oldVersion, const String& newVersion, PassOwnPtr<SQLTransactionCallback>, PassOwnPtr<SQLTransactionErrorCallback>, PassOwnPtr<SQLVoidCallback> successCallback);
+ void transaction(PassOwnPtr<SQLTransactionCallback>, PassOwnPtr<SQLTransactionErrorCallback>, PassOwnPtr<SQLVoidCallback> successCallback);
+ void readTransaction(PassOwnPtr<SQLTransactionCallback>, PassOwnPtr<SQLTransactionErrorCallback>, PassOwnPtr<SQLVoidCallback> successCallback);
// Internal engine support
static Database* from(DatabaseBackend*);
@@ -76,8 +76,8 @@ private:
PassRefPtr<DatabaseBackend> backend();
static PassRefPtr<Database> create(ExecutionContext*, PassRefPtr<DatabaseBackendBase>);
- void runTransaction(PassRefPtr<SQLTransactionCallback>, PassRefPtr<SQLTransactionErrorCallback>,
- PassRefPtr<SQLVoidCallback> successCallback, bool readOnly, const ChangeVersionData* = 0);
+ void runTransaction(PassOwnPtr<SQLTransactionCallback>, PassOwnPtr<SQLTransactionErrorCallback>,
+ PassOwnPtr<SQLVoidCallback> successCallback, bool readOnly, const ChangeVersionData* = 0);
Vector<String> performGetTableNames();
« no previous file with comments | « Source/modules/webdatabase/DOMWindowWebDatabase.cpp ('k') | Source/modules/webdatabase/Database.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698