| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 106   IPC_STRUCT_MEMBER(int64, object_store_id) | 106   IPC_STRUCT_MEMBER(int64, object_store_id) | 
| 107   // The index's id. | 107   // The index's id. | 
| 108   IPC_STRUCT_MEMBER(int64, index_id) | 108   IPC_STRUCT_MEMBER(int64, index_id) | 
| 109   // The serialized key range. | 109   // The serialized key range. | 
| 110   IPC_STRUCT_MEMBER(content::IndexedDBKeyRange, key_range) | 110   IPC_STRUCT_MEMBER(content::IndexedDBKeyRange, key_range) | 
| 111   // If this is just retrieving the key | 111   // If this is just retrieving the key | 
| 112   IPC_STRUCT_MEMBER(bool, key_only) | 112   IPC_STRUCT_MEMBER(bool, key_only) | 
| 113 IPC_STRUCT_END() | 113 IPC_STRUCT_END() | 
| 114 | 114 | 
| 115 // Used to set a value in an object store. | 115 // Used to set a value in an object store. | 
| 116 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabasePut_Params) | 116 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabasePutOld_Params) | 
| 117   // The id any response should contain. | 117   // The id any response should contain. | 
| 118   IPC_STRUCT_MEMBER(int32, ipc_thread_id) | 118   IPC_STRUCT_MEMBER(int32, ipc_thread_id) | 
| 119   IPC_STRUCT_MEMBER(int32, ipc_response_id) | 119   IPC_STRUCT_MEMBER(int32, ipc_response_id) | 
| 120   // The database the object store belongs to. | 120   // The database the object store belongs to. | 
| 121   IPC_STRUCT_MEMBER(int32, ipc_database_id) | 121   IPC_STRUCT_MEMBER(int32, ipc_database_id) | 
| 122   // The transaction it's associated with. | 122   // The transaction it's associated with. | 
| 123   IPC_STRUCT_MEMBER(int64, transaction_id) | 123   IPC_STRUCT_MEMBER(int64, transaction_id) | 
| 124   // The object store's id. | 124   // The object store's id. | 
| 125   IPC_STRUCT_MEMBER(int64, object_store_id) | 125   IPC_STRUCT_MEMBER(int64, object_store_id) | 
| 126   // The index's id. | 126   // The index's id. | 
| 127   IPC_STRUCT_MEMBER(int64, index_id) | 127   IPC_STRUCT_MEMBER(int64, index_id) | 
| 128   // The value to set. | 128   // The value to set. | 
| 129   IPC_STRUCT_MEMBER(std::vector<uint8>, value) | 129   IPC_STRUCT_MEMBER(std::vector<uint8>, value) | 
| 130   // The key to set it on (may not be "valid"/set in some cases). | 130   // The key to set it on (may not be "valid"/set in some cases). | 
| 131   IPC_STRUCT_MEMBER(content::IndexedDBKey, key) | 131   IPC_STRUCT_MEMBER(content::IndexedDBKey, key) | 
| 132   // Whether this is an add or a put. | 132   // Whether this is an add or a put. | 
| 133   IPC_STRUCT_MEMBER(WebKit::WebIDBDatabase::PutMode, put_mode) | 133   IPC_STRUCT_MEMBER(WebKit::WebIDBDatabase::PutMode, put_mode) | 
| 134   // The names of the indexes used below. | 134   // The names of the indexes used below. | 
| 135   IPC_STRUCT_MEMBER(std::vector<int64>, index_ids) | 135   IPC_STRUCT_MEMBER(std::vector<int64>, index_ids) | 
| 136   // The keys for each index, such that each inner vector corresponds | 136   // The keys for each index, such that each inner vector corresponds | 
| 137   // to each index named in index_names, respectively. | 137   // to each index named in index_names, respectively. | 
| 138   IPC_STRUCT_MEMBER(std::vector<std::vector<content::IndexedDBKey> >, | 138   IPC_STRUCT_MEMBER(std::vector<std::vector<content::IndexedDBKey> >, | 
| 139                     index_keys) | 139                     index_keys) | 
| 140 IPC_STRUCT_END() | 140 IPC_STRUCT_END() | 
| 141 | 141 | 
|  | 142 // Used to set a value in an object store. | 
|  | 143 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabasePut_Params) | 
|  | 144   // The id any response should contain. | 
|  | 145   IPC_STRUCT_MEMBER(int32, ipc_thread_id) | 
|  | 146   IPC_STRUCT_MEMBER(int32, ipc_response_id) | 
|  | 147   // The database the object store belongs to. | 
|  | 148   IPC_STRUCT_MEMBER(int32, ipc_database_id) | 
|  | 149   // The transaction it's associated with. | 
|  | 150   IPC_STRUCT_MEMBER(int64, transaction_id) | 
|  | 151   // The object store's id. | 
|  | 152   IPC_STRUCT_MEMBER(int64, object_store_id) | 
|  | 153   // The index's id. | 
|  | 154   IPC_STRUCT_MEMBER(int64, index_id) | 
|  | 155   // The value to set. | 
|  | 156   IPC_STRUCT_MEMBER(std::vector<char>, value) | 
|  | 157   // The key to set it on (may not be "valid"/set in some cases). | 
|  | 158   IPC_STRUCT_MEMBER(content::IndexedDBKey, key) | 
|  | 159   // Whether this is an add or a put. | 
|  | 160   IPC_STRUCT_MEMBER(WebKit::WebIDBDatabase::PutMode, put_mode) | 
|  | 161   // The names of the indexes used below. | 
|  | 162   IPC_STRUCT_MEMBER(std::vector<int64>, index_ids) | 
|  | 163   // The keys for each index, such that each inner vector corresponds | 
|  | 164   // to each index named in index_names, respectively. | 
|  | 165   IPC_STRUCT_MEMBER(std::vector<std::vector<content::IndexedDBKey> >, | 
|  | 166                     index_keys) | 
|  | 167 IPC_STRUCT_END() | 
|  | 168 | 
| 142 // Used to open both cursors and object cursors in IndexedDB. | 169 // Used to open both cursors and object cursors in IndexedDB. | 
| 143 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseOpenCursor_Params) | 170 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseOpenCursor_Params) | 
| 144   // The response should have these ids. | 171   // The response should have these ids. | 
| 145   IPC_STRUCT_MEMBER(int32, ipc_thread_id) | 172   IPC_STRUCT_MEMBER(int32, ipc_thread_id) | 
| 146   IPC_STRUCT_MEMBER(int32, ipc_response_id) | 173   IPC_STRUCT_MEMBER(int32, ipc_response_id) | 
| 147   // The database the object store belongs to. | 174   // The database the object store belongs to. | 
| 148   IPC_STRUCT_MEMBER(int32, ipc_database_id) | 175   IPC_STRUCT_MEMBER(int32, ipc_database_id) | 
| 149   // The transaction this request belongs to. | 176   // The transaction this request belongs to. | 
| 150   IPC_STRUCT_MEMBER(int64, transaction_id) | 177   IPC_STRUCT_MEMBER(int64, transaction_id) | 
| 151   // The object store. | 178   // The object store. | 
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 443 | 470 | 
| 444 // WebIDBDatabase::~WebIDBDatabase() message. | 471 // WebIDBDatabase::~WebIDBDatabase() message. | 
| 445 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseDestroyed, | 472 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseDestroyed, | 
| 446                      int32 /* ipc_database_id */) | 473                      int32 /* ipc_database_id */) | 
| 447 | 474 | 
| 448 // WebIDBDatabase::get() message. | 475 // WebIDBDatabase::get() message. | 
| 449 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseGet, | 476 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseGet, | 
| 450                      IndexedDBHostMsg_DatabaseGet_Params) | 477                      IndexedDBHostMsg_DatabaseGet_Params) | 
| 451 | 478 | 
| 452 // WebIDBDatabase::put() message. | 479 // WebIDBDatabase::put() message. | 
|  | 480 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabasePutOld, | 
|  | 481                      IndexedDBHostMsg_DatabasePutOld_Params) | 
|  | 482 | 
|  | 483 // WebIDBDatabase::put() message. | 
| 453 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabasePut, | 484 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabasePut, | 
| 454                      IndexedDBHostMsg_DatabasePut_Params) | 485                      IndexedDBHostMsg_DatabasePut_Params) | 
| 455 | 486 | 
| 456 // WebIDBDatabase::setIndexKeys() message. | 487 // WebIDBDatabase::setIndexKeys() message. | 
| 457 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseSetIndexKeys, | 488 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseSetIndexKeys, | 
| 458                      IndexedDBHostMsg_DatabaseSetIndexKeys_Params) | 489                      IndexedDBHostMsg_DatabaseSetIndexKeys_Params) | 
| 459 | 490 | 
| 460 // WebIDBDatabase::setIndexesReady() message. | 491 // WebIDBDatabase::setIndexesReady() message. | 
| 461 IPC_MESSAGE_CONTROL4(IndexedDBHostMsg_DatabaseSetIndexesReady, | 492 IPC_MESSAGE_CONTROL4(IndexedDBHostMsg_DatabaseSetIndexesReady, | 
| 462                      int32, /* ipc_database_id */ | 493                      int32, /* ipc_database_id */ | 
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 502 | 533 | 
| 503 // WebIDBDatabase::commit() message. | 534 // WebIDBDatabase::commit() message. | 
| 504 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit, | 535 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit, | 
| 505                      int32, /* ipc_database_id */ | 536                      int32, /* ipc_database_id */ | 
| 506                      int64) /* transaction_id */ | 537                      int64) /* transaction_id */ | 
| 507 | 538 | 
| 508 // WebIDBDatabase::~WebIDBCursor() message. | 539 // WebIDBDatabase::~WebIDBCursor() message. | 
| 509 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, | 540 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, | 
| 510                      int32 /* ipc_cursor_id */) | 541                      int32 /* ipc_cursor_id */) | 
| 511 | 542 | 
| OLD | NEW | 
|---|