| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorDelete, | 322 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorDelete, |
| 320 int32, /* idb_cursor_id */ | 323 int32, /* idb_cursor_id */ |
| 321 int32, /* thread_id */ | 324 int32, /* thread_id */ |
| 322 int32, /* response_id */ | 325 int32, /* response_id */ |
| 323 WebKit::WebExceptionCode /* ec */) | 326 WebKit::WebExceptionCode /* ec */) |
| 324 | 327 |
| 325 // WebIDBFactory::getDatabaseNames() message. | 328 // WebIDBFactory::getDatabaseNames() message. |
| 326 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryGetDatabaseNames, | 329 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryGetDatabaseNames, |
| 327 IndexedDBHostMsg_FactoryGetDatabaseNames_Params) | 330 IndexedDBHostMsg_FactoryGetDatabaseNames_Params) |
| 328 | 331 |
| 332 // TODO(jsbell): Remove this once WK90411 rolls. |
| 333 // WebIDBFactory::open() message. |
| 334 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryOpenLegacy, |
| 335 IndexedDBHostMsg_FactoryOpen_Params) |
| 329 // WebIDBFactory::open() message. | 336 // WebIDBFactory::open() message. |
| 330 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryOpen, | 337 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryOpen, |
| 331 IndexedDBHostMsg_FactoryOpen_Params) | 338 IndexedDBHostMsg_FactoryOpen_Params) |
| 332 | 339 |
| 333 // WebIDBFactory::deleteDatabase() message. | 340 // WebIDBFactory::deleteDatabase() message. |
| 334 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryDeleteDatabase, | 341 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryDeleteDatabase, |
| 335 IndexedDBHostMsg_FactoryDeleteDatabase_Params) | 342 IndexedDBHostMsg_FactoryDeleteDatabase_Params) |
| 336 | 343 |
| 337 // WebIDBDatabase::metadata() payload | 344 // WebIDBDatabase::metadata() payload |
| 338 IPC_STRUCT_BEGIN(IndexedDBIndexMetadata) | 345 IPC_STRUCT_BEGIN(IndexedDBIndexMetadata) |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 // IDs to temporary IDs. We can then update the transaction | 395 // IDs to temporary IDs. We can then update the transaction |
| 389 // to its real ID asynchronously. | 396 // to its real ID asynchronously. |
| 390 IPC_SYNC_MESSAGE_CONTROL4_2(IndexedDBHostMsg_DatabaseTransaction, | 397 IPC_SYNC_MESSAGE_CONTROL4_2(IndexedDBHostMsg_DatabaseTransaction, |
| 391 int32, /* thread_id */ | 398 int32, /* thread_id */ |
| 392 int32, /* idb_database_id */ | 399 int32, /* idb_database_id */ |
| 393 std::vector<string16>, /* object_stores */ | 400 std::vector<string16>, /* object_stores */ |
| 394 int32, /* mode */ | 401 int32, /* mode */ |
| 395 int32, /* idb_transaction_id */ | 402 int32, /* idb_transaction_id */ |
| 396 WebKit::WebExceptionCode /* ec */) | 403 WebKit::WebExceptionCode /* ec */) |
| 397 | 404 |
| 405 // TODO(jsbell): Remove once WK90411 has rolled. |
| 398 // WebIDBDatabase::open() message. | 406 // WebIDBDatabase::open() message. |
| 399 IPC_MESSAGE_CONTROL3(IndexedDBHostMsg_DatabaseOpen, | 407 IPC_MESSAGE_CONTROL3(IndexedDBHostMsg_DatabaseOpen, |
| 400 int32, /* idb_database_id */ | 408 int32, /* idb_database_id */ |
| 401 int32 /* thread_id */, | 409 int32 /* thread_id */, |
| 402 int32 /* response_id */) | 410 int32 /* response_id */) |
| 403 | 411 |
| 404 // WebIDBDatabase::close() message. | 412 // WebIDBDatabase::close() message. |
| 405 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseClose, | 413 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseClose, |
| 406 int32 /* idb_database_id */) | 414 int32 /* idb_database_id */) |
| 407 | 415 |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, | 553 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, |
| 546 int32 /* idb_transaction_id */) | 554 int32 /* idb_transaction_id */) |
| 547 | 555 |
| 548 // IDBTransaction::DidCompleteTaskEvents() message. | 556 // IDBTransaction::DidCompleteTaskEvents() message. |
| 549 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, | 557 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, |
| 550 int32 /* idb_transaction_id */) | 558 int32 /* idb_transaction_id */) |
| 551 | 559 |
| 552 // WebIDBTransaction::~WebIDBTransaction() message. | 560 // WebIDBTransaction::~WebIDBTransaction() message. |
| 553 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, | 561 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, |
| 554 int32 /* idb_transaction_id */) | 562 int32 /* idb_transaction_id */) |
| OLD | NEW |