diff options
author | andreip@chromium.org <andreip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-09 16:58:32 +0000 |
---|---|---|
committer | andreip@chromium.org <andreip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-09 16:58:32 +0000 |
commit | d0c005ad4a569e41db0fc011d5b93aed76442228 (patch) | |
tree | c83ac95647e175019ab6ae33d518ddba1717b7c9 /chrome/renderer/indexed_db_dispatcher.h | |
parent | 0f53f5628ec01d743afade7de5e8ae350ca6880b (diff) | |
download | chromium_src-d0c005ad4a569e41db0fc011d5b93aed76442228.zip chromium_src-d0c005ad4a569e41db0fc011d5b93aed76442228.tar.gz chromium_src-d0c005ad4a569e41db0fc011d5b93aed76442228.tar.bz2 |
Implement IDBDatabase::createObjectStore. Also refactor IndexedDBCallbacks.
This CL is a clone of
http://codereview.chromium.org/2607001/show
which was reviewd and LGTM'ed by Jeremy Orlow.
Review URL: http://codereview.chromium.org/2740003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49267 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/indexed_db_dispatcher.h')
-rw-r--r-- | chrome/renderer/indexed_db_dispatcher.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/renderer/indexed_db_dispatcher.h b/chrome/renderer/indexed_db_dispatcher.h index 6c86602..13e4376 100644 --- a/chrome/renderer/indexed_db_dispatcher.h +++ b/chrome/renderer/indexed_db_dispatcher.h @@ -30,6 +30,10 @@ class IndexedDBDispatcher { WebKit::WebIDBCallbacks* callbacks, const string16& origin, WebKit::WebFrame* web_frame); + void RequestIDBDatabaseCreateObjectStore( + const string16& name, const string16& keypath, bool auto_increment, + WebKit::WebIDBCallbacks* callbacks, int32 idb_database_id); + private: // Message handlers. For each message we send, we need to handle both the // success and the error case. @@ -37,11 +41,17 @@ class IndexedDBDispatcher { int32 idb_database_id); void OnIndexedDatabaseOpenError(int32 response_id, int code, const string16& message); + void OnIDBDatabaseCreateObjectStoreSuccess(int32 response_id, + int32 idb_object_store_id); + void OnIDBDatabaseCreateObjectStoreError(int32 response_id, int code, + const string16& message); // Careful! WebIDBCallbacks wraps non-threadsafe data types. It must be // destroyed and used on the same thread it was created on. IDMap<WebKit::WebIDBCallbacks, IDMapOwnPointer> indexed_database_open_callbacks_; + IDMap<WebKit::WebIDBCallbacks, IDMapOwnPointer> + idb_database_create_object_store_callbacks_; DISALLOW_COPY_AND_ASSIGN(IndexedDBDispatcher); }; |