diff options
Diffstat (limited to 'WebCore/storage/DatabaseThread.h')
-rw-r--r-- | WebCore/storage/DatabaseThread.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/WebCore/storage/DatabaseThread.h b/WebCore/storage/DatabaseThread.h index 83b1baf..269a633 100644 --- a/WebCore/storage/DatabaseThread.h +++ b/WebCore/storage/DatabaseThread.h @@ -34,6 +34,7 @@ #include <wtf/HashSet.h> #include <wtf/MessageQueue.h> #include <wtf/OwnPtr.h> +#include <wtf/PassOwnPtr.h> #include <wtf/PassRefPtr.h> #include <wtf/RefPtr.h> #include <wtf/Threading.h> @@ -55,8 +56,8 @@ public: void requestTermination(); bool terminationRequested() const; - void scheduleTask(PassRefPtr<DatabaseTask>); - void scheduleImmediateTask(PassRefPtr<DatabaseTask>); // This just adds the task to the front of the queue - the caller needs to be extremely careful not to create deadlocks when waiting for completion. + void scheduleTask(PassOwnPtr<DatabaseTask>); + void scheduleImmediateTask(PassOwnPtr<DatabaseTask>); // This just adds the task to the front of the queue - the caller needs to be extremely careful not to create deadlocks when waiting for completion. void unscheduleDatabaseTasks(Database*); void recordDatabaseOpen(Database*); @@ -76,7 +77,7 @@ private: ThreadIdentifier m_threadID; RefPtr<DatabaseThread> m_selfRef; - MessageQueue<RefPtr<DatabaseTask> > m_queue; + MessageQueue<DatabaseTask> m_queue; // This set keeps track of the open databases that have been used on this thread. typedef HashSet<RefPtr<Database> > DatabaseSet; |