| 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 <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "content/common/indexed_db/indexed_db_key.h" | 9 #include "content/common/indexed_db/indexed_db_key.h" |
| 10 #include "content/common/indexed_db/indexed_db_key_path.h" | 10 #include "content/common/indexed_db/indexed_db_key_path.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 IPC_STRUCT_MEMBER(int32, thread_id) | 34 IPC_STRUCT_MEMBER(int32, thread_id) |
| 35 IPC_STRUCT_MEMBER(int32, response_id) | 35 IPC_STRUCT_MEMBER(int32, response_id) |
| 36 // The origin doing the initiating. | 36 // The origin doing the initiating. |
| 37 IPC_STRUCT_MEMBER(string16, origin) | 37 IPC_STRUCT_MEMBER(string16, origin) |
| 38 IPC_STRUCT_END() | 38 IPC_STRUCT_END() |
| 39 | 39 |
| 40 // Used to open an indexed database. | 40 // Used to open an indexed database. |
| 41 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryOpen_Params) | 41 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryOpen_Params) |
| 42 // The response should have these ids. | 42 // The response should have these ids. |
| 43 IPC_STRUCT_MEMBER(int32, thread_id) | 43 IPC_STRUCT_MEMBER(int32, thread_id) |
| 44 // Identifier of the request |
| 44 IPC_STRUCT_MEMBER(int32, response_id) | 45 IPC_STRUCT_MEMBER(int32, response_id) |
| 46 // Identifier for database callbacks |
| 47 IPC_STRUCT_MEMBER(int32, database_response_id) |
| 45 // The origin doing the initiating. | 48 // The origin doing the initiating. |
| 46 IPC_STRUCT_MEMBER(string16, origin) | 49 IPC_STRUCT_MEMBER(string16, origin) |
| 47 // The name of the database. | 50 // The name of the database. |
| 48 IPC_STRUCT_MEMBER(string16, name) | 51 IPC_STRUCT_MEMBER(string16, name) |
| 49 // The requested version of the database. | 52 // The requested version of the database. |
| 50 IPC_STRUCT_MEMBER(int64, version) | 53 IPC_STRUCT_MEMBER(int64, version) |
| 51 IPC_STRUCT_END() | 54 IPC_STRUCT_END() |
| 52 | 55 |
| 53 // Used to delete an indexed database. | 56 // Used to delete an indexed database. |
| 54 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryDeleteDatabase_Params) | 57 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryDeleteDatabase_Params) |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 // IDs to temporary IDs. We can then update the transaction | 391 // IDs to temporary IDs. We can then update the transaction |
| 389 // to its real ID asynchronously. | 392 // to its real ID asynchronously. |
| 390 IPC_SYNC_MESSAGE_CONTROL4_2(IndexedDBHostMsg_DatabaseTransaction, | 393 IPC_SYNC_MESSAGE_CONTROL4_2(IndexedDBHostMsg_DatabaseTransaction, |
| 391 int32, /* thread_id */ | 394 int32, /* thread_id */ |
| 392 int32, /* idb_database_id */ | 395 int32, /* idb_database_id */ |
| 393 std::vector<string16>, /* object_stores */ | 396 std::vector<string16>, /* object_stores */ |
| 394 int32, /* mode */ | 397 int32, /* mode */ |
| 395 int32, /* idb_transaction_id */ | 398 int32, /* idb_transaction_id */ |
| 396 WebKit::WebExceptionCode /* ec */) | 399 WebKit::WebExceptionCode /* ec */) |
| 397 | 400 |
| 398 // WebIDBDatabase::open() message. | |
| 399 IPC_MESSAGE_CONTROL3(IndexedDBHostMsg_DatabaseOpen, | |
| 400 int32, /* idb_database_id */ | |
| 401 int32 /* thread_id */, | |
| 402 int32 /* response_id */) | |
| 403 | |
| 404 // WebIDBDatabase::close() message. | 401 // WebIDBDatabase::close() message. |
| 405 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseClose, | 402 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseClose, |
| 406 int32 /* idb_database_id */) | 403 int32 /* idb_database_id */) |
| 407 | 404 |
| 408 // WebIDBDatabase::~WebIDBDatabase() message. | 405 // WebIDBDatabase::~WebIDBDatabase() message. |
| 409 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseDestroyed, | 406 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseDestroyed, |
| 410 int32 /* idb_database_id */) | 407 int32 /* idb_database_id */) |
| 411 | 408 |
| 412 // WebIDBIndex::openObjectCursor() message. | 409 // WebIDBIndex::openObjectCursor() message. |
| 413 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexOpenObjectCursor, | 410 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexOpenObjectCursor, |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, | 542 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, |
| 546 int32 /* idb_transaction_id */) | 543 int32 /* idb_transaction_id */) |
| 547 | 544 |
| 548 // IDBTransaction::DidCompleteTaskEvents() message. | 545 // IDBTransaction::DidCompleteTaskEvents() message. |
| 549 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, | 546 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, |
| 550 int32 /* idb_transaction_id */) | 547 int32 /* idb_transaction_id */) |
| 551 | 548 |
| 552 // WebIDBTransaction::~WebIDBTransaction() message. | 549 // WebIDBTransaction::~WebIDBTransaction() message. |
| 553 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, | 550 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, |
| 554 int32 /* idb_transaction_id */) | 551 int32 /* idb_transaction_id */) |
| OLD | NEW |