Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(818)

Side by Side Diff: content/browser/in_process_webkit/indexed_db_dispatcher_host.cc

Issue 7834006: Consolidate key, primary key, value cursor messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h" 5 #include "content/browser/in_process_webkit/indexed_db_dispatcher_host.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "content/browser/browser_thread.h" 9 #include "content/browser/browser_thread.h"
10 #include "content/browser/in_process_webkit/indexed_db_callbacks.h" 10 #include "content/browser/in_process_webkit/indexed_db_callbacks.h"
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 890
891 IndexedDBDispatcherHost::CursorDispatcherHost::~CursorDispatcherHost() { 891 IndexedDBDispatcherHost::CursorDispatcherHost::~CursorDispatcherHost() {
892 } 892 }
893 893
894 bool IndexedDBDispatcherHost::CursorDispatcherHost::OnMessageReceived( 894 bool IndexedDBDispatcherHost::CursorDispatcherHost::OnMessageReceived(
895 const IPC::Message& message, bool* msg_is_ok) { 895 const IPC::Message& message, bool* msg_is_ok) {
896 bool handled = true; 896 bool handled = true;
897 IPC_BEGIN_MESSAGE_MAP_EX(IndexedDBDispatcherHost::CursorDispatcherHost, 897 IPC_BEGIN_MESSAGE_MAP_EX(IndexedDBDispatcherHost::CursorDispatcherHost,
898 message, *msg_is_ok) 898 message, *msg_is_ok)
899 IPC_MESSAGE_HANDLER(IndexedDBHostMsg_CursorDirection, OnDirection) 899 IPC_MESSAGE_HANDLER(IndexedDBHostMsg_CursorDirection, OnDirection)
900 IPC_MESSAGE_HANDLER(IndexedDBHostMsg_CursorKey, OnKey)
901 IPC_MESSAGE_HANDLER(IndexedDBHostMsg_CursorPrimaryKey, OnPrimaryKey)
902 IPC_MESSAGE_HANDLER(IndexedDBHostMsg_CursorValue, OnValue)
903 IPC_MESSAGE_HANDLER(IndexedDBHostMsg_CursorUpdate, OnUpdate) 900 IPC_MESSAGE_HANDLER(IndexedDBHostMsg_CursorUpdate, OnUpdate)
904 IPC_MESSAGE_HANDLER(IndexedDBHostMsg_CursorContinue, OnContinue) 901 IPC_MESSAGE_HANDLER(IndexedDBHostMsg_CursorContinue, OnContinue)
905 IPC_MESSAGE_HANDLER(IndexedDBHostMsg_CursorDelete, OnDelete) 902 IPC_MESSAGE_HANDLER(IndexedDBHostMsg_CursorDelete, OnDelete)
906 IPC_MESSAGE_HANDLER(IndexedDBHostMsg_CursorDestroyed, OnDestroyed) 903 IPC_MESSAGE_HANDLER(IndexedDBHostMsg_CursorDestroyed, OnDestroyed)
907 IPC_MESSAGE_UNHANDLED(handled = false) 904 IPC_MESSAGE_UNHANDLED(handled = false)
908 IPC_END_MESSAGE_MAP() 905 IPC_END_MESSAGE_MAP()
909 return handled; 906 return handled;
910 } 907 }
911 908
912 909
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 } 1089 }
1093 idb_transaction->didCompleteTaskEvents(); 1090 idb_transaction->didCompleteTaskEvents();
1094 } 1091 }
1095 1092
1096 void IndexedDBDispatcherHost::TransactionDispatcherHost::OnDestroyed( 1093 void IndexedDBDispatcherHost::TransactionDispatcherHost::OnDestroyed(
1097 int32 object_id) { 1094 int32 object_id) {
1098 transaction_size_map_.erase(object_id); 1095 transaction_size_map_.erase(object_id);
1099 transaction_url_map_.erase(object_id); 1096 transaction_url_map_.erase(object_id);
1100 parent_->DestroyObject(&map_, object_id); 1097 parent_->DestroyObject(&map_, object_id);
1101 } 1098 }
OLDNEW
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_callbacks.cc ('k') | content/common/indexed_db_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698