OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_key.h" | 9 #include "content/common/indexed_db_key.h" |
10 #include "content/common/indexed_db_param_traits.h" | 10 #include "content/common/indexed_db_param_traits.h" |
11 #include "content/public/common/serialized_script_value.h" | 11 #include "content/public/common/serialized_script_value.h" |
12 #include "ipc/ipc_message_macros.h" | 12 #include "ipc/ipc_message_macros.h" |
13 #include "ipc/ipc_param_traits.h" | 13 #include "ipc/ipc_param_traits.h" |
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebExceptionCode.h" |
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBObjectStore.h" |
16 | 16 |
17 #define IPC_MESSAGE_START IndexedDBMsgStart | 17 #define IPC_MESSAGE_START IndexedDBMsgStart |
18 | 18 |
19 // Argument structures used in messages | 19 // Argument structures used in messages |
20 | 20 |
21 IPC_ENUM_TRAITS(WebKit::WebIDBObjectStore::PutMode) | 21 IPC_ENUM_TRAITS(WebKit::WebIDBObjectStore::PutMode) |
22 | 22 |
23 // Used to enumerate indexed databases. | 23 // Used to enumerate indexed databases. |
24 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryGetDatabaseNames_Params) | 24 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryGetDatabaseNames_Params) |
25 // The routing ID of the view initiating the open. | |
26 IPC_STRUCT_MEMBER(int32, routing_id) | |
27 // The response should have this id. | 25 // The response should have this id. |
28 IPC_STRUCT_MEMBER(int32, response_id) | 26 IPC_STRUCT_MEMBER(int32, response_id) |
29 // The origin doing the initiating. | 27 // The origin doing the initiating. |
30 IPC_STRUCT_MEMBER(string16, origin) | 28 IPC_STRUCT_MEMBER(string16, origin) |
31 IPC_STRUCT_END() | 29 IPC_STRUCT_END() |
32 | 30 |
33 // Used to open an indexed database. | 31 // Used to open an indexed database. |
34 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryOpen_Params) | 32 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryOpen_Params) |
35 // The routing ID of the view initiating the open. | |
36 IPC_STRUCT_MEMBER(int32, routing_id) | |
37 // The response should have this id. | 33 // The response should have this id. |
38 IPC_STRUCT_MEMBER(int32, response_id) | 34 IPC_STRUCT_MEMBER(int32, response_id) |
39 // The origin doing the initiating. | 35 // The origin doing the initiating. |
40 IPC_STRUCT_MEMBER(string16, origin) | 36 IPC_STRUCT_MEMBER(string16, origin) |
41 // The name of the database. | 37 // The name of the database. |
42 IPC_STRUCT_MEMBER(string16, name) | 38 IPC_STRUCT_MEMBER(string16, name) |
43 IPC_STRUCT_END() | 39 IPC_STRUCT_END() |
44 | 40 |
45 // Used to delete an indexed database. | 41 // Used to delete an indexed database. |
46 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryDeleteDatabase_Params) | 42 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryDeleteDatabase_Params) |
47 // The routing ID of the view initiating the deletion. | |
48 IPC_STRUCT_MEMBER(int32, routing_id) | |
49 // The response should have this id. | 43 // The response should have this id. |
50 IPC_STRUCT_MEMBER(int32, response_id) | 44 IPC_STRUCT_MEMBER(int32, response_id) |
51 // The origin doing the initiating. | 45 // The origin doing the initiating. |
52 IPC_STRUCT_MEMBER(string16, origin) | 46 IPC_STRUCT_MEMBER(string16, origin) |
53 // The name of the database. | 47 // The name of the database. |
54 IPC_STRUCT_MEMBER(string16, name) | 48 IPC_STRUCT_MEMBER(string16, name) |
55 IPC_STRUCT_END() | 49 IPC_STRUCT_END() |
56 | 50 |
57 // Used to create an object store. | 51 // Used to create an object store. |
58 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateObjectStore_Params) | 52 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateObjectStore_Params) |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, | 420 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, |
427 int32 /* idb_transaction_id */) | 421 int32 /* idb_transaction_id */) |
428 | 422 |
429 // IDBTransaction::DidCompleteTaskEvents() message. | 423 // IDBTransaction::DidCompleteTaskEvents() message. |
430 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, | 424 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, |
431 int32 /* idb_transaction_id */) | 425 int32 /* idb_transaction_id */) |
432 | 426 |
433 // WebIDBTransaction::~WebIDBTransaction() message. | 427 // WebIDBTransaction::~WebIDBTransaction() message. |
434 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, | 428 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, |
435 int32 /* idb_transaction_id */) | 429 int32 /* idb_transaction_id */) |
OLD | NEW |