| 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 string16 /* name */) | 402 string16 /* name */) |
| 402 | 403 |
| 403 // WebIDBIndex::storeName() message. | 404 // WebIDBIndex::storeName() message. |
| 404 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexStoreName, | 405 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexStoreName, |
| 405 int32, /* idb_index_id */ | 406 int32, /* idb_index_id */ |
| 406 string16 /* store_name */) | 407 string16 /* store_name */) |
| 407 | 408 |
| 408 // WebIDBIndex::keyPath() message. | 409 // WebIDBIndex::keyPath() message. |
| 409 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexKeyPath, | 410 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexKeyPath, |
| 410 int32, /* idb_index_id */ | 411 int32, /* idb_index_id */ |
| 411 NullableString16 /* key_path */) | 412 IndexedDBKeyPath /* key_path */) |
| 412 | 413 |
| 413 // WebIDBIndex::unique() message. | 414 // WebIDBIndex::unique() message. |
| 414 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexUnique, | 415 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexUnique, |
| 415 int32, /* idb_index_id */ | 416 int32, /* idb_index_id */ |
| 416 bool /* unique */) | 417 bool /* unique */) |
| 417 | 418 |
| 418 // WebIDBIndex::multiEntry() message. | 419 // WebIDBIndex::multiEntry() message. |
| 419 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexMultiEntry, | 420 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexMultiEntry, |
| 420 int32, /* idb_index_id */ | 421 int32, /* idb_index_id */ |
| 421 bool /* multi_entry */) | 422 bool /* multi_entry */) |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 int32 /* idb_index_id */) | 459 int32 /* idb_index_id */) |
| 459 | 460 |
| 460 // WebIDBObjectStore::name() message. | 461 // WebIDBObjectStore::name() message. |
| 461 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreName, | 462 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreName, |
| 462 int32, /* idb_object_store_id */ | 463 int32, /* idb_object_store_id */ |
| 463 string16 /* name */) | 464 string16 /* name */) |
| 464 | 465 |
| 465 // WebIDBObjectStore::keyPath() message. | 466 // WebIDBObjectStore::keyPath() message. |
| 466 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreKeyPath, | 467 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreKeyPath, |
| 467 int32, /* idb_object_store_id */ | 468 int32, /* idb_object_store_id */ |
| 468 NullableString16 /* keyPath */) | 469 IndexedDBKeyPath /* keyPath */) |
| 469 | 470 |
| 470 // WebIDBObjectStore::indexNames() message. | 471 // WebIDBObjectStore::indexNames() message. |
| 471 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreIndexNames, | 472 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreIndexNames, |
| 472 int32, /* idb_object_store_id */ | 473 int32, /* idb_object_store_id */ |
| 473 std::vector<string16> /* index_names */) | 474 std::vector<string16> /* index_names */) |
| 474 | 475 |
| 475 // WebIDBObjectStore::get() message. | 476 // WebIDBObjectStore::get() message. |
| 476 IPC_SYNC_MESSAGE_CONTROL5_1(IndexedDBHostMsg_ObjectStoreGet, | 477 IPC_SYNC_MESSAGE_CONTROL5_1(IndexedDBHostMsg_ObjectStoreGet, |
| 477 int32, /* idb_object_store_id */ | 478 int32, /* idb_object_store_id */ |
| 478 int32, /* thread_id */ | 479 int32, /* thread_id */ |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, | 567 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, |
| 567 int32 /* idb_transaction_id */) | 568 int32 /* idb_transaction_id */) |
| 568 | 569 |
| 569 // IDBTransaction::DidCompleteTaskEvents() message. | 570 // IDBTransaction::DidCompleteTaskEvents() message. |
| 570 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, | 571 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, |
| 571 int32 /* idb_transaction_id */) | 572 int32 /* idb_transaction_id */) |
| 572 | 573 |
| 573 // WebIDBTransaction::~WebIDBTransaction() message. | 574 // WebIDBTransaction::~WebIDBTransaction() message. |
| 574 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, | 575 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, |
| 575 int32 /* idb_transaction_id */) | 576 int32 /* idb_transaction_id */) |
| OLD | NEW |