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" |
11 #include "content/common/indexed_db/indexed_db_key_range.h" | 11 #include "content/common/indexed_db/indexed_db_key_range.h" |
12 #include "content/common/indexed_db/indexed_db_param_traits.h" | 12 #include "content/common/indexed_db/indexed_db_param_traits.h" |
13 #include "content/public/common/serialized_script_value.h" | 13 #include "content/public/common/serialized_script_value.h" |
| 14 #include "content/public/common/webkit_param_traits.h" |
14 #include "ipc/ipc_message_macros.h" | 15 #include "ipc/ipc_message_macros.h" |
15 #include "ipc/ipc_param_traits.h" | 16 #include "ipc/ipc_param_traits.h" |
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h" |
| 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBMetadata.h" |
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h" |
18 | 20 |
19 #define IPC_MESSAGE_START IndexedDBMsgStart | 21 #define IPC_MESSAGE_START IndexedDBMsgStart |
20 | 22 |
21 // Argument structures used in messages | 23 // Argument structures used in messages |
22 | 24 |
23 IPC_ENUM_TRAITS(WebKit::WebIDBObjectStore::PutMode) | 25 IPC_ENUM_TRAITS(WebKit::WebIDBObjectStore::PutMode) |
24 | 26 |
25 // Used to enumerate indexed databases. | 27 // Used to enumerate indexed databases. |
26 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryGetDatabaseNames_Params) | 28 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryGetDatabaseNames_Params) |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 IndexedDBHostMsg_FactoryGetDatabaseNames_Params) | 304 IndexedDBHostMsg_FactoryGetDatabaseNames_Params) |
303 | 305 |
304 // WebIDBFactory::open() message. | 306 // WebIDBFactory::open() message. |
305 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryOpen, | 307 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryOpen, |
306 IndexedDBHostMsg_FactoryOpen_Params) | 308 IndexedDBHostMsg_FactoryOpen_Params) |
307 | 309 |
308 // WebIDBFactory::deleteDatabase() message. | 310 // WebIDBFactory::deleteDatabase() message. |
309 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryDeleteDatabase, | 311 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryDeleteDatabase, |
310 IndexedDBHostMsg_FactoryDeleteDatabase_Params) | 312 IndexedDBHostMsg_FactoryDeleteDatabase_Params) |
311 | 313 |
| 314 // WebIDBDatabase::metadata() payload |
| 315 IPC_STRUCT_BEGIN(IndexedDBIndexMetadata) |
| 316 IPC_STRUCT_MEMBER(string16, name) |
| 317 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, keyPath) |
| 318 IPC_STRUCT_MEMBER(bool, unique) |
| 319 IPC_STRUCT_MEMBER(bool, multiEntry) |
| 320 IPC_STRUCT_END() |
| 321 |
| 322 IPC_STRUCT_BEGIN(IndexedDBObjectStoreMetadata) |
| 323 IPC_STRUCT_MEMBER(string16, name) |
| 324 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, keyPath) |
| 325 IPC_STRUCT_MEMBER(bool, autoIncrement) |
| 326 IPC_STRUCT_MEMBER(std::vector<IndexedDBIndexMetadata>, indexes) |
| 327 IPC_STRUCT_END() |
| 328 |
| 329 IPC_STRUCT_BEGIN(IndexedDBDatabaseMetadata) |
| 330 IPC_STRUCT_MEMBER(string16, name) |
| 331 IPC_STRUCT_MEMBER(string16, version) |
| 332 IPC_STRUCT_MEMBER(std::vector<IndexedDBObjectStoreMetadata>, object_stores) |
| 333 IPC_STRUCT_END() |
| 334 |
| 335 // WebIDBDatabase::metadata() message. |
| 336 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_DatabaseMetadata, |
| 337 int32, /* idb_database_id */ |
| 338 IndexedDBDatabaseMetadata /* metadata */) |
| 339 |
312 // WebIDBDatabase::name() message. | 340 // WebIDBDatabase::name() message. |
313 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_DatabaseName, | 341 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_DatabaseName, |
314 int32, /* idb_database_id */ | 342 int32, /* idb_database_id */ |
315 string16 /* name */) | 343 string16 /* name */) |
316 | 344 |
317 // WebIDBDatabase::version() message. | 345 // WebIDBDatabase::version() message. |
318 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_DatabaseVersion, | 346 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_DatabaseVersion, |
319 int32, /* idb_database_id */ | 347 int32, /* idb_database_id */ |
320 string16 /* version */) | 348 string16 /* version */) |
321 | 349 |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
543 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, | 571 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, |
544 int32 /* idb_transaction_id */) | 572 int32 /* idb_transaction_id */) |
545 | 573 |
546 // IDBTransaction::DidCompleteTaskEvents() message. | 574 // IDBTransaction::DidCompleteTaskEvents() message. |
547 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, | 575 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, |
548 int32 /* idb_transaction_id */) | 576 int32 /* idb_transaction_id */) |
549 | 577 |
550 // WebIDBTransaction::~WebIDBTransaction() message. | 578 // WebIDBTransaction::~WebIDBTransaction() message. |
551 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, | 579 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, |
552 int32 /* idb_transaction_id */) | 580 int32 /* idb_transaction_id */) |
OLD | NEW |