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/renderer_webidbdatabase_impl.cc | |
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/renderer_webidbdatabase_impl.cc')
-rw-r--r-- | chrome/renderer/renderer_webidbdatabase_impl.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/renderer/renderer_webidbdatabase_impl.cc b/chrome/renderer/renderer_webidbdatabase_impl.cc index bc28210..140b16f 100644 --- a/chrome/renderer/renderer_webidbdatabase_impl.cc +++ b/chrome/renderer/renderer_webidbdatabase_impl.cc @@ -7,8 +7,11 @@ #include "chrome/common/render_messages.h" #include "chrome/renderer/render_thread.h" #include "chrome/renderer/indexed_db_dispatcher.h" +#include "third_party/WebKit/WebKit/chromium/public/WebString.h" using WebKit::WebDOMStringList; +using WebKit::WebFrame; +using WebKit::WebIDBCallbacks; using WebKit::WebString; using WebKit::WebVector; @@ -55,3 +58,12 @@ WebDOMStringList RendererWebIDBDatabaseImpl::objectStores() { } return webResult; } + +void RendererWebIDBDatabaseImpl::createObjectStore( + const WebString& name, const WebString& key_path, bool auto_increment, + WebIDBCallbacks* callbacks) { + IndexedDBDispatcher* dispatcher = + RenderThread::current()->indexed_db_dispatcher(); + dispatcher->RequestIDBDatabaseCreateObjectStore( + name, key_path, auto_increment, callbacks, idb_database_id_); +} |