diff options
Diffstat (limited to 'WebCore/storage/IDBKey.h')
-rw-r--r-- | WebCore/storage/IDBKey.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/WebCore/storage/IDBKey.h b/WebCore/storage/IDBKey.h index 3175e7e..0303a38 100644 --- a/WebCore/storage/IDBKey.h +++ b/WebCore/storage/IDBKey.h @@ -26,17 +26,18 @@ #ifndef IDBKey_h #define IDBKey_h +#if ENABLE(INDEXED_DATABASE) + #include "PlatformString.h" #include <wtf/Forward.h> - -#if ENABLE(INDEXED_DATABASE) +#include <wtf/Threading.h> namespace WebCore { class SQLiteStatement; // FIXME: Add dates. -class IDBKey : public RefCounted<IDBKey> { +class IDBKey : public ThreadSafeShared<IDBKey> { public: static PassRefPtr<IDBKey> create() { @@ -82,6 +83,9 @@ public: int bind(SQLiteStatement& query, int column) const; void bindWithNulls(SQLiteStatement& query, int baseColumn) const; + using ThreadSafeShared<IDBKey>::ref; + using ThreadSafeShared<IDBKey>::deref; + private: IDBKey(); explicit IDBKey(int32_t); |