| 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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) | 226 IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) |
| 227 | 227 |
| 228 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIDBDatabase, | 228 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIDBDatabase, |
| 229 int32 /* thread_id */, | 229 int32 /* thread_id */, |
| 230 int32 /* response_id */, | 230 int32 /* response_id */, |
| 231 int32 /* idb_database_id */) | 231 int32 /* idb_database_id */) |
| 232 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIndexedDBKey, | 232 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIndexedDBKey, |
| 233 int32 /* thread_id */, | 233 int32 /* thread_id */, |
| 234 int32 /* response_id */, | 234 int32 /* response_id */, |
| 235 content::IndexedDBKey /* indexed_db_key */) | 235 content::IndexedDBKey /* indexed_db_key */) |
| 236 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIDBTransaction, | |
| 237 int32 /* thread_id */, | |
| 238 int32 /* response_id */, | |
| 239 int32 /* idb_transaction_id */) | |
| 240 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessSerializedScriptValue, | 236 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessSerializedScriptValue, |
| 241 int32 /* thread_id */, | 237 int32 /* thread_id */, |
| 242 int32 /* response_id */, | 238 int32 /* response_id */, |
| 243 content::SerializedScriptValue /* value */) | 239 content::SerializedScriptValue /* value */) |
| 244 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessSerializedScriptValueWithKey, | 240 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessSerializedScriptValueWithKey, |
| 245 int32 /* thread_id */, | 241 int32 /* thread_id */, |
| 246 int32 /* response_id */, | 242 int32 /* response_id */, |
| 247 content::SerializedScriptValue /* value */, | 243 content::SerializedScriptValue /* value */, |
| 248 content::IndexedDBKey /* indexed_db_key */, | 244 content::IndexedDBKey /* indexed_db_key */, |
| 249 content::IndexedDBKeyPath /* indexed_db_keypath */) | 245 content::IndexedDBKeyPath /* indexed_db_keypath */) |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 int32, /* object_store_ipc_id */ | 383 int32, /* object_store_ipc_id */ |
| 388 WebKit::WebExceptionCode /* ec */) | 384 WebKit::WebExceptionCode /* ec */) |
| 389 | 385 |
| 390 // WebIDBDatabase::deleteObjectStore() message. | 386 // WebIDBDatabase::deleteObjectStore() message. |
| 391 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_DatabaseDeleteObjectStore, | 387 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_DatabaseDeleteObjectStore, |
| 392 int32, /* idb_database_id */ | 388 int32, /* idb_database_id */ |
| 393 int64, /* object_store_id */ | 389 int64, /* object_store_id */ |
| 394 int32, /* transaction_id */ | 390 int32, /* transaction_id */ |
| 395 WebKit::WebExceptionCode /* ec */) | 391 WebKit::WebExceptionCode /* ec */) |
| 396 | 392 |
| 397 // WebIDBDatabase::setVersion() message. | |
| 398 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_DatabaseSetVersion, | |
| 399 int32, /* idb_database_id */ | |
| 400 int32, /* thread_id */ | |
| 401 int32, /* response_id */ | |
| 402 string16, /* version */ | |
| 403 WebKit::WebExceptionCode /* ec */) | |
| 404 | |
| 405 // WebIDBDatabase::transaction() message. | 393 // WebIDBDatabase::transaction() message. |
| 406 // TODO: make this message async. Have the renderer create a | 394 // TODO: make this message async. Have the renderer create a |
| 407 // temporary ID and keep a map in the browser process of real | 395 // temporary ID and keep a map in the browser process of real |
| 408 // IDs to temporary IDs. We can then update the transaction | 396 // IDs to temporary IDs. We can then update the transaction |
| 409 // to its real ID asynchronously. | 397 // to its real ID asynchronously. |
| 410 // (Or make the key a pair <connection_id, transaction_id>.) | 398 // (Or make the key a pair <connection_id, transaction_id>.) |
| 411 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_DatabaseTransaction, | 399 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_DatabaseTransaction, |
| 412 int32, /* thread_id */ | 400 int32, /* thread_id */ |
| 413 int32, /* idb_database_id */ | 401 int32, /* idb_database_id */ |
| 414 std::vector<int64>, /* object_stores */ | 402 std::vector<int64>, /* object_stores */ |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, | 535 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, |
| 548 int32 /* idb_transaction_id */) | 536 int32 /* idb_transaction_id */) |
| 549 | 537 |
| 550 // IDBTransaction::DidCompleteTaskEvents() message. | 538 // IDBTransaction::DidCompleteTaskEvents() message. |
| 551 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, | 539 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, |
| 552 int32 /* idb_transaction_id */) | 540 int32 /* idb_transaction_id */) |
| 553 | 541 |
| 554 // WebIDBTransaction::~WebIDBTransaction() message. | 542 // WebIDBTransaction::~WebIDBTransaction() message. |
| 555 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, | 543 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, |
| 556 int32 /* idb_transaction_id */) | 544 int32 /* idb_transaction_id */) |
| OLD | NEW |