diff options
author | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-03 12:15:15 +0000 |
---|---|---|
committer | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-03 12:15:15 +0000 |
commit | 1e2de5528ddbe6d24d960841b4a8ccda5172599a (patch) | |
tree | 75f181694bee9fcaf56b048cae0b1c4f387ac736 /chrome/renderer/indexed_db_dispatcher.cc | |
parent | 0ea69ad73a7aa11efcb1e0e13dcf29753381ad50 (diff) | |
download | chromium_src-1e2de5528ddbe6d24d960841b4a8ccda5172599a.zip chromium_src-1e2de5528ddbe6d24d960841b4a8ccda5172599a.tar.gz chromium_src-1e2de5528ddbe6d24d960841b4a8ccda5172599a.tar.bz2 |
Fix various issues with DOMStorage that only showed up in multi-process mode.
We need to beef up our automated test coverage before we come out from behind a flag,
but in the mean time, let's fix these known issues.
TEST=All the layout tests work in multi-process mode.
BUG=none
Review URL: http://codereview.chromium.org/3294002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58482 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/indexed_db_dispatcher.cc')
-rw-r--r-- | chrome/renderer/indexed_db_dispatcher.cc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/chrome/renderer/indexed_db_dispatcher.cc b/chrome/renderer/indexed_db_dispatcher.cc index 1c105d0..fa6d307 100644 --- a/chrome/renderer/indexed_db_dispatcher.cc +++ b/chrome/renderer/indexed_db_dispatcher.cc @@ -59,6 +59,38 @@ bool IndexedDBDispatcher::OnMessageReceived(const IPC::Message& msg) { return handled; } +void IndexedDBDispatcher::RequestIDBCursorUpdate( + const SerializedScriptValue& value, + WebIDBCallbacks* callbacks_ptr, + int32 idb_cursor_id) { + scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr); + + RenderThread::current()->Send( + new ViewHostMsg_IDBCursorUpdate( + idb_cursor_id, pending_callbacks_.Add(callbacks.release()), value)); +} + +void IndexedDBDispatcher::RequestIDBCursorContinue( + const IndexedDBKey& key, + WebIDBCallbacks* callbacks_ptr, + int32 idb_cursor_id) { + scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr); + + RenderThread::current()->Send( + new ViewHostMsg_IDBCursorContinue( + idb_cursor_id, pending_callbacks_.Add(callbacks.release()), key)); +} + +void IndexedDBDispatcher::RequestIDBCursorRemove( + WebIDBCallbacks* callbacks_ptr, + int32 idb_cursor_id) { + scoped_ptr<WebIDBCallbacks> callbacks(callbacks_ptr); + + RenderThread::current()->Send( + new ViewHostMsg_IDBCursorRemove( + idb_cursor_id, pending_callbacks_.Add(callbacks.release()))); +} + void IndexedDBDispatcher::RequestIDBFactoryOpen( const string16& name, const string16& description, WebIDBCallbacks* callbacks_ptr, const string16& origin, |