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 response should have this id. | 25 // The response should have this id. |
michaeln
2011/12/14 02:15:53
misplaced comment?
dgrogan
2011/12/15 02:47:44
Updated.
| |
26 IPC_STRUCT_MEMBER(int32, thread_id) | |
26 IPC_STRUCT_MEMBER(int32, response_id) | 27 IPC_STRUCT_MEMBER(int32, response_id) |
27 // The origin doing the initiating. | 28 // The origin doing the initiating. |
28 IPC_STRUCT_MEMBER(string16, origin) | 29 IPC_STRUCT_MEMBER(string16, origin) |
29 IPC_STRUCT_END() | 30 IPC_STRUCT_END() |
30 | 31 |
31 // Used to open an indexed database. | 32 // Used to open an indexed database. |
32 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryOpen_Params) | 33 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryOpen_Params) |
33 // The response should have this id. | 34 // The response should have this id. |
35 IPC_STRUCT_MEMBER(int32, thread_id) | |
34 IPC_STRUCT_MEMBER(int32, response_id) | 36 IPC_STRUCT_MEMBER(int32, response_id) |
35 // The origin doing the initiating. | 37 // The origin doing the initiating. |
36 IPC_STRUCT_MEMBER(string16, origin) | 38 IPC_STRUCT_MEMBER(string16, origin) |
37 // The name of the database. | 39 // The name of the database. |
38 IPC_STRUCT_MEMBER(string16, name) | 40 IPC_STRUCT_MEMBER(string16, name) |
39 IPC_STRUCT_END() | 41 IPC_STRUCT_END() |
40 | 42 |
41 // Used to delete an indexed database. | 43 // Used to delete an indexed database. |
42 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryDeleteDatabase_Params) | 44 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryDeleteDatabase_Params) |
43 // The response should have this id. | 45 // The response should have this id. |
46 IPC_STRUCT_MEMBER(int32, thread_id) | |
44 IPC_STRUCT_MEMBER(int32, response_id) | 47 IPC_STRUCT_MEMBER(int32, response_id) |
45 // The origin doing the initiating. | 48 // The origin doing the initiating. |
46 IPC_STRUCT_MEMBER(string16, origin) | 49 IPC_STRUCT_MEMBER(string16, origin) |
47 // The name of the database. | 50 // The name of the database. |
48 IPC_STRUCT_MEMBER(string16, name) | 51 IPC_STRUCT_MEMBER(string16, name) |
49 IPC_STRUCT_END() | 52 IPC_STRUCT_END() |
50 | 53 |
51 // Used to create an object store. | 54 // Used to create an object store. |
52 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateObjectStore_Params) | 55 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateObjectStore_Params) |
53 // The name of the object store. | 56 // The name of the object store. |
54 IPC_STRUCT_MEMBER(string16, name) | 57 IPC_STRUCT_MEMBER(string16, name) |
55 // The keyPath of the object store. | 58 // The keyPath of the object store. |
56 IPC_STRUCT_MEMBER(NullableString16, key_path) | 59 IPC_STRUCT_MEMBER(NullableString16, key_path) |
57 // Whether the object store created should have a key generator. | 60 // Whether the object store created should have a key generator. |
58 IPC_STRUCT_MEMBER(bool, auto_increment) | 61 IPC_STRUCT_MEMBER(bool, auto_increment) |
59 // The transaction this is associated with. | 62 // The transaction this is associated with. |
60 IPC_STRUCT_MEMBER(int32, transaction_id) | 63 IPC_STRUCT_MEMBER(int32, transaction_id) |
61 // The database the object store belongs to. | 64 // The database the object store belongs to. |
62 IPC_STRUCT_MEMBER(int32, idb_database_id) | 65 IPC_STRUCT_MEMBER(int32, idb_database_id) |
63 IPC_STRUCT_END() | 66 IPC_STRUCT_END() |
64 | 67 |
65 // Used to open both cursors and object cursors in IndexedDB. | 68 // Used to open both cursors and object cursors in IndexedDB. |
66 IPC_STRUCT_BEGIN(IndexedDBHostMsg_IndexOpenCursor_Params) | 69 IPC_STRUCT_BEGIN(IndexedDBHostMsg_IndexOpenCursor_Params) |
67 // The response should have this id. | 70 // The response should have this id. |
71 IPC_STRUCT_MEMBER(int32, thread_id) | |
68 IPC_STRUCT_MEMBER(int32, response_id) | 72 IPC_STRUCT_MEMBER(int32, response_id) |
69 // The serialized lower key. | 73 // The serialized lower key. |
70 IPC_STRUCT_MEMBER(IndexedDBKey, lower_key) | 74 IPC_STRUCT_MEMBER(IndexedDBKey, lower_key) |
71 // The serialized upper key. | 75 // The serialized upper key. |
72 IPC_STRUCT_MEMBER(IndexedDBKey, upper_key) | 76 IPC_STRUCT_MEMBER(IndexedDBKey, upper_key) |
73 // Is the lower bound open? | 77 // Is the lower bound open? |
74 IPC_STRUCT_MEMBER(bool, lower_open) | 78 IPC_STRUCT_MEMBER(bool, lower_open) |
75 // Is the upper bound open? | 79 // Is the upper bound open? |
76 IPC_STRUCT_MEMBER(bool, upper_open) | 80 IPC_STRUCT_MEMBER(bool, upper_open) |
77 // The direction of this cursor. | 81 // The direction of this cursor. |
78 IPC_STRUCT_MEMBER(int32, direction) | 82 IPC_STRUCT_MEMBER(int32, direction) |
79 // The index the index belongs to. | 83 // The index the index belongs to. |
80 IPC_STRUCT_MEMBER(int32, idb_index_id) | 84 IPC_STRUCT_MEMBER(int32, idb_index_id) |
81 // The transaction this request belongs to. | 85 // The transaction this request belongs to. |
82 IPC_STRUCT_MEMBER(int, transaction_id) | 86 IPC_STRUCT_MEMBER(int, transaction_id) |
83 IPC_STRUCT_END() | 87 IPC_STRUCT_END() |
84 | 88 |
85 // Used to set a value in an object store. | 89 // Used to set a value in an object store. |
86 IPC_STRUCT_BEGIN(IndexedDBHostMsg_ObjectStorePut_Params) | 90 IPC_STRUCT_BEGIN(IndexedDBHostMsg_ObjectStorePut_Params) |
87 // The object store's id. | 91 // The object store's id. |
88 IPC_STRUCT_MEMBER(int32, idb_object_store_id) | 92 IPC_STRUCT_MEMBER(int32, idb_object_store_id) |
89 // The id any response should contain. | 93 // The id any response should contain. |
94 IPC_STRUCT_MEMBER(int32, thread_id) | |
90 IPC_STRUCT_MEMBER(int32, response_id) | 95 IPC_STRUCT_MEMBER(int32, response_id) |
91 // The value to set. | 96 // The value to set. |
92 IPC_STRUCT_MEMBER(content::SerializedScriptValue, serialized_value) | 97 IPC_STRUCT_MEMBER(content::SerializedScriptValue, serialized_value) |
93 // The key to set it on (may not be "valid"/set in some cases). | 98 // The key to set it on (may not be "valid"/set in some cases). |
94 IPC_STRUCT_MEMBER(IndexedDBKey, key) | 99 IPC_STRUCT_MEMBER(IndexedDBKey, key) |
95 // Whether this is an add or a put. | 100 // Whether this is an add or a put. |
96 IPC_STRUCT_MEMBER(WebKit::WebIDBObjectStore::PutMode, put_mode) | 101 IPC_STRUCT_MEMBER(WebKit::WebIDBObjectStore::PutMode, put_mode) |
97 // The transaction it's associated with. | 102 // The transaction it's associated with. |
98 IPC_STRUCT_MEMBER(int, transaction_id) | 103 IPC_STRUCT_MEMBER(int, transaction_id) |
99 IPC_STRUCT_END() | 104 IPC_STRUCT_END() |
(...skipping 10 matching lines...) Expand all Loading... | |
110 IPC_STRUCT_MEMBER(bool, multi_entry) | 115 IPC_STRUCT_MEMBER(bool, multi_entry) |
111 // The transaction this is associated with. | 116 // The transaction this is associated with. |
112 IPC_STRUCT_MEMBER(int32, transaction_id) | 117 IPC_STRUCT_MEMBER(int32, transaction_id) |
113 // The object store the index belongs to. | 118 // The object store the index belongs to. |
114 IPC_STRUCT_MEMBER(int32, idb_object_store_id) | 119 IPC_STRUCT_MEMBER(int32, idb_object_store_id) |
115 IPC_STRUCT_END() | 120 IPC_STRUCT_END() |
116 | 121 |
117 // Used to open an IndexedDB cursor. | 122 // Used to open an IndexedDB cursor. |
118 IPC_STRUCT_BEGIN(IndexedDBHostMsg_ObjectStoreOpenCursor_Params) | 123 IPC_STRUCT_BEGIN(IndexedDBHostMsg_ObjectStoreOpenCursor_Params) |
119 // The response should have this id. | 124 // The response should have this id. |
125 IPC_STRUCT_MEMBER(int32, thread_id) | |
120 IPC_STRUCT_MEMBER(int32, response_id) | 126 IPC_STRUCT_MEMBER(int32, response_id) |
121 // The serialized lower key. | 127 // The serialized lower key. |
122 IPC_STRUCT_MEMBER(IndexedDBKey, lower_key) | 128 IPC_STRUCT_MEMBER(IndexedDBKey, lower_key) |
123 // The serialized upper key. | 129 // The serialized upper key. |
124 IPC_STRUCT_MEMBER(IndexedDBKey, upper_key) | 130 IPC_STRUCT_MEMBER(IndexedDBKey, upper_key) |
125 // Is the lower bound open? | 131 // Is the lower bound open? |
126 IPC_STRUCT_MEMBER(bool, lower_open) | 132 IPC_STRUCT_MEMBER(bool, lower_open) |
127 // Is the upper bound open? | 133 // Is the upper bound open? |
128 IPC_STRUCT_MEMBER(bool, upper_open) | 134 IPC_STRUCT_MEMBER(bool, upper_open) |
129 // The direction of this cursor. | 135 // The direction of this cursor. |
130 IPC_STRUCT_MEMBER(int32, direction) | 136 IPC_STRUCT_MEMBER(int32, direction) |
131 // The object store the cursor belongs to. | 137 // The object store the cursor belongs to. |
132 IPC_STRUCT_MEMBER(int32, idb_object_store_id) | 138 IPC_STRUCT_MEMBER(int32, idb_object_store_id) |
133 // The transaction this request belongs to. | 139 // The transaction this request belongs to. |
134 IPC_STRUCT_MEMBER(int, transaction_id) | 140 IPC_STRUCT_MEMBER(int, transaction_id) |
135 IPC_STRUCT_END() | 141 IPC_STRUCT_END() |
136 | 142 |
137 // Indexed DB messages sent from the browser to the renderer. | 143 // Indexed DB messages sent from the browser to the renderer. |
michaeln
2011/12/14 02:15:53
maybe add a comment about the need for thread_id t
dgrogan
2011/12/15 02:47:44
Ah yes, good idea.
| |
138 | 144 |
139 // IDBCallback message handlers. | 145 // IDBCallback message handlers. |
140 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessIDBCursor, | 146 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessIDBCursor_Params) |
141 int32 /* response_id */, | 147 IPC_STRUCT_MEMBER(int32, thread_id) |
142 int32 /* cursor_id */, | 148 IPC_STRUCT_MEMBER(int32, response_id) |
143 IndexedDBKey /* key */, | 149 IPC_STRUCT_MEMBER(int32, cursor_id) |
144 IndexedDBKey /* primary key */, | 150 IPC_STRUCT_MEMBER(IndexedDBKey, key) |
145 content::SerializedScriptValue /* script_value */) | 151 IPC_STRUCT_MEMBER(IndexedDBKey, primary_key) |
146 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessCursorContinue, | 152 IPC_STRUCT_MEMBER(content::SerializedScriptValue, serialized_value) |
147 int32 /* response_id */, | 153 IPC_STRUCT_END() |
148 int32 /* cursor_id */, | 154 |
149 IndexedDBKey /* key */, | 155 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorContinue_Params) |
150 IndexedDBKey /* primary key */, | 156 IPC_STRUCT_MEMBER(int32, thread_id) |
151 content::SerializedScriptValue /* script_value */) | 157 IPC_STRUCT_MEMBER(int32, response_id) |
152 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessCursorPrefetch, | 158 IPC_STRUCT_MEMBER(int32, cursor_id) |
153 int32 /* response_id */, | 159 IPC_STRUCT_MEMBER(IndexedDBKey, key) |
154 int32 /* cursor_id */, | 160 IPC_STRUCT_MEMBER(IndexedDBKey, primary_key) |
155 std::vector<IndexedDBKey> /* keys */, | 161 IPC_STRUCT_MEMBER(content::SerializedScriptValue, serialized_value) |
156 std::vector<IndexedDBKey> /* primary keys */, | 162 IPC_STRUCT_END() |
157 std::vector<content::SerializedScriptValue> /* values */) | 163 |
158 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBDatabase, | 164 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) |
165 IPC_STRUCT_MEMBER(int32, thread_id) | |
166 IPC_STRUCT_MEMBER(int32, response_id) | |
167 IPC_STRUCT_MEMBER(int32, cursor_id) | |
168 IPC_STRUCT_MEMBER(std::vector<IndexedDBKey>, keys) | |
169 IPC_STRUCT_MEMBER(std::vector<IndexedDBKey>, primary_keys) | |
170 IPC_STRUCT_MEMBER(std::vector<content::SerializedScriptValue>, values) | |
171 IPC_STRUCT_END() | |
172 | |
173 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessIDBCursor, | |
174 IndexedDBMsg_CallbacksSuccessIDBCursor_Params) | |
175 | |
176 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorContinue, | |
177 IndexedDBMsg_CallbacksSuccessCursorContinue_Params) | |
178 | |
179 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorPrefetch, | |
180 IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) | |
181 | |
182 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIDBDatabase, | |
183 int32 /* thread_id */, | |
159 int32 /* response_id */, | 184 int32 /* response_id */, |
160 int32 /* idb_database_id */) | 185 int32 /* idb_database_id */) |
161 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIndexedDBKey, | 186 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIndexedDBKey, |
187 int32 /* thread_id */, | |
162 int32 /* response_id */, | 188 int32 /* response_id */, |
163 IndexedDBKey /* indexed_db_key */) | 189 IndexedDBKey /* indexed_db_key */) |
164 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBTransaction, | 190 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIDBTransaction, |
191 int32 /* thread_id */, | |
165 int32 /* response_id */, | 192 int32 /* response_id */, |
166 int32 /* idb_transaction_id */) | 193 int32 /* idb_transaction_id */) |
167 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessSerializedScriptValue, | 194 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessSerializedScriptValue, |
195 int32 /* thread_id */, | |
168 int32 /* response_id */, | 196 int32 /* response_id */, |
169 content::SerializedScriptValue /* value */) | 197 content::SerializedScriptValue /* value */) |
170 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessStringList, | 198 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessStringList, |
199 int32 /* thread_id */, | |
171 int32 /* response_id */, | 200 int32 /* response_id */, |
172 std::vector<string16> /* dom_string_list */) | 201 std::vector<string16> /* dom_string_list */) |
173 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksError, | 202 IPC_MESSAGE_CONTROL4(IndexedDBMsg_CallbacksError, |
203 int32 /* thread_id */, | |
174 int32 /* response_id */, | 204 int32 /* response_id */, |
175 int /* code */, | 205 int /* code */, |
176 string16 /* message */) | 206 string16 /* message */) |
177 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksBlocked, | 207 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksBlocked, |
208 int32 /* thread_id */, | |
178 int32 /* response_id */) | 209 int32 /* response_id */) |
179 | 210 |
180 // IDBTransactionCallback message handlers. | 211 // IDBTransactionCallback message handlers. |
181 IPC_MESSAGE_CONTROL1(IndexedDBMsg_TransactionCallbacksAbort, | 212 IPC_MESSAGE_CONTROL2(IndexedDBMsg_TransactionCallbacksAbort, |
213 int32 /* thread_id */, | |
182 int32 /* transaction_id */) | 214 int32 /* transaction_id */) |
183 IPC_MESSAGE_CONTROL1(IndexedDBMsg_TransactionCallbacksComplete, | 215 IPC_MESSAGE_CONTROL2(IndexedDBMsg_TransactionCallbacksComplete, |
216 int32 /* thread_id */, | |
184 int32 /* transaction_id */) | 217 int32 /* transaction_id */) |
185 | 218 |
186 IPC_MESSAGE_CONTROL2(IndexedDBMsg_DatabaseCallbacksVersionChange, | 219 IPC_MESSAGE_CONTROL3(IndexedDBMsg_DatabaseCallbacksVersionChange, |
220 int32, /* thread_id */ | |
187 int32, /* database_id */ | 221 int32, /* database_id */ |
188 string16) /* new_version */ | 222 string16) /* new_version */ |
189 | 223 |
190 // Indexed DB messages sent from the renderer to the browser. | 224 // Indexed DB messages sent from the renderer to the browser. |
191 | 225 |
192 // WebIDBCursor::direction() message. | 226 // WebIDBCursor::direction() message. |
193 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_CursorDirection, | 227 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_CursorDirection, |
194 int32, /* idb_cursor_id */ | 228 int32, /* idb_cursor_id */ |
195 int32 /* direction */) | 229 int32 /* direction */) |
196 | 230 |
197 // WebIDBCursor::update() message. | 231 // WebIDBCursor::update() message. |
198 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorUpdate, | 232 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_CursorUpdate, |
199 int32, /* idb_cursor_id */ | 233 int32, /* idb_cursor_id */ |
234 int32, /* thread_id */ | |
200 int32, /* response_id */ | 235 int32, /* response_id */ |
201 content::SerializedScriptValue, /* value */ | 236 content::SerializedScriptValue, /* value */ |
202 WebKit::WebExceptionCode /* ec */) | 237 WebKit::WebExceptionCode /* ec */) |
203 | 238 |
204 // WebIDBCursor::continue() message. | 239 // WebIDBCursor::continue() message. |
205 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorContinue, | 240 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_CursorContinue, |
206 int32, /* idb_cursor_id */ | 241 int32, /* idb_cursor_id */ |
242 int32, /* thread_id */ | |
207 int32, /* response_id */ | 243 int32, /* response_id */ |
208 IndexedDBKey, /* key */ | 244 IndexedDBKey, /* key */ |
209 WebKit::WebExceptionCode /* ec */) | 245 WebKit::WebExceptionCode /* ec */) |
210 | 246 |
211 // WebIDBCursor::prefetchContinue() message. | 247 // WebIDBCursor::prefetchContinue() message. |
212 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorPrefetch, | 248 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_CursorPrefetch, |
213 int32, /* idb_cursor_id */ | 249 int32, /* idb_cursor_id */ |
250 int32, /* thread_id */ | |
214 int32, /* response_id */ | 251 int32, /* response_id */ |
215 int32, /* n */ | 252 int32, /* n */ |
216 WebKit::WebExceptionCode /* ec */) | 253 WebKit::WebExceptionCode /* ec */) |
217 | 254 |
218 // WebIDBCursor::prefetchReset() message. | 255 // WebIDBCursor::prefetchReset() message. |
219 IPC_SYNC_MESSAGE_CONTROL3_0(IndexedDBHostMsg_CursorPrefetchReset, | 256 IPC_SYNC_MESSAGE_CONTROL3_0(IndexedDBHostMsg_CursorPrefetchReset, |
220 int32, /* idb_cursor_id */ | 257 int32, /* idb_cursor_id */ |
221 int32, /* used_prefetches */ | 258 int32, /* used_prefetches */ |
222 int32 /* used_prefetches */) | 259 int32 /* used_prefetches */) |
223 | 260 |
224 // WebIDBCursor::remove() message. | 261 // WebIDBCursor::remove() message. |
225 IPC_SYNC_MESSAGE_CONTROL2_1(IndexedDBHostMsg_CursorDelete, | 262 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorDelete, |
226 int32, /* idb_cursor_id */ | 263 int32, /* idb_cursor_id */ |
264 int32, /* thread_id */ | |
227 int32, /* response_id */ | 265 int32, /* response_id */ |
228 WebKit::WebExceptionCode /* ec */) | 266 WebKit::WebExceptionCode /* ec */) |
229 | 267 |
230 // WebIDBFactory::getDatabaseNames() message. | 268 // WebIDBFactory::getDatabaseNames() message. |
231 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryGetDatabaseNames, | 269 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryGetDatabaseNames, |
232 IndexedDBHostMsg_FactoryGetDatabaseNames_Params) | 270 IndexedDBHostMsg_FactoryGetDatabaseNames_Params) |
233 | 271 |
234 // WebIDBFactory::open() message. | 272 // WebIDBFactory::open() message. |
235 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryOpen, | 273 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryOpen, |
236 IndexedDBHostMsg_FactoryOpen_Params) | 274 IndexedDBHostMsg_FactoryOpen_Params) |
(...skipping 24 matching lines...) Expand all Loading... | |
261 WebKit::WebExceptionCode /* ec */) | 299 WebKit::WebExceptionCode /* ec */) |
262 | 300 |
263 // WebIDBDatabase::removeObjectStore() message. | 301 // WebIDBDatabase::removeObjectStore() message. |
264 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_DatabaseDeleteObjectStore, | 302 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_DatabaseDeleteObjectStore, |
265 int32, /* idb_database_id */ | 303 int32, /* idb_database_id */ |
266 string16, /* name */ | 304 string16, /* name */ |
267 int32, /* transaction_id */ | 305 int32, /* transaction_id */ |
268 WebKit::WebExceptionCode /* ec */) | 306 WebKit::WebExceptionCode /* ec */) |
269 | 307 |
270 // WebIDBDatabase::setVersion() message. | 308 // WebIDBDatabase::setVersion() message. |
271 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_DatabaseSetVersion, | 309 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_DatabaseSetVersion, |
272 int32, /* idb_database_id */ | 310 int32, /* idb_database_id */ |
311 int32, /* thread_id */ | |
273 int32, /* response_id */ | 312 int32, /* response_id */ |
274 string16, /* version */ | 313 string16, /* version */ |
275 WebKit::WebExceptionCode /* ec */) | 314 WebKit::WebExceptionCode /* ec */) |
276 | 315 |
277 // WebIDBDatabase::transaction() message. | 316 // WebIDBDatabase::transaction() message. |
278 // TODO: make this message async. Have the renderer create a | 317 // TODO: make this message async. Have the renderer create a |
279 // temporary ID and keep a map in the browser process of real | 318 // temporary ID and keep a map in the browser process of real |
280 // IDs to temporary IDs. We can then update the transaction | 319 // IDs to temporary IDs. We can then update the transaction |
281 // to its real ID asynchronously. | 320 // to its real ID asynchronously. |
282 IPC_SYNC_MESSAGE_CONTROL3_2(IndexedDBHostMsg_DatabaseTransaction, | 321 IPC_SYNC_MESSAGE_CONTROL4_2(IndexedDBHostMsg_DatabaseTransaction, |
322 int32, /* thread_id */ | |
283 int32, /* idb_database_id */ | 323 int32, /* idb_database_id */ |
284 std::vector<string16>, /* object_stores */ | 324 std::vector<string16>, /* object_stores */ |
285 int32, /* mode */ | 325 int32, /* mode */ |
286 int32, /* idb_transaction_id */ | 326 int32, /* idb_transaction_id */ |
287 WebKit::WebExceptionCode /* ec */) | 327 WebKit::WebExceptionCode /* ec */) |
288 | 328 |
289 // WebIDBDatabase::open() message. | 329 // WebIDBDatabase::open() message. |
290 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseOpen, | 330 IPC_MESSAGE_CONTROL3(IndexedDBHostMsg_DatabaseOpen, |
291 int32, /* idb_database_id */ | 331 int32, /* idb_database_id */ |
332 int32 /* thread_id */, | |
292 int32 /* response_id */) | 333 int32 /* response_id */) |
293 | 334 |
294 // WebIDBDatabase::close() message. | 335 // WebIDBDatabase::close() message. |
295 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseClose, | 336 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseClose, |
296 int32 /* idb_database_id */) | 337 int32 /* idb_database_id */) |
297 | 338 |
298 // WebIDBDatabase::~WebIDBDatabase() message. | 339 // WebIDBDatabase::~WebIDBDatabase() message. |
299 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseDestroyed, | 340 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseDestroyed, |
300 int32 /* idb_database_id */) | 341 int32 /* idb_database_id */) |
301 | 342 |
(...skipping 21 matching lines...) Expand all Loading... | |
323 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexOpenObjectCursor, | 364 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexOpenObjectCursor, |
324 IndexedDBHostMsg_IndexOpenCursor_Params, | 365 IndexedDBHostMsg_IndexOpenCursor_Params, |
325 WebKit::WebExceptionCode /* ec */) | 366 WebKit::WebExceptionCode /* ec */) |
326 | 367 |
327 // WebIDBIndex::openKeyCursor() message. | 368 // WebIDBIndex::openKeyCursor() message. |
328 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexOpenKeyCursor, | 369 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexOpenKeyCursor, |
329 IndexedDBHostMsg_IndexOpenCursor_Params, | 370 IndexedDBHostMsg_IndexOpenCursor_Params, |
330 WebKit::WebExceptionCode /* ec */) | 371 WebKit::WebExceptionCode /* ec */) |
331 | 372 |
332 // WebIDBIndex::getObject() message. | 373 // WebIDBIndex::getObject() message. |
333 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_IndexGetObject, | 374 IPC_SYNC_MESSAGE_CONTROL5_1(IndexedDBHostMsg_IndexGetObject, |
334 int32, /* idb_index_id */ | 375 int32, /* idb_index_id */ |
376 int32, /* thread_id */ | |
335 int32, /* response_id */ | 377 int32, /* response_id */ |
336 IndexedDBKey, /* key */ | 378 IndexedDBKey, /* key */ |
337 int32, /* transaction_id */ | 379 int32, /* transaction_id */ |
338 WebKit::WebExceptionCode /* ec */) | 380 WebKit::WebExceptionCode /* ec */) |
339 | 381 |
340 // WebIDBIndex::getKey() message. | 382 // WebIDBIndex::getKey() message. |
341 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_IndexGetKey, | 383 IPC_SYNC_MESSAGE_CONTROL5_1(IndexedDBHostMsg_IndexGetKey, |
342 int32, /* idb_index_id */ | 384 int32, /* idb_index_id */ |
385 int32, /* thread_id */ | |
343 int32, /* response_id */ | 386 int32, /* response_id */ |
344 IndexedDBKey, /* key */ | 387 IndexedDBKey, /* key */ |
345 int32, /* transaction_id */ | 388 int32, /* transaction_id */ |
346 WebKit::WebExceptionCode /* ec */) | 389 WebKit::WebExceptionCode /* ec */) |
347 | 390 |
348 // WebIDBIndex::~WebIDBIndex() message. | 391 // WebIDBIndex::~WebIDBIndex() message. |
349 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_IndexDestroyed, | 392 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_IndexDestroyed, |
350 int32 /* idb_index_id */) | 393 int32 /* idb_index_id */) |
351 | 394 |
352 // WebIDBObjectStore::name() message. | 395 // WebIDBObjectStore::name() message. |
353 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreName, | 396 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreName, |
354 int32, /* idb_object_store_id */ | 397 int32, /* idb_object_store_id */ |
355 string16 /* name */) | 398 string16 /* name */) |
356 | 399 |
357 // WebIDBObjectStore::keyPath() message. | 400 // WebIDBObjectStore::keyPath() message. |
358 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreKeyPath, | 401 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreKeyPath, |
359 int32, /* idb_object_store_id */ | 402 int32, /* idb_object_store_id */ |
360 NullableString16 /* keyPath */) | 403 NullableString16 /* keyPath */) |
361 | 404 |
362 // WebIDBObjectStore::indexNames() message. | 405 // WebIDBObjectStore::indexNames() message. |
363 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreIndexNames, | 406 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreIndexNames, |
364 int32, /* idb_object_store_id */ | 407 int32, /* idb_object_store_id */ |
365 std::vector<string16> /* index_names */) | 408 std::vector<string16> /* index_names */) |
366 | 409 |
367 // WebIDBObjectStore::get() message. | 410 // WebIDBObjectStore::get() message. |
368 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_ObjectStoreGet, | 411 IPC_SYNC_MESSAGE_CONTROL5_1(IndexedDBHostMsg_ObjectStoreGet, |
369 int32, /* idb_object_store_id */ | 412 int32, /* idb_object_store_id */ |
413 int32, /* thread_id */ | |
370 int32, /* response_id */ | 414 int32, /* response_id */ |
371 IndexedDBKey, /* key */ | 415 IndexedDBKey, /* key */ |
372 int32, /* transaction_id */ | 416 int32, /* transaction_id */ |
373 WebKit::WebExceptionCode /* ec */) | 417 WebKit::WebExceptionCode /* ec */) |
374 | 418 |
375 // WebIDBObjectStore::put() message. | 419 // WebIDBObjectStore::put() message. |
376 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStorePut, | 420 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStorePut, |
377 IndexedDBHostMsg_ObjectStorePut_Params, | 421 IndexedDBHostMsg_ObjectStorePut_Params, |
378 WebKit::WebExceptionCode /* ec */) | 422 WebKit::WebExceptionCode /* ec */) |
379 | 423 |
380 // WebIDBObjectStore::delete() message. | 424 // WebIDBObjectStore::delete() message. |
381 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_ObjectStoreDelete, | 425 IPC_SYNC_MESSAGE_CONTROL5_1(IndexedDBHostMsg_ObjectStoreDelete, |
382 int32, /* idb_object_store_id */ | 426 int32, /* idb_object_store_id */ |
427 int32, /* thread_id */ | |
383 int32, /* response_id */ | 428 int32, /* response_id */ |
384 IndexedDBKey, /* key */ | 429 IndexedDBKey, /* key */ |
385 int32, /* transaction_id */ | 430 int32, /* transaction_id */ |
386 WebKit::WebExceptionCode /* ec */) | 431 WebKit::WebExceptionCode /* ec */) |
387 | 432 |
388 // WebIDBObjectStore::clear() message. | 433 // WebIDBObjectStore::clear() message. |
389 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_ObjectStoreClear, | 434 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_ObjectStoreClear, |
390 int32, /* idb_object_store_id */ | 435 int32, /* idb_object_store_id */ |
436 int32, /* thread_id */ | |
391 int32, /* response_id */ | 437 int32, /* response_id */ |
392 int32, /* transaction_id */ | 438 int32, /* transaction_id */ |
393 WebKit::WebExceptionCode /* ec */) | 439 WebKit::WebExceptionCode /* ec */) |
394 | 440 |
395 // WebIDBObjectStore::createIndex() message. | 441 // WebIDBObjectStore::createIndex() message. |
396 IPC_SYNC_MESSAGE_CONTROL1_2(IndexedDBHostMsg_ObjectStoreCreateIndex, | 442 IPC_SYNC_MESSAGE_CONTROL1_2(IndexedDBHostMsg_ObjectStoreCreateIndex, |
397 IndexedDBHostMsg_ObjectStoreCreateIndex_Params, | 443 IndexedDBHostMsg_ObjectStoreCreateIndex_Params, |
398 int32, /* index_id */ | 444 int32, /* index_id */ |
399 WebKit::WebExceptionCode /* ec */) | 445 WebKit::WebExceptionCode /* ec */) |
400 | 446 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
441 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, | 487 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, |
442 int32 /* idb_transaction_id */) | 488 int32 /* idb_transaction_id */) |
443 | 489 |
444 // IDBTransaction::DidCompleteTaskEvents() message. | 490 // IDBTransaction::DidCompleteTaskEvents() message. |
445 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, | 491 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, |
446 int32 /* idb_transaction_id */) | 492 int32 /* idb_transaction_id */) |
447 | 493 |
448 // WebIDBTransaction::~WebIDBTransaction() message. | 494 // WebIDBTransaction::~WebIDBTransaction() message. |
449 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, | 495 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, |
450 int32 /* idb_transaction_id */) | 496 int32 /* idb_transaction_id */) |
OLD | NEW |