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

Unified Diff: Source/modules/webdatabase/sqlite/SQLiteDatabase.h

Issue 204543005: Replace the Persistent in SQLiteDatabase with a member and trace it. (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/sqlite/SQLiteDatabase.h
diff --git a/Source/modules/webdatabase/sqlite/SQLiteDatabase.h b/Source/modules/webdatabase/sqlite/SQLiteDatabase.h
index 2f4a952d5a8f3bba9e42d3cc505e6b3841eefd66..153d1cf81875baa8f88cbf8f160e0b69e4292418 100644
--- a/Source/modules/webdatabase/sqlite/SQLiteDatabase.h
+++ b/Source/modules/webdatabase/sqlite/SQLiteDatabase.h
@@ -53,6 +53,7 @@ extern const int SQLResultInterrupt;
extern const int SQLResultConstraint;
class SQLiteDatabase {
+ DISALLOW_ALLOCATION();
WTF_MAKE_NONCOPYABLE(SQLiteDatabase);
friend class SQLiteTransaction;
public:
@@ -115,6 +116,8 @@ public:
enum AutoVacuumPragma { AutoVacuumNone = 0, AutoVacuumFull = 1, AutoVacuumIncremental = 2 };
bool turnOnIncrementalAutoVacuum();
+ void trace(Visitor*);
+
private:
static int authorizerFunction(void*, int, const char*, const char*, const char*, const char*);
@@ -129,7 +132,7 @@ private:
bool m_sharable;
Mutex m_authorizerLock;
- RefPtrWillBePersistent<DatabaseAuthorizer> m_authorizer;
+ RefPtrWillBeMember<DatabaseAuthorizer> m_authorizer;
Mutex m_lockingMutex;
ThreadIdentifier m_openingThread;
« no previous file with comments | « Source/modules/webdatabase/DatabaseBackendBase.cpp ('k') | Source/modules/webdatabase/sqlite/SQLiteDatabase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698