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

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

Issue 7692006: IndexedDB API cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright presubmit Created 9 years, 4 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // IDBCallback message handlers. 135 // IDBCallback message handlers.
136 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBCursor, 136 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBCursor,
137 int32 /* response_id */, 137 int32 /* response_id */,
138 int32 /* cursor_id */) 138 int32 /* cursor_id */)
139 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBDatabase, 139 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBDatabase,
140 int32 /* response_id */, 140 int32 /* response_id */,
141 int32 /* idb_database_id */) 141 int32 /* idb_database_id */)
142 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIndexedDBKey, 142 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIndexedDBKey,
143 int32 /* response_id */, 143 int32 /* response_id */,
144 IndexedDBKey /* indexed_db_key */) 144 IndexedDBKey /* indexed_db_key */)
145 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBIndex,
146 int32 /* response_id */,
147 int32 /* idb_index_id */)
148 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBTransaction, 145 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBTransaction,
149 int32 /* response_id */, 146 int32 /* response_id */,
150 int32 /* idb_transaction_id */) 147 int32 /* idb_transaction_id */)
151 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessSerializedScriptValue, 148 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessSerializedScriptValue,
152 int32 /* response_id */, 149 int32 /* response_id */,
153 SerializedScriptValue /* serialized_script_value */) 150 SerializedScriptValue /* serialized_script_value */)
154 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksError, 151 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksError,
155 int32 /* response_id */, 152 int32 /* response_id */,
156 int /* code */, 153 int /* code */,
157 string16 /* message */) 154 string16 /* message */)
(...skipping 21 matching lines...) Expand all
179 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_CursorKey, 176 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_CursorKey,
180 int32, /* idb_cursor_id */ 177 int32, /* idb_cursor_id */
181 IndexedDBKey /* key */) 178 IndexedDBKey /* key */)
182 179
183 // WebIDBCursor::primaryKey() message. 180 // WebIDBCursor::primaryKey() message.
184 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_CursorPrimaryKey, 181 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_CursorPrimaryKey,
185 int32, /* idb_cursor_id */ 182 int32, /* idb_cursor_id */
186 IndexedDBKey /* primary_key */) 183 IndexedDBKey /* primary_key */)
187 184
188 // WebIDBCursor::value() message. 185 // WebIDBCursor::value() message.
189 IPC_SYNC_MESSAGE_CONTROL1_2(IndexedDBHostMsg_CursorValue, 186 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_CursorValue,
190 int32, /* idb_cursor_id */ 187 int32, /* idb_cursor_id */
191 SerializedScriptValue, /* script_value */ 188 SerializedScriptValue /* script_value */)
192 IndexedDBKey /* key */)
193 189
194 // WebIDBCursor::update() message. 190 // WebIDBCursor::update() message.
195 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorUpdate, 191 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorUpdate,
196 int32, /* idb_cursor_id */ 192 int32, /* idb_cursor_id */
197 int32, /* response_id */ 193 int32, /* response_id */
198 SerializedScriptValue, /* value */ 194 SerializedScriptValue, /* value */
199 WebKit::WebExceptionCode /* ec */) 195 WebKit::WebExceptionCode /* ec */)
200 196
201 // WebIDBCursor::continue() message. 197 // WebIDBCursor::continue() message.
202 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorContinue, 198 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorContinue,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 int32, /* idb_database_id */ 248 int32, /* idb_database_id */
253 int32, /* response_id */ 249 int32, /* response_id */
254 string16, /* version */ 250 string16, /* version */
255 WebKit::WebExceptionCode /* ec */) 251 WebKit::WebExceptionCode /* ec */)
256 252
257 // WebIDBDatabase::transaction() message. 253 // WebIDBDatabase::transaction() message.
258 // TODO: make this message async. Have the renderer create a 254 // TODO: make this message async. Have the renderer create a
259 // temporary ID and keep a map in the browser process of real 255 // temporary ID and keep a map in the browser process of real
260 // IDs to temporary IDs. We can then update the transaction 256 // IDs to temporary IDs. We can then update the transaction
261 // to its real ID asynchronously. 257 // to its real ID asynchronously.
262 IPC_SYNC_MESSAGE_CONTROL4_2(IndexedDBHostMsg_DatabaseTransaction, 258 IPC_SYNC_MESSAGE_CONTROL3_2(IndexedDBHostMsg_DatabaseTransaction,
263 int32, /* idb_database_id */ 259 int32, /* idb_database_id */
264 std::vector<string16>, /* object_stores */ 260 std::vector<string16>, /* object_stores */
265 int32, /* mode */ 261 int32, /* mode */
266 int32, /* timeout */
267 int32, /* idb_transaction_id */ 262 int32, /* idb_transaction_id */
268 WebKit::WebExceptionCode /* ec */) 263 WebKit::WebExceptionCode /* ec */)
269 264
270 // WebIDBDatabase::open() message. 265 // WebIDBDatabase::open() message.
271 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseOpen, 266 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseOpen,
272 int32, /* idb_database_id */ 267 int32, /* idb_database_id */
273 int32 /* response_id */) 268 int32 /* response_id */)
274 269
275 // WebIDBDatabase::close() message. 270 // WebIDBDatabase::close() message.
276 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseClose, 271 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseClose,
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, 417 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort,
423 int32 /* idb_transaction_id */) 418 int32 /* idb_transaction_id */)
424 419
425 // IDBTransaction::DidCompleteTaskEvents() message. 420 // IDBTransaction::DidCompleteTaskEvents() message.
426 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, 421 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents,
427 int32 /* idb_transaction_id */) 422 int32 /* idb_transaction_id */)
428 423
429 // WebIDBTransaction::~WebIDBTransaction() message. 424 // WebIDBTransaction::~WebIDBTransaction() message.
430 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, 425 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed,
431 int32 /* idb_transaction_id */) 426 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