diff options
author | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-22 15:51:11 +0000 |
---|---|---|
committer | jorlow@chromium.org <jorlow@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-22 15:51:11 +0000 |
commit | c7c30a3e100279efe2503a3c635ed716a2658970 (patch) | |
tree | e2c9461b63bdc28e23f8101a7bc9563de801a8e5 /chrome/browser/in_process_webkit | |
parent | eceb1d33570e61d55d51bce37544bf9f404e046b (diff) | |
download | chromium_src-c7c30a3e100279efe2503a3c635ed716a2658970.zip chromium_src-c7c30a3e100279efe2503a3c635ed716a2658970.tar.gz chromium_src-c7c30a3e100279efe2503a3c635ed716a2658970.tar.bz2 |
Fix some bugs that only show up when running layout tests manually
without --single-process. (Yes, this means we need to make our
test coverage better in the near future.)
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/3487003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60181 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/in_process_webkit')
-rw-r--r-- | chrome/browser/in_process_webkit/indexed_db_dispatcher_host.cc | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/chrome/browser/in_process_webkit/indexed_db_dispatcher_host.cc b/chrome/browser/in_process_webkit/indexed_db_dispatcher_host.cc index 3715f66..2e35098 100644 --- a/chrome/browser/in_process_webkit/indexed_db_dispatcher_host.cc +++ b/chrome/browser/in_process_webkit/indexed_db_dispatcher_host.cc @@ -109,13 +109,13 @@ bool IndexedDBDispatcherHost::OnMessageReceived(const IPC::Message& message) { DCHECK(process_handle_); switch (message.type()) { - case ViewHostMsg_IDBCursorDestroyed::ID: case ViewHostMsg_IDBCursorDirection::ID: case ViewHostMsg_IDBCursorKey::ID: case ViewHostMsg_IDBCursorValue::ID: case ViewHostMsg_IDBCursorUpdate::ID: case ViewHostMsg_IDBCursorContinue::ID: case ViewHostMsg_IDBCursorRemove::ID: + case ViewHostMsg_IDBCursorDestroyed::ID: case ViewHostMsg_IDBFactoryOpen::ID: case ViewHostMsg_IDBFactoryAbortPendingTransactions::ID: case ViewHostMsg_IDBDatabaseName::ID: @@ -141,12 +141,12 @@ bool IndexedDBDispatcherHost::OnMessageReceived(const IPC::Message& message) { case ViewHostMsg_IDBObjectStoreKeyPath::ID: case ViewHostMsg_IDBObjectStoreIndexNames::ID: case ViewHostMsg_IDBObjectStoreGet::ID: - case ViewHostMsg_IDBObjectStoreOpenCursor::ID: case ViewHostMsg_IDBObjectStorePut::ID: case ViewHostMsg_IDBObjectStoreRemove::ID: case ViewHostMsg_IDBObjectStoreCreateIndex::ID: case ViewHostMsg_IDBObjectStoreIndex::ID: case ViewHostMsg_IDBObjectStoreRemoveIndex::ID: + case ViewHostMsg_IDBObjectStoreOpenCursor::ID: case ViewHostMsg_IDBObjectStoreDestroyed::ID: case ViewHostMsg_IDBTransactionDestroyed::ID: case ViewHostMsg_IDBTransactionObjectStore::ID: @@ -512,8 +512,14 @@ bool IndexedDBDispatcherHost::IndexDispatcherHost::OnMessageReceived( IPC_BEGIN_MESSAGE_MAP_EX(IndexedDBDispatcherHost::IndexDispatcherHost, message, *msg_is_ok) IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_IDBIndexName, OnName) + IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_IDBIndexStoreName, OnStoreName) IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_IDBIndexKeyPath, OnKeyPath) IPC_MESSAGE_HANDLER_DELAY_REPLY(ViewHostMsg_IDBIndexUnique, OnUnique) + IPC_MESSAGE_HANDLER(ViewHostMsg_IDBIndexOpenObjectCursor, + OnOpenObjectCursor) + IPC_MESSAGE_HANDLER(ViewHostMsg_IDBIndexOpenCursor, OnOpenCursor) + IPC_MESSAGE_HANDLER(ViewHostMsg_IDBIndexGetObject, OnGetObject) + IPC_MESSAGE_HANDLER(ViewHostMsg_IDBIndexGet, OnGet) IPC_MESSAGE_HANDLER(ViewHostMsg_IDBIndexDestroyed, OnDestroyed) IPC_MESSAGE_UNHANDLED(handled = false) IPC_END_MESSAGE_MAP() @@ -534,6 +540,12 @@ void IndexedDBDispatcherHost::IndexDispatcherHost::OnName( &map_, object_id, reply_msg, &WebIDBIndex::name); } +void IndexedDBDispatcherHost::IndexDispatcherHost::OnStoreName( + int32 object_id, IPC::Message* reply_msg) { + parent_->SyncGetter<string16, ViewHostMsg_IDBIndexStoreName>( + &map_, object_id, reply_msg, &WebIDBIndex::storeName); +} + void IndexedDBDispatcherHost::IndexDispatcherHost::OnKeyPath( int32 object_id, IPC::Message* reply_msg) { parent_->SyncGetter<NullableString16, ViewHostMsg_IDBIndexKeyPath>( |