diff options
author | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-13 07:19:42 +0000 |
---|---|---|
committer | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-13 07:19:42 +0000 |
commit | fb033cdc8de5a769a51f387bfbf12806027d1c02 (patch) | |
tree | b2c00c3d9a0b21fb7892c48b0546e0d968219ac2 /chrome/renderer/renderer_webidbindex_impl.cc | |
parent | 42599f8282ae724f2aec50ff4ac91bebbc0451e6 (diff) | |
download | chromium_src-fb033cdc8de5a769a51f387bfbf12806027d1c02.zip chromium_src-fb033cdc8de5a769a51f387bfbf12806027d1c02.tar.gz chromium_src-fb033cdc8de5a769a51f387bfbf12806027d1c02.tar.bz2 |
Add the plumbing for synchronous exceptions in IndexedDB.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3666002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62378 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/renderer_webidbindex_impl.cc')
-rw-r--r-- | chrome/renderer/renderer_webidbindex_impl.cc | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/chrome/renderer/renderer_webidbindex_impl.cc b/chrome/renderer/renderer_webidbindex_impl.cc index 14c9e4c..230011b 100644 --- a/chrome/renderer/renderer_webidbindex_impl.cc +++ b/chrome/renderer/renderer_webidbindex_impl.cc @@ -10,6 +10,7 @@ #include "chrome/renderer/indexed_db_dispatcher.h" #include "chrome/renderer/renderer_webidbtransaction_impl.h" +using WebKit::WebExceptionCode; using WebKit::WebDOMStringList; using WebKit::WebString; using WebKit::WebVector; @@ -57,40 +58,44 @@ void RendererWebIDBIndexImpl::openObjectCursor( const WebKit::WebIDBKeyRange& range, unsigned short direction, WebKit::WebIDBCallbacks* callbacks, - const WebKit::WebIDBTransaction& transaction) { + const WebKit::WebIDBTransaction& transaction, + WebExceptionCode& ec) { IndexedDBDispatcher* dispatcher = RenderThread::current()->indexed_db_dispatcher(); dispatcher->RequestIDBIndexOpenObjectCursor( - range, direction, callbacks, idb_index_id_, transaction); + range, direction, callbacks, idb_index_id_, transaction, &ec); } void RendererWebIDBIndexImpl::openKeyCursor( const WebKit::WebIDBKeyRange& range, unsigned short direction, WebKit::WebIDBCallbacks* callbacks, - const WebKit::WebIDBTransaction& transaction) { + const WebKit::WebIDBTransaction& transaction, + WebExceptionCode& ec) { IndexedDBDispatcher* dispatcher = RenderThread::current()->indexed_db_dispatcher(); - dispatcher->RequestIDBIndexOpenCursor( - range, direction, callbacks, idb_index_id_, transaction); + dispatcher->RequestIDBIndexOpenKeyCursor( + range, direction, callbacks, idb_index_id_, transaction, &ec); } void RendererWebIDBIndexImpl::getObject( const WebKit::WebIDBKey& key, WebKit::WebIDBCallbacks* callbacks, - const WebKit::WebIDBTransaction& transaction) { + const WebKit::WebIDBTransaction& transaction, + WebExceptionCode& ec) { IndexedDBDispatcher* dispatcher = RenderThread::current()->indexed_db_dispatcher(); dispatcher->RequestIDBIndexGetObject( - IndexedDBKey(key), callbacks, idb_index_id_, transaction); + IndexedDBKey(key), callbacks, idb_index_id_, transaction, &ec); } void RendererWebIDBIndexImpl::getKey( const WebKit::WebIDBKey& key, WebKit::WebIDBCallbacks* callbacks, - const WebKit::WebIDBTransaction& transaction) { + const WebKit::WebIDBTransaction& transaction, + WebExceptionCode& ec) { IndexedDBDispatcher* dispatcher = RenderThread::current()->indexed_db_dispatcher(); - dispatcher->RequestIDBIndexGet( - IndexedDBKey(key), callbacks, idb_index_id_, transaction); + dispatcher->RequestIDBIndexGetKey( + IndexedDBKey(key), callbacks, idb_index_id_, transaction, &ec); } |