| 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_range.h" | 11 #include "content/common/indexed_db/indexed_db_key_range.h" |
| 11 #include "content/common/indexed_db/indexed_db_param_traits.h" | 12 #include "content/common/indexed_db/indexed_db_param_traits.h" |
| 12 #include "content/public/common/serialized_script_value.h" | 13 #include "content/public/common/serialized_script_value.h" |
| 13 #include "ipc/ipc_message_macros.h" | 14 #include "ipc/ipc_message_macros.h" |
| 14 #include "ipc/ipc_param_traits.h" | 15 #include "ipc/ipc_param_traits.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h" |
| 17 | 18 |
| 18 #define IPC_MESSAGE_START IndexedDBMsgStart | 19 #define IPC_MESSAGE_START IndexedDBMsgStart |
| 19 | 20 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 50 IPC_STRUCT_MEMBER(string16, origin) | 51 IPC_STRUCT_MEMBER(string16, origin) |
| 51 // The name of the database. | 52 // The name of the database. |
| 52 IPC_STRUCT_MEMBER(string16, name) | 53 IPC_STRUCT_MEMBER(string16, name) |
| 53 IPC_STRUCT_END() | 54 IPC_STRUCT_END() |
| 54 | 55 |
| 55 // Used to create an object store. | 56 // Used to create an object store. |
| 56 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateObjectStore_Params) | 57 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateObjectStore_Params) |
| 57 // The name of the object store. | 58 // The name of the object store. |
| 58 IPC_STRUCT_MEMBER(string16, name) | 59 IPC_STRUCT_MEMBER(string16, name) |
| 59 // The keyPath of the object store. | 60 // The keyPath of the object store. |
| 60 IPC_STRUCT_MEMBER(NullableString16, key_path) | 61 IPC_STRUCT_MEMBER(IndexedDBKeyPath, key_path) |
| 61 // Whether the object store created should have a key generator. | 62 // Whether the object store created should have a key generator. |
| 62 IPC_STRUCT_MEMBER(bool, auto_increment) | 63 IPC_STRUCT_MEMBER(bool, auto_increment) |
| 63 // The transaction this is associated with. | 64 // The transaction this is associated with. |
| 64 IPC_STRUCT_MEMBER(int32, transaction_id) | 65 IPC_STRUCT_MEMBER(int32, transaction_id) |
| 65 // The database the object store belongs to. | 66 // The database the object store belongs to. |
| 66 IPC_STRUCT_MEMBER(int32, idb_database_id) | 67 IPC_STRUCT_MEMBER(int32, idb_database_id) |
| 67 IPC_STRUCT_END() | 68 IPC_STRUCT_END() |
| 68 | 69 |
| 69 // Used to open both cursors and object cursors in IndexedDB. | 70 // Used to open both cursors and object cursors in IndexedDB. |
| 70 IPC_STRUCT_BEGIN(IndexedDBHostMsg_IndexOpenCursor_Params) | 71 IPC_STRUCT_BEGIN(IndexedDBHostMsg_IndexOpenCursor_Params) |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 IPC_STRUCT_MEMBER(WebKit::WebIDBObjectStore::PutMode, put_mode) | 122 IPC_STRUCT_MEMBER(WebKit::WebIDBObjectStore::PutMode, put_mode) |
| 122 // The transaction it's associated with. | 123 // The transaction it's associated with. |
| 123 IPC_STRUCT_MEMBER(int, transaction_id) | 124 IPC_STRUCT_MEMBER(int, transaction_id) |
| 124 IPC_STRUCT_END() | 125 IPC_STRUCT_END() |
| 125 | 126 |
| 126 // Used to create an index. | 127 // Used to create an index. |
| 127 IPC_STRUCT_BEGIN(IndexedDBHostMsg_ObjectStoreCreateIndex_Params) | 128 IPC_STRUCT_BEGIN(IndexedDBHostMsg_ObjectStoreCreateIndex_Params) |
| 128 // The name of the index. | 129 // The name of the index. |
| 129 IPC_STRUCT_MEMBER(string16, name) | 130 IPC_STRUCT_MEMBER(string16, name) |
| 130 // The keyPath of the index. | 131 // The keyPath of the index. |
| 131 IPC_STRUCT_MEMBER(NullableString16, key_path) | 132 IPC_STRUCT_MEMBER(IndexedDBKeyPath, key_path) |
| 132 // Whether the index created has unique keys. | 133 // Whether the index created has unique keys. |
| 133 IPC_STRUCT_MEMBER(bool, unique) | 134 IPC_STRUCT_MEMBER(bool, unique) |
| 134 // Whether the index created produces keys for each array entry. | 135 // Whether the index created produces keys for each array entry. |
| 135 IPC_STRUCT_MEMBER(bool, multi_entry) | 136 IPC_STRUCT_MEMBER(bool, multi_entry) |
| 136 // The transaction this is associated with. | 137 // The transaction this is associated with. |
| 137 IPC_STRUCT_MEMBER(int32, transaction_id) | 138 IPC_STRUCT_MEMBER(int32, transaction_id) |
| 138 // The object store the index belongs to. | 139 // The object store the index belongs to. |
| 139 IPC_STRUCT_MEMBER(int32, idb_object_store_id) | 140 IPC_STRUCT_MEMBER(int32, idb_object_store_id) |
| 140 IPC_STRUCT_END() | 141 IPC_STRUCT_END() |
| 141 | 142 |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 string16 /* name */) | 391 string16 /* name */) |
| 391 | 392 |
| 392 // WebIDBIndex::storeName() message. | 393 // WebIDBIndex::storeName() message. |
| 393 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexStoreName, | 394 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexStoreName, |
| 394 int32, /* idb_index_id */ | 395 int32, /* idb_index_id */ |
| 395 string16 /* store_name */) | 396 string16 /* store_name */) |
| 396 | 397 |
| 397 // WebIDBIndex::keyPath() message. | 398 // WebIDBIndex::keyPath() message. |
| 398 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexKeyPath, | 399 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexKeyPath, |
| 399 int32, /* idb_index_id */ | 400 int32, /* idb_index_id */ |
| 400 NullableString16 /* key_path */) | 401 IndexedDBKeyPath /* key_path */) |
| 401 | 402 |
| 402 // WebIDBIndex::unique() message. | 403 // WebIDBIndex::unique() message. |
| 403 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexUnique, | 404 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexUnique, |
| 404 int32, /* idb_index_id */ | 405 int32, /* idb_index_id */ |
| 405 bool /* unique */) | 406 bool /* unique */) |
| 406 | 407 |
| 407 // WebIDBIndex::multiEntry() message. | 408 // WebIDBIndex::multiEntry() message. |
| 408 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexMultiEntry, | 409 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexMultiEntry, |
| 409 int32, /* idb_index_id */ | 410 int32, /* idb_index_id */ |
| 410 bool /* multi_entry */) | 411 bool /* multi_entry */) |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 465 int32 /* idb_index_id */) | 466 int32 /* idb_index_id */) |
| 466 | 467 |
| 467 // WebIDBObjectStore::name() message. | 468 // WebIDBObjectStore::name() message. |
| 468 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreName, | 469 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreName, |
| 469 int32, /* idb_object_store_id */ | 470 int32, /* idb_object_store_id */ |
| 470 string16 /* name */) | 471 string16 /* name */) |
| 471 | 472 |
| 472 // WebIDBObjectStore::keyPath() message. | 473 // WebIDBObjectStore::keyPath() message. |
| 473 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreKeyPath, | 474 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreKeyPath, |
| 474 int32, /* idb_object_store_id */ | 475 int32, /* idb_object_store_id */ |
| 475 NullableString16 /* keyPath */) | 476 IndexedDBKeyPath /* keyPath */) |
| 476 | 477 |
| 477 // WebIDBObjectStore::indexNames() message. | 478 // WebIDBObjectStore::indexNames() message. |
| 478 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreIndexNames, | 479 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreIndexNames, |
| 479 int32, /* idb_object_store_id */ | 480 int32, /* idb_object_store_id */ |
| 480 std::vector<string16> /* index_names */) | 481 std::vector<string16> /* index_names */) |
| 481 | 482 |
| 482 // WebIDBObjectStore::get() message. | 483 // WebIDBObjectStore::get() message. |
| 483 IPC_SYNC_MESSAGE_CONTROL5_1(IndexedDBHostMsg_ObjectStoreGet, | 484 IPC_SYNC_MESSAGE_CONTROL5_1(IndexedDBHostMsg_ObjectStoreGet, |
| 484 int32, /* idb_object_store_id */ | 485 int32, /* idb_object_store_id */ |
| 485 int32, /* thread_id */ | 486 int32, /* thread_id */ |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, | 583 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, |
| 583 int32 /* idb_transaction_id */) | 584 int32 /* idb_transaction_id */) |
| 584 | 585 |
| 585 // IDBTransaction::DidCompleteTaskEvents() message. | 586 // IDBTransaction::DidCompleteTaskEvents() message. |
| 586 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, | 587 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, |
| 587 int32 /* idb_transaction_id */) | 588 int32 /* idb_transaction_id */) |
| 588 | 589 |
| 589 // WebIDBTransaction::~WebIDBTransaction() message. | 590 // WebIDBTransaction::~WebIDBTransaction() message. |
| 590 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, | 591 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, |
| 591 int32 /* idb_transaction_id */) | 592 int32 /* idb_transaction_id */) |
| OLD | NEW |