| 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 <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // The name of the database. | 91 // The name of the database. |
| 92 IPC_STRUCT_MEMBER(base::string16, name) | 92 IPC_STRUCT_MEMBER(base::string16, name) |
| 93 IPC_STRUCT_END() | 93 IPC_STRUCT_END() |
| 94 | 94 |
| 95 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateTransaction_Params) | 95 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateTransaction_Params) |
| 96 IPC_STRUCT_MEMBER(int32_t, ipc_thread_id) | 96 IPC_STRUCT_MEMBER(int32_t, ipc_thread_id) |
| 97 // The database the object store belongs to. | 97 // The database the object store belongs to. |
| 98 IPC_STRUCT_MEMBER(int32_t, ipc_database_id) | 98 IPC_STRUCT_MEMBER(int32_t, ipc_database_id) |
| 99 // The transaction id as minted by the frontend. | 99 // The transaction id as minted by the frontend. |
| 100 IPC_STRUCT_MEMBER(int64_t, transaction_id) | 100 IPC_STRUCT_MEMBER(int64_t, transaction_id) |
| 101 // To get to WebIDBDatabaseCallbacks. | |
| 102 IPC_STRUCT_MEMBER(int32_t, ipc_database_callbacks_id) | |
| 103 // The scope of the transaction. | 101 // The scope of the transaction. |
| 104 IPC_STRUCT_MEMBER(std::vector<int64_t>, object_store_ids) | 102 IPC_STRUCT_MEMBER(std::vector<int64_t>, object_store_ids) |
| 105 // The transaction mode. | 103 // The transaction mode. |
| 106 IPC_STRUCT_MEMBER(blink::WebIDBTransactionMode, mode) | 104 IPC_STRUCT_MEMBER(blink::WebIDBTransactionMode, mode) |
| 107 IPC_STRUCT_END() | 105 IPC_STRUCT_END() |
| 108 | 106 |
| 109 // Used to create an object store. | 107 // Used to create an object store. |
| 110 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateObjectStore_Params) | 108 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateObjectStore_Params) |
| 111 // The database the object store belongs to. | 109 // The database the object store belongs to. |
| 112 IPC_STRUCT_MEMBER(int32_t, ipc_database_id) | 110 IPC_STRUCT_MEMBER(int32_t, ipc_database_id) |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 | 406 |
| 409 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorAdvance, | 407 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorAdvance, |
| 410 IndexedDBMsg_CallbacksSuccessCursorContinue_Params) | 408 IndexedDBMsg_CallbacksSuccessCursorContinue_Params) |
| 411 | 409 |
| 412 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorPrefetch, | 410 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorPrefetch, |
| 413 IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) | 411 IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) |
| 414 | 412 |
| 415 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessArray, | 413 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessArray, |
| 416 IndexedDBMsg_CallbacksSuccessArray_Params) | 414 IndexedDBMsg_CallbacksSuccessArray_Params) |
| 417 | 415 |
| 418 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessIDBDatabase, | 416 IPC_MESSAGE_CONTROL4(IndexedDBMsg_CallbacksSuccessIDBDatabase, |
| 419 int32_t /* ipc_thread_id */, | 417 int32_t /* ipc_thread_id */, |
| 420 int32_t /* ipc_callbacks_id */, | 418 int32_t /* ipc_callbacks_id */, |
| 421 int32_t /* ipc_database_callbacks_id */, | |
| 422 int32_t /* ipc_database_id */, | 419 int32_t /* ipc_database_id */, |
| 423 IndexedDBDatabaseMetadata) | 420 IndexedDBDatabaseMetadata) |
| 424 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIndexedDBKey, | 421 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIndexedDBKey, |
| 425 int32_t /* ipc_thread_id */, | 422 int32_t /* ipc_thread_id */, |
| 426 int32_t /* ipc_callbacks_id */, | 423 int32_t /* ipc_callbacks_id */, |
| 427 content::IndexedDBKey /* indexed_db_key */) | 424 content::IndexedDBKey /* indexed_db_key */) |
| 428 | 425 |
| 429 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessValue, | 426 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessValue, |
| 430 IndexedDBMsg_CallbacksSuccessValue_Params) | 427 IndexedDBMsg_CallbacksSuccessValue_Params) |
| 431 | 428 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 449 int32_t /* ipc_thread_id */, | 446 int32_t /* ipc_thread_id */, |
| 450 int32_t /* ipc_callbacks_id */) | 447 int32_t /* ipc_callbacks_id */) |
| 451 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksIntBlocked, | 448 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksIntBlocked, |
| 452 int32_t /* ipc_thread_id */, | 449 int32_t /* ipc_thread_id */, |
| 453 int32_t /* ipc_callbacks_id */, | 450 int32_t /* ipc_callbacks_id */, |
| 454 int64_t /* existing_version */) | 451 int64_t /* existing_version */) |
| 455 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksUpgradeNeeded, | 452 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksUpgradeNeeded, |
| 456 IndexedDBMsg_CallbacksUpgradeNeeded_Params) | 453 IndexedDBMsg_CallbacksUpgradeNeeded_Params) |
| 457 | 454 |
| 458 // IDBDatabaseCallback message handlers | 455 // IDBDatabaseCallback message handlers |
| 459 IPC_MESSAGE_CONTROL2(IndexedDBMsg_DatabaseCallbacksForcedClose, | |
| 460 int32_t, /* ipc_thread_id */ | |
| 461 int32_t) /* ipc_database_callbacks_id */ | |
| 462 IPC_MESSAGE_CONTROL4(IndexedDBMsg_DatabaseCallbacksVersionChange, | |
| 463 int32_t, /* ipc_thread_id */ | |
| 464 int32_t, /* ipc_database_callbacks_id */ | |
| 465 int64_t, /* old_version */ | |
| 466 int64_t) /* new_version */ | |
| 467 IPC_MESSAGE_CONTROL5(IndexedDBMsg_DatabaseCallbacksAbort, | |
| 468 int32_t, /* ipc_thread_id */ | |
| 469 int32_t, /* ipc_database_callbacks_id */ | |
| 470 int64_t, /* transaction_id */ | |
| 471 int, /* code */ | |
| 472 base::string16) /* message */ | |
| 473 IPC_MESSAGE_CONTROL3(IndexedDBMsg_DatabaseCallbacksComplete, | |
| 474 int32_t, /* ipc_thread_id */ | |
| 475 int32_t, /* ipc_database_callbacks_id */ | |
| 476 int64_t) /* transaction_id */ | |
| 477 IPC_MESSAGE_CONTROL3(IndexedDBMsg_DatabaseCallbacksChanges, | 456 IPC_MESSAGE_CONTROL3(IndexedDBMsg_DatabaseCallbacksChanges, |
| 478 int32_t, /* ipc_thread_id */ | 457 int32_t, /* ipc_thread_id */ |
| 479 int32_t, /* ipc_database_id */ | 458 int32_t, /* ipc_database_id */ |
| 480 IndexedDBMsg_ObserverChanges) | 459 IndexedDBMsg_ObserverChanges) |
| 481 | 460 |
| 482 // Indexed DB messages sent from the renderer to the browser. | 461 // Indexed DB messages sent from the renderer to the browser. |
| 483 | 462 |
| 484 // WebIDBCursor::advance() message. | 463 // WebIDBCursor::advance() message. |
| 485 IPC_MESSAGE_CONTROL4(IndexedDBHostMsg_CursorAdvance, | 464 IPC_MESSAGE_CONTROL4(IndexedDBHostMsg_CursorAdvance, |
| 486 int32_t, /* ipc_cursor_id */ | 465 int32_t, /* ipc_cursor_id */ |
| (...skipping 19 matching lines...) Expand all Loading... |
| 506 // WebIDBCursor::prefetchReset() message. | 485 // WebIDBCursor::prefetchReset() message. |
| 507 IPC_MESSAGE_CONTROL3(IndexedDBHostMsg_CursorPrefetchReset, | 486 IPC_MESSAGE_CONTROL3(IndexedDBHostMsg_CursorPrefetchReset, |
| 508 int32_t, /* ipc_cursor_id */ | 487 int32_t, /* ipc_cursor_id */ |
| 509 int32_t, /* used_prefetches */ | 488 int32_t, /* used_prefetches */ |
| 510 int32_t) /* used_prefetches */ | 489 int32_t) /* used_prefetches */ |
| 511 | 490 |
| 512 // WebIDBFactory::getDatabaseNames() message. | 491 // WebIDBFactory::getDatabaseNames() message. |
| 513 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryGetDatabaseNames, | 492 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryGetDatabaseNames, |
| 514 IndexedDBHostMsg_FactoryGetDatabaseNames_Params) | 493 IndexedDBHostMsg_FactoryGetDatabaseNames_Params) |
| 515 | 494 |
| 516 // WebIDBFactory::open() message. | |
| 517 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryOpen, | |
| 518 IndexedDBHostMsg_FactoryOpen_Params) | |
| 519 | |
| 520 // WebIDBFactory::deleteDatabase() message. | 495 // WebIDBFactory::deleteDatabase() message. |
| 521 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryDeleteDatabase, | 496 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryDeleteDatabase, |
| 522 IndexedDBHostMsg_FactoryDeleteDatabase_Params) | 497 IndexedDBHostMsg_FactoryDeleteDatabase_Params) |
| 523 | 498 |
| 524 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_AckReceivedBlobs, | 499 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_AckReceivedBlobs, |
| 525 std::vector<std::string>) /* uuids */ | 500 std::vector<std::string>) /* uuids */ |
| 526 | 501 |
| 527 // WebIDBDatabase::unobserve() message. | 502 // WebIDBDatabase::unobserve() message. |
| 528 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseUnobserve, | 503 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseUnobserve, |
| 529 int32_t, /* ipc_database_id */ | 504 int32_t, /* ipc_database_id */ |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 int64_t) /* transaction_id */ | 594 int64_t) /* transaction_id */ |
| 620 | 595 |
| 621 // WebIDBDatabase::commit() message. | 596 // WebIDBDatabase::commit() message. |
| 622 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit, | 597 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit, |
| 623 int32_t, /* ipc_database_id */ | 598 int32_t, /* ipc_database_id */ |
| 624 int64_t) /* transaction_id */ | 599 int64_t) /* transaction_id */ |
| 625 | 600 |
| 626 // WebIDBDatabase::~WebIDBCursor() message. | 601 // WebIDBDatabase::~WebIDBCursor() message. |
| 627 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, | 602 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, |
| 628 int32_t /* ipc_cursor_id */) | 603 int32_t /* ipc_cursor_id */) |
| OLD | NEW |