diff options
author | Ben Murdoch <benm@google.com> | 2010-06-15 19:36:43 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2010-06-16 14:52:28 +0100 |
commit | 545e470e52f0ac6a3a072bf559c796b42c6066b6 (patch) | |
tree | c0c14763654d84d37577dde512c3d3b4699a9e86 /WebCore/storage/IDBDatabase.h | |
parent | 719298a66237d38ea5c05f1547123ad8aacbc237 (diff) | |
download | external_webkit-545e470e52f0ac6a3a072bf559c796b42c6066b6.zip external_webkit-545e470e52f0ac6a3a072bf559c796b42c6066b6.tar.gz external_webkit-545e470e52f0ac6a3a072bf559c796b42c6066b6.tar.bz2 |
Merge webkit.org at r61121: Initial merge by git.
Change-Id: Icd6db395c62285be384d137164d95d7466c98760
Diffstat (limited to 'WebCore/storage/IDBDatabase.h')
-rw-r--r-- | WebCore/storage/IDBDatabase.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/WebCore/storage/IDBDatabase.h b/WebCore/storage/IDBDatabase.h index 5bfb3c7..0055ad1 100644 --- a/WebCore/storage/IDBDatabase.h +++ b/WebCore/storage/IDBDatabase.h @@ -35,6 +35,9 @@ namespace WebCore { class DOMStringList; +class Frame; +class IDBCallbacks; +class IDBObjectStore; // This class is shared by IDBDatabaseRequest (async) and IDBDatabaseSync (sync). // This is implemented by IDBDatabaseImpl and optionally others (in order to proxy @@ -44,10 +47,16 @@ class IDBDatabase : public ThreadSafeShared<IDBDatabase> { public: virtual ~IDBDatabase() { } - virtual String name() = 0; - virtual String description() = 0; - virtual String version() = 0; - virtual PassRefPtr<DOMStringList> objectStores() = 0; + virtual String name() const = 0; + virtual String description() const = 0; + virtual String version() const = 0; + virtual PassRefPtr<DOMStringList> objectStores() const = 0; + + // FIXME: Add transaction and setVersion. + + virtual void createObjectStore(const String& name, const String& keyPath, bool autoIncrement, PassRefPtr<IDBCallbacks>) = 0; + virtual PassRefPtr<IDBObjectStore> objectStore(const String& name, unsigned short mode) = 0; + virtual void removeObjectStore(const String& name, PassRefPtr<IDBCallbacks>) = 0; }; } // namespace WebCore |