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

Side by Side Diff: content/common/indexed_db_messages.h

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 // Message definition file, included multiple times, hence no include guard. 5 // Message definition file, included multiple times, hence no include guard.
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "content/common/indexed_db_key.h" 9 #include "content/common/indexed_db_key.h"
10 #include "content/common/indexed_db_param_traits.h" 10 #include "content/common/indexed_db_param_traits.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 IPC_STRUCT_MEMBER(int32, direction) 134 IPC_STRUCT_MEMBER(int32, direction)
135 // The object store the cursor belongs to. 135 // The object store the cursor belongs to.
136 IPC_STRUCT_MEMBER(int32, idb_object_store_id) 136 IPC_STRUCT_MEMBER(int32, idb_object_store_id)
137 // The transaction this request belongs to. 137 // The transaction this request belongs to.
138 IPC_STRUCT_MEMBER(int, transaction_id) 138 IPC_STRUCT_MEMBER(int, transaction_id)
139 IPC_STRUCT_END() 139 IPC_STRUCT_END()
140 140
141 // Indexed DB messages sent from the browser to the renderer. 141 // Indexed DB messages sent from the browser to the renderer.
142 142
143 // IDBCallback message handlers. 143 // IDBCallback message handlers.
144 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBCursor, 144 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessIDBCursor,
145 int32 /* response_id */, 145 int32 /* response_id */,
146 int32 /* cursor_id */) 146 int32 /* cursor_id */,
147 IndexedDBKey /* key */,
148 IndexedDBKey /* primary key */,
149 SerializedScriptValue /* script_value */)
147 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBDatabase, 150 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBDatabase,
148 int32 /* response_id */, 151 int32 /* response_id */,
149 int32 /* idb_database_id */) 152 int32 /* idb_database_id */)
150 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIndexedDBKey, 153 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIndexedDBKey,
151 int32 /* response_id */, 154 int32 /* response_id */,
152 IndexedDBKey /* indexed_db_key */) 155 IndexedDBKey /* indexed_db_key */)
153 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBTransaction, 156 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBTransaction,
154 int32 /* response_id */, 157 int32 /* response_id */,
155 int32 /* idb_transaction_id */) 158 int32 /* idb_transaction_id */)
156 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessSerializedScriptValue, 159 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessSerializedScriptValue,
(...skipping 19 matching lines...) Expand all
176 int32, /* database_id */ 179 int32, /* database_id */
177 string16) /* new_version */ 180 string16) /* new_version */
178 181
179 // Indexed DB messages sent from the renderer to the browser. 182 // Indexed DB messages sent from the renderer to the browser.
180 183
181 // WebIDBCursor::direction() message. 184 // WebIDBCursor::direction() message.
182 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_CursorDirection, 185 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_CursorDirection,
183 int32, /* idb_cursor_id */ 186 int32, /* idb_cursor_id */
184 int32 /* direction */) 187 int32 /* direction */)
185 188
186 // WebIDBCursor::key() message.
187 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_CursorKey,
188 int32, /* idb_cursor_id */
189 IndexedDBKey /* key */)
190
191 // WebIDBCursor::primaryKey() message.
192 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_CursorPrimaryKey,
193 int32, /* idb_cursor_id */
194 IndexedDBKey /* primary_key */)
195
196 // WebIDBCursor::value() message.
197 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_CursorValue,
198 int32, /* idb_cursor_id */
199 SerializedScriptValue /* script_value */)
200
201 // WebIDBCursor::update() message. 189 // WebIDBCursor::update() message.
202 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorUpdate, 190 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorUpdate,
203 int32, /* idb_cursor_id */ 191 int32, /* idb_cursor_id */
204 int32, /* response_id */ 192 int32, /* response_id */
205 SerializedScriptValue, /* value */ 193 SerializedScriptValue, /* value */
206 WebKit::WebExceptionCode /* ec */) 194 WebKit::WebExceptionCode /* ec */)
207 195
208 // WebIDBCursor::continue() message. 196 // WebIDBCursor::continue() message.
209 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorContinue, 197 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorContinue,
210 int32, /* idb_cursor_id */ 198 int32, /* idb_cursor_id */
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, 420 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort,
433 int32 /* idb_transaction_id */) 421 int32 /* idb_transaction_id */)
434 422
435 // IDBTransaction::DidCompleteTaskEvents() message. 423 // IDBTransaction::DidCompleteTaskEvents() message.
436 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, 424 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents,
437 int32 /* idb_transaction_id */) 425 int32 /* idb_transaction_id */)
438 426
439 // WebIDBTransaction::~WebIDBTransaction() message. 427 // WebIDBTransaction::~WebIDBTransaction() message.
440 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, 428 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed,
441 int32 /* idb_transaction_id */) 429 int32 /* idb_transaction_id */)
OLDNEW
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_dispatcher_host.cc ('k') | content/renderer/indexed_db_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698