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

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

Issue 8779003: Chromium side of IDBIndex.count() and IDBObjectStore.count() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sorted declarations Created 9 years 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // Is the upper bound open? 75 // Is the upper bound open?
76 IPC_STRUCT_MEMBER(bool, upper_open) 76 IPC_STRUCT_MEMBER(bool, upper_open)
77 // The direction of this cursor. 77 // The direction of this cursor.
78 IPC_STRUCT_MEMBER(int32, direction) 78 IPC_STRUCT_MEMBER(int32, direction)
79 // The index the index belongs to. 79 // The index the index belongs to.
80 IPC_STRUCT_MEMBER(int32, idb_index_id) 80 IPC_STRUCT_MEMBER(int32, idb_index_id)
81 // The transaction this request belongs to. 81 // The transaction this request belongs to.
82 IPC_STRUCT_MEMBER(int, transaction_id) 82 IPC_STRUCT_MEMBER(int, transaction_id)
83 IPC_STRUCT_END() 83 IPC_STRUCT_END()
84 84
85 // Used for counting values within an index IndexedDB.
86 IPC_STRUCT_BEGIN(IndexedDBHostMsg_IndexCount_Params)
87 // The response should have this id.
88 IPC_STRUCT_MEMBER(int32, response_id)
89 // The serialized lower key.
90 IPC_STRUCT_MEMBER(IndexedDBKey, lower_key)
91 // The serialized upper key.
92 IPC_STRUCT_MEMBER(IndexedDBKey, upper_key)
93 // Is the lower bound open?
94 IPC_STRUCT_MEMBER(bool, lower_open)
darin (slow to review) 2011/12/13 00:50:22 nit: maybe lower_bound_open would be a better name
95 // Is the upper bound open?
96 IPC_STRUCT_MEMBER(bool, upper_open)
97 // The index the index belongs to.
98 IPC_STRUCT_MEMBER(int32, idb_index_id)
darin (slow to review) 2011/12/13 00:50:22 nit: is the "idb_" prefix helpful here? this stru
99 // The transaction this request belongs to.
100 IPC_STRUCT_MEMBER(int, transaction_id)
101 IPC_STRUCT_END()
102
85 // Used to set a value in an object store. 103 // Used to set a value in an object store.
86 IPC_STRUCT_BEGIN(IndexedDBHostMsg_ObjectStorePut_Params) 104 IPC_STRUCT_BEGIN(IndexedDBHostMsg_ObjectStorePut_Params)
87 // The object store's id. 105 // The object store's id.
88 IPC_STRUCT_MEMBER(int32, idb_object_store_id) 106 IPC_STRUCT_MEMBER(int32, idb_object_store_id)
89 // The id any response should contain. 107 // The id any response should contain.
90 IPC_STRUCT_MEMBER(int32, response_id) 108 IPC_STRUCT_MEMBER(int32, response_id)
91 // The value to set. 109 // The value to set.
92 IPC_STRUCT_MEMBER(content::SerializedScriptValue, serialized_value) 110 IPC_STRUCT_MEMBER(content::SerializedScriptValue, serialized_value)
93 // The key to set it on (may not be "valid"/set in some cases). 111 // The key to set it on (may not be "valid"/set in some cases).
94 IPC_STRUCT_MEMBER(IndexedDBKey, key) 112 IPC_STRUCT_MEMBER(IndexedDBKey, key)
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // Is the upper bound open? 145 // Is the upper bound open?
128 IPC_STRUCT_MEMBER(bool, upper_open) 146 IPC_STRUCT_MEMBER(bool, upper_open)
129 // The direction of this cursor. 147 // The direction of this cursor.
130 IPC_STRUCT_MEMBER(int32, direction) 148 IPC_STRUCT_MEMBER(int32, direction)
131 // The object store the cursor belongs to. 149 // The object store the cursor belongs to.
132 IPC_STRUCT_MEMBER(int32, idb_object_store_id) 150 IPC_STRUCT_MEMBER(int32, idb_object_store_id)
133 // The transaction this request belongs to. 151 // The transaction this request belongs to.
134 IPC_STRUCT_MEMBER(int, transaction_id) 152 IPC_STRUCT_MEMBER(int, transaction_id)
135 IPC_STRUCT_END() 153 IPC_STRUCT_END()
136 154
155 // Used to count within an IndexedDB object store.
156 IPC_STRUCT_BEGIN(IndexedDBHostMsg_ObjectStoreCount_Params)
157 // The response should have this id.
158 IPC_STRUCT_MEMBER(int32, response_id)
159 // The serialized lower key.
160 IPC_STRUCT_MEMBER(IndexedDBKey, lower_key)
161 // The serialized upper key.
162 IPC_STRUCT_MEMBER(IndexedDBKey, upper_key)
163 // Is the lower bound open?
164 IPC_STRUCT_MEMBER(bool, lower_open)
165 // Is the upper bound open?
166 IPC_STRUCT_MEMBER(bool, upper_open)
167 // The object store the cursor belongs to.
168 IPC_STRUCT_MEMBER(int32, idb_object_store_id)
169 // The transaction this request belongs to.
170 IPC_STRUCT_MEMBER(int, transaction_id)
171 IPC_STRUCT_END()
172
137 // Indexed DB messages sent from the browser to the renderer. 173 // Indexed DB messages sent from the browser to the renderer.
138 174
139 // IDBCallback message handlers. 175 // IDBCallback message handlers.
140 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessIDBCursor, 176 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessIDBCursor,
141 int32 /* response_id */, 177 int32 /* response_id */,
142 int32 /* cursor_id */, 178 int32 /* cursor_id */,
143 IndexedDBKey /* key */, 179 IndexedDBKey /* key */,
144 IndexedDBKey /* primary key */, 180 IndexedDBKey /* primary key */,
145 content::SerializedScriptValue /* script_value */) 181 content::SerializedScriptValue /* script_value */)
146 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessCursorContinue, 182 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessCursorContinue,
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 // WebIDBIndex::openObjectCursor() message. 358 // WebIDBIndex::openObjectCursor() message.
323 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexOpenObjectCursor, 359 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexOpenObjectCursor,
324 IndexedDBHostMsg_IndexOpenCursor_Params, 360 IndexedDBHostMsg_IndexOpenCursor_Params,
325 WebKit::WebExceptionCode /* ec */) 361 WebKit::WebExceptionCode /* ec */)
326 362
327 // WebIDBIndex::openKeyCursor() message. 363 // WebIDBIndex::openKeyCursor() message.
328 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexOpenKeyCursor, 364 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexOpenKeyCursor,
329 IndexedDBHostMsg_IndexOpenCursor_Params, 365 IndexedDBHostMsg_IndexOpenCursor_Params,
330 WebKit::WebExceptionCode /* ec */) 366 WebKit::WebExceptionCode /* ec */)
331 367
368 // WebIDBIndex::count() message.
369 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexCount,
370 IndexedDBHostMsg_IndexCount_Params,
371 WebKit::WebExceptionCode /* ec */)
372
332 // WebIDBIndex::getObject() message. 373 // WebIDBIndex::getObject() message.
333 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_IndexGetObject, 374 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_IndexGetObject,
334 int32, /* idb_index_id */ 375 int32, /* idb_index_id */
335 int32, /* response_id */ 376 int32, /* response_id */
336 IndexedDBKey, /* key */ 377 IndexedDBKey, /* key */
337 int32, /* transaction_id */ 378 int32, /* transaction_id */
338 WebKit::WebExceptionCode /* ec */) 379 WebKit::WebExceptionCode /* ec */)
339 380
340 // WebIDBIndex::getKey() message. 381 // WebIDBIndex::getKey() message.
341 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_IndexGetKey, 382 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_IndexGetKey,
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 int32, /* idb_object_store_id */ 451 int32, /* idb_object_store_id */
411 string16, /* name */ 452 string16, /* name */
412 int32, /* transaction_id */ 453 int32, /* transaction_id */
413 WebKit::WebExceptionCode /* ec */) 454 WebKit::WebExceptionCode /* ec */)
414 455
415 // WebIDBObjectStore::openCursor() message. 456 // WebIDBObjectStore::openCursor() message.
416 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreOpenCursor, 457 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreOpenCursor,
417 IndexedDBHostMsg_ObjectStoreOpenCursor_Params, 458 IndexedDBHostMsg_ObjectStoreOpenCursor_Params,
418 WebKit::WebExceptionCode /* ec */) 459 WebKit::WebExceptionCode /* ec */)
419 460
461 // WebIDBObjectStore::count() message.
462 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreCount,
463 IndexedDBHostMsg_ObjectStoreCount_Params,
464 WebKit::WebExceptionCode /* ec */)
465
420 // WebIDBObjectStore::~WebIDBObjectStore() message. 466 // WebIDBObjectStore::~WebIDBObjectStore() message.
421 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_ObjectStoreDestroyed, 467 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_ObjectStoreDestroyed,
422 int32 /* idb_object_store_id */) 468 int32 /* idb_object_store_id */)
423 469
424 // WebIDBDatabase::~WebIDBCursor() message. 470 // WebIDBDatabase::~WebIDBCursor() message.
425 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, 471 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed,
426 int32 /* idb_cursor_id */) 472 int32 /* idb_cursor_id */)
427 473
428 // IDBTransaction::ObjectStore message. 474 // IDBTransaction::ObjectStore message.
429 IPC_SYNC_MESSAGE_CONTROL2_2(IndexedDBHostMsg_TransactionObjectStore, 475 IPC_SYNC_MESSAGE_CONTROL2_2(IndexedDBHostMsg_TransactionObjectStore,
(...skipping 11 matching lines...) Expand all
441 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, 487 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort,
442 int32 /* idb_transaction_id */) 488 int32 /* idb_transaction_id */)
443 489
444 // IDBTransaction::DidCompleteTaskEvents() message. 490 // IDBTransaction::DidCompleteTaskEvents() message.
445 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, 491 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents,
446 int32 /* idb_transaction_id */) 492 int32 /* idb_transaction_id */)
447 493
448 // WebIDBTransaction::~WebIDBTransaction() message. 494 // WebIDBTransaction::~WebIDBTransaction() message.
449 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, 495 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed,
450 int32 /* idb_transaction_id */) 496 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