OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 // The object store's id. | 119 // The object store's id. |
120 IPC_STRUCT_MEMBER(int64, object_store_id) | 120 IPC_STRUCT_MEMBER(int64, object_store_id) |
121 // The index's id. | 121 // The index's id. |
122 IPC_STRUCT_MEMBER(int64, index_id) | 122 IPC_STRUCT_MEMBER(int64, index_id) |
123 // The serialized key range. | 123 // The serialized key range. |
124 IPC_STRUCT_MEMBER(content::IndexedDBKeyRange, key_range) | 124 IPC_STRUCT_MEMBER(content::IndexedDBKeyRange, key_range) |
125 // If this is just retrieving the key | 125 // If this is just retrieving the key |
126 IPC_STRUCT_MEMBER(bool, key_only) | 126 IPC_STRUCT_MEMBER(bool, key_only) |
127 IPC_STRUCT_END() | 127 IPC_STRUCT_END() |
128 | 128 |
| 129 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseGetAll_Params) |
| 130 IPC_STRUCT_MEMBER(int32, ipc_thread_id) |
| 131 // The id any response should contain. |
| 132 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) |
| 133 // The database the object store belongs to. |
| 134 IPC_STRUCT_MEMBER(int32, ipc_database_id) |
| 135 // The transaction its associated with. |
| 136 IPC_STRUCT_MEMBER(int64, transaction_id) |
| 137 // The object store's id. |
| 138 IPC_STRUCT_MEMBER(int64, object_store_id) |
| 139 // The serialized key range. |
| 140 IPC_STRUCT_MEMBER(content::IndexedDBKeyRange, key_range) |
| 141 // The max number of values to retrieve. |
| 142 IPC_STRUCT_MEMBER(int64, max_count) |
| 143 IPC_STRUCT_END() |
| 144 |
129 IPC_STRUCT_BEGIN(IndexedDBMsg_BlobOrFileInfo) | 145 IPC_STRUCT_BEGIN(IndexedDBMsg_BlobOrFileInfo) |
130 IPC_STRUCT_MEMBER(bool, is_file) | 146 IPC_STRUCT_MEMBER(bool, is_file) |
131 IPC_STRUCT_MEMBER(std::string, uuid) | 147 IPC_STRUCT_MEMBER(std::string, uuid) |
132 IPC_STRUCT_MEMBER(base::string16, mime_type) | 148 IPC_STRUCT_MEMBER(base::string16, mime_type) |
133 IPC_STRUCT_MEMBER(uint64, size) | 149 IPC_STRUCT_MEMBER(uint64, size) |
134 IPC_STRUCT_MEMBER(base::string16, file_path) | 150 IPC_STRUCT_MEMBER(base::string16, file_path) |
135 IPC_STRUCT_MEMBER(base::string16, file_name) | 151 IPC_STRUCT_MEMBER(base::string16, file_name) |
136 IPC_STRUCT_MEMBER(double, last_modified) | 152 IPC_STRUCT_MEMBER(double, last_modified) |
137 IPC_STRUCT_END() | 153 IPC_STRUCT_END() |
138 | 154 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 | 289 |
274 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) | 290 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) |
275 IPC_STRUCT_MEMBER(int32, ipc_thread_id) | 291 IPC_STRUCT_MEMBER(int32, ipc_thread_id) |
276 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) | 292 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) |
277 IPC_STRUCT_MEMBER(int32, ipc_cursor_id) | 293 IPC_STRUCT_MEMBER(int32, ipc_cursor_id) |
278 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, keys) | 294 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, keys) |
279 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, primary_keys) | 295 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, primary_keys) |
280 IPC_STRUCT_MEMBER(std::vector<IndexedDBMsg_Value>, values) | 296 IPC_STRUCT_MEMBER(std::vector<IndexedDBMsg_Value>, values) |
281 IPC_STRUCT_END() | 297 IPC_STRUCT_END() |
282 | 298 |
| 299 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessArray_Params) |
| 300 IPC_STRUCT_MEMBER(int32, ipc_thread_id) |
| 301 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) |
| 302 IPC_STRUCT_MEMBER(std::vector<IndexedDBMsg_Value>, values) |
| 303 IPC_STRUCT_END() |
| 304 |
283 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessValue_Params) | 305 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessValue_Params) |
284 IPC_STRUCT_MEMBER(int32, ipc_thread_id) | 306 IPC_STRUCT_MEMBER(int32, ipc_thread_id) |
285 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) | 307 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) |
286 IPC_STRUCT_MEMBER(IndexedDBMsg_Value, value) | 308 IPC_STRUCT_MEMBER(IndexedDBMsg_Value, value) |
287 IPC_STRUCT_END() | 309 IPC_STRUCT_END() |
288 | 310 |
289 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessValueWithKey_Params) | 311 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessValueWithKey_Params) |
290 IPC_STRUCT_MEMBER(int32, ipc_thread_id) | 312 IPC_STRUCT_MEMBER(int32, ipc_thread_id) |
291 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) | 313 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) |
292 IPC_STRUCT_MEMBER(IndexedDBMsg_Value, value) | 314 IPC_STRUCT_MEMBER(IndexedDBMsg_Value, value) |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 | 365 |
344 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorContinue, | 366 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorContinue, |
345 IndexedDBMsg_CallbacksSuccessCursorContinue_Params) | 367 IndexedDBMsg_CallbacksSuccessCursorContinue_Params) |
346 | 368 |
347 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorAdvance, | 369 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorAdvance, |
348 IndexedDBMsg_CallbacksSuccessCursorContinue_Params) | 370 IndexedDBMsg_CallbacksSuccessCursorContinue_Params) |
349 | 371 |
350 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorPrefetch, | 372 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorPrefetch, |
351 IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) | 373 IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) |
352 | 374 |
| 375 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessArray, |
| 376 IndexedDBMsg_CallbacksSuccessArray_Params) |
| 377 |
353 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessIDBDatabase, | 378 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessIDBDatabase, |
354 int32 /* ipc_thread_id */, | 379 int32 /* ipc_thread_id */, |
355 int32 /* ipc_callbacks_id */, | 380 int32 /* ipc_callbacks_id */, |
356 int32 /* ipc_database_callbacks_id */, | 381 int32 /* ipc_database_callbacks_id */, |
357 int32 /* ipc_database_id */, | 382 int32 /* ipc_database_id */, |
358 IndexedDBDatabaseMetadata) | 383 IndexedDBDatabaseMetadata) |
359 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIndexedDBKey, | 384 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIndexedDBKey, |
360 int32 /* ipc_thread_id */, | 385 int32 /* ipc_thread_id */, |
361 int32 /* ipc_callbacks_id */, | 386 int32 /* ipc_callbacks_id */, |
362 content::IndexedDBKey /* indexed_db_key */) | 387 content::IndexedDBKey /* indexed_db_key */) |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 int32 /* ipc_database_id */) | 506 int32 /* ipc_database_id */) |
482 | 507 |
483 // WebIDBDatabase::~WebIDBDatabase() message. | 508 // WebIDBDatabase::~WebIDBDatabase() message. |
484 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseDestroyed, | 509 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseDestroyed, |
485 int32 /* ipc_database_id */) | 510 int32 /* ipc_database_id */) |
486 | 511 |
487 // WebIDBDatabase::get() message. | 512 // WebIDBDatabase::get() message. |
488 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseGet, | 513 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseGet, |
489 IndexedDBHostMsg_DatabaseGet_Params) | 514 IndexedDBHostMsg_DatabaseGet_Params) |
490 | 515 |
| 516 // WebIDBDatabase::getAll() message. |
| 517 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseGetAll, |
| 518 IndexedDBHostMsg_DatabaseGetAll_Params) |
| 519 |
491 // WebIDBDatabase::put() message. | 520 // WebIDBDatabase::put() message. |
492 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabasePut, | 521 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabasePut, |
493 IndexedDBHostMsg_DatabasePut_Params) | 522 IndexedDBHostMsg_DatabasePut_Params) |
494 | 523 |
495 // WebIDBDatabase::setIndexKeys() message. | 524 // WebIDBDatabase::setIndexKeys() message. |
496 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseSetIndexKeys, | 525 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseSetIndexKeys, |
497 IndexedDBHostMsg_DatabaseSetIndexKeys_Params) | 526 IndexedDBHostMsg_DatabaseSetIndexKeys_Params) |
498 | 527 |
499 // WebIDBDatabase::setIndexesReady() message. | 528 // WebIDBDatabase::setIndexesReady() message. |
500 IPC_MESSAGE_CONTROL4(IndexedDBHostMsg_DatabaseSetIndexesReady, | 529 IPC_MESSAGE_CONTROL4(IndexedDBHostMsg_DatabaseSetIndexesReady, |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 int64) /* transaction_id */ | 569 int64) /* transaction_id */ |
541 | 570 |
542 // WebIDBDatabase::commit() message. | 571 // WebIDBDatabase::commit() message. |
543 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit, | 572 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit, |
544 int32, /* ipc_database_id */ | 573 int32, /* ipc_database_id */ |
545 int64) /* transaction_id */ | 574 int64) /* transaction_id */ |
546 | 575 |
547 // WebIDBDatabase::~WebIDBCursor() message. | 576 // WebIDBDatabase::~WebIDBCursor() message. |
548 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, | 577 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, |
549 int32 /* ipc_cursor_id */) | 578 int32 /* ipc_cursor_id */) |
OLD | NEW |