| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 | 296 |
| 281 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) | 297 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) |
| 282 IPC_STRUCT_MEMBER(int32, ipc_thread_id) | 298 IPC_STRUCT_MEMBER(int32, ipc_thread_id) |
| 283 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) | 299 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) |
| 284 IPC_STRUCT_MEMBER(int32, ipc_cursor_id) | 300 IPC_STRUCT_MEMBER(int32, ipc_cursor_id) |
| 285 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, keys) | 301 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, keys) |
| 286 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, primary_keys) | 302 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, primary_keys) |
| 287 IPC_STRUCT_MEMBER(std::vector<IndexedDBMsg_Value>, values) | 303 IPC_STRUCT_MEMBER(std::vector<IndexedDBMsg_Value>, values) |
| 288 IPC_STRUCT_END() | 304 IPC_STRUCT_END() |
| 289 | 305 |
| 306 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessArray_Params) |
| 307 IPC_STRUCT_MEMBER(int32, ipc_thread_id) |
| 308 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) |
| 309 IPC_STRUCT_MEMBER(std::vector<IndexedDBMsg_ReturnValue>, values) |
| 310 IPC_STRUCT_END() |
| 311 |
| 290 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessValue_Params) | 312 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessValue_Params) |
| 291 IPC_STRUCT_MEMBER(int32, ipc_thread_id) | 313 IPC_STRUCT_MEMBER(int32, ipc_thread_id) |
| 292 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) | 314 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) |
| 293 IPC_STRUCT_MEMBER(IndexedDBMsg_ReturnValue, value) | 315 IPC_STRUCT_MEMBER(IndexedDBMsg_ReturnValue, value) |
| 294 IPC_STRUCT_END() | 316 IPC_STRUCT_END() |
| 295 | 317 |
| 296 IPC_STRUCT_BEGIN(IndexedDBIndexMetadata) | 318 IPC_STRUCT_BEGIN(IndexedDBIndexMetadata) |
| 297 IPC_STRUCT_MEMBER(int64, id) | 319 IPC_STRUCT_MEMBER(int64, id) |
| 298 IPC_STRUCT_MEMBER(base::string16, name) | 320 IPC_STRUCT_MEMBER(base::string16, name) |
| 299 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, key_path) | 321 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, key_path) |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 | 364 |
| 343 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorContinue, | 365 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorContinue, |
| 344 IndexedDBMsg_CallbacksSuccessCursorContinue_Params) | 366 IndexedDBMsg_CallbacksSuccessCursorContinue_Params) |
| 345 | 367 |
| 346 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorAdvance, | 368 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorAdvance, |
| 347 IndexedDBMsg_CallbacksSuccessCursorContinue_Params) | 369 IndexedDBMsg_CallbacksSuccessCursorContinue_Params) |
| 348 | 370 |
| 349 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorPrefetch, | 371 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorPrefetch, |
| 350 IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) | 372 IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) |
| 351 | 373 |
| 374 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessArray, |
| 375 IndexedDBMsg_CallbacksSuccessArray_Params) |
| 376 |
| 352 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessIDBDatabase, | 377 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessIDBDatabase, |
| 353 int32 /* ipc_thread_id */, | 378 int32 /* ipc_thread_id */, |
| 354 int32 /* ipc_callbacks_id */, | 379 int32 /* ipc_callbacks_id */, |
| 355 int32 /* ipc_database_callbacks_id */, | 380 int32 /* ipc_database_callbacks_id */, |
| 356 int32 /* ipc_database_id */, | 381 int32 /* ipc_database_id */, |
| 357 IndexedDBDatabaseMetadata) | 382 IndexedDBDatabaseMetadata) |
| 358 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIndexedDBKey, | 383 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIndexedDBKey, |
| 359 int32 /* ipc_thread_id */, | 384 int32 /* ipc_thread_id */, |
| 360 int32 /* ipc_callbacks_id */, | 385 int32 /* ipc_callbacks_id */, |
| 361 content::IndexedDBKey /* indexed_db_key */) | 386 content::IndexedDBKey /* indexed_db_key */) |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 int32 /* ipc_database_id */) | 502 int32 /* ipc_database_id */) |
| 478 | 503 |
| 479 // WebIDBDatabase::~WebIDBDatabase() message. | 504 // WebIDBDatabase::~WebIDBDatabase() message. |
| 480 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseDestroyed, | 505 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseDestroyed, |
| 481 int32 /* ipc_database_id */) | 506 int32 /* ipc_database_id */) |
| 482 | 507 |
| 483 // WebIDBDatabase::get() message. | 508 // WebIDBDatabase::get() message. |
| 484 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseGet, | 509 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseGet, |
| 485 IndexedDBHostMsg_DatabaseGet_Params) | 510 IndexedDBHostMsg_DatabaseGet_Params) |
| 486 | 511 |
| 512 // WebIDBDatabase::getAll() message. |
| 513 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseGetAll, |
| 514 IndexedDBHostMsg_DatabaseGetAll_Params) |
| 515 |
| 487 // WebIDBDatabase::put() message. | 516 // WebIDBDatabase::put() message. |
| 488 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabasePut, | 517 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabasePut, |
| 489 IndexedDBHostMsg_DatabasePut_Params) | 518 IndexedDBHostMsg_DatabasePut_Params) |
| 490 | 519 |
| 491 // WebIDBDatabase::setIndexKeys() message. | 520 // WebIDBDatabase::setIndexKeys() message. |
| 492 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseSetIndexKeys, | 521 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseSetIndexKeys, |
| 493 IndexedDBHostMsg_DatabaseSetIndexKeys_Params) | 522 IndexedDBHostMsg_DatabaseSetIndexKeys_Params) |
| 494 | 523 |
| 495 // WebIDBDatabase::setIndexesReady() message. | 524 // WebIDBDatabase::setIndexesReady() message. |
| 496 IPC_MESSAGE_CONTROL4(IndexedDBHostMsg_DatabaseSetIndexesReady, | 525 IPC_MESSAGE_CONTROL4(IndexedDBHostMsg_DatabaseSetIndexesReady, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 int64) /* transaction_id */ | 565 int64) /* transaction_id */ |
| 537 | 566 |
| 538 // WebIDBDatabase::commit() message. | 567 // WebIDBDatabase::commit() message. |
| 539 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit, | 568 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit, |
| 540 int32, /* ipc_database_id */ | 569 int32, /* ipc_database_id */ |
| 541 int64) /* transaction_id */ | 570 int64) /* transaction_id */ |
| 542 | 571 |
| 543 // WebIDBDatabase::~WebIDBCursor() message. | 572 // WebIDBDatabase::~WebIDBCursor() message. |
| 544 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, | 573 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, |
| 545 int32 /* ipc_cursor_id */) | 574 int32 /* ipc_cursor_id */) |
| OLD | NEW |