Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(385)

Side by Side Diff: content/common/indexed_db_messages.h

Issue 8747002: Dispatch IndexedDB IPC messages to worker threads (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove OVERRIDE from dtor Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 these ids.
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 these ids.
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 these ids.
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 these ids.
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()
100 105
101 // Used to create an index. 106 // Used to create an index.
102 IPC_STRUCT_BEGIN(IndexedDBHostMsg_ObjectStoreCreateIndex_Params) 107 IPC_STRUCT_BEGIN(IndexedDBHostMsg_ObjectStoreCreateIndex_Params)
103 // The name of the index. 108 // The name of the index.
104 IPC_STRUCT_MEMBER(string16, name) 109 IPC_STRUCT_MEMBER(string16, name)
105 // The keyPath of the index. 110 // The keyPath of the index.
106 IPC_STRUCT_MEMBER(NullableString16, key_path) 111 IPC_STRUCT_MEMBER(NullableString16, key_path)
107 // Whether the index created has unique keys. 112 // Whether the index created has unique keys.
108 IPC_STRUCT_MEMBER(bool, unique) 113 IPC_STRUCT_MEMBER(bool, unique)
109 // Whether the index created produces keys for each array entry. 114 // Whether the index created produces keys for each array entry.
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 these ids.
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
143 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessIDBCursor_Params)
144 IPC_STRUCT_MEMBER(int32, thread_id)
145 IPC_STRUCT_MEMBER(int32, response_id)
146 IPC_STRUCT_MEMBER(int32, cursor_id)
147 IPC_STRUCT_MEMBER(IndexedDBKey, key)
148 IPC_STRUCT_MEMBER(IndexedDBKey, primary_key)
149 IPC_STRUCT_MEMBER(content::SerializedScriptValue, serialized_value)
150 IPC_STRUCT_END()
151
152 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorContinue_Params)
153 IPC_STRUCT_MEMBER(int32, thread_id)
154 IPC_STRUCT_MEMBER(int32, response_id)
155 IPC_STRUCT_MEMBER(int32, cursor_id)
156 IPC_STRUCT_MEMBER(IndexedDBKey, key)
157 IPC_STRUCT_MEMBER(IndexedDBKey, primary_key)
158 IPC_STRUCT_MEMBER(content::SerializedScriptValue, serialized_value)
159 IPC_STRUCT_END()
160
161 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params)
162 IPC_STRUCT_MEMBER(int32, thread_id)
163 IPC_STRUCT_MEMBER(int32, response_id)
164 IPC_STRUCT_MEMBER(int32, cursor_id)
165 IPC_STRUCT_MEMBER(std::vector<IndexedDBKey>, keys)
166 IPC_STRUCT_MEMBER(std::vector<IndexedDBKey>, primary_keys)
167 IPC_STRUCT_MEMBER(std::vector<content::SerializedScriptValue>, values)
168 IPC_STRUCT_END()
169
170
137 // Indexed DB messages sent from the browser to the renderer. 171 // Indexed DB messages sent from the browser to the renderer.
138 172
173 // The thread_id needs to be the first parameter in these messages. In the IO
174 // thread on the renderer/client process, an IDB message filter assumes the
175 // thread_id is the first int.
176
139 // IDBCallback message handlers. 177 // IDBCallback message handlers.
140 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessIDBCursor, 178 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessIDBCursor,
141 int32 /* response_id */, 179 IndexedDBMsg_CallbacksSuccessIDBCursor_Params)
142 int32 /* cursor_id */, 180
143 IndexedDBKey /* key */, 181 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorContinue,
144 IndexedDBKey /* primary key */, 182 IndexedDBMsg_CallbacksSuccessCursorContinue_Params)
145 content::SerializedScriptValue /* script_value */) 183
146 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessCursorContinue, 184 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorPrefetch,
147 int32 /* response_id */, 185 IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params)
148 int32 /* cursor_id */, 186
149 IndexedDBKey /* key */, 187 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIDBDatabase,
150 IndexedDBKey /* primary key */, 188 int32 /* thread_id */,
151 content::SerializedScriptValue /* script_value */)
152 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessCursorPrefetch,
153 int32 /* response_id */,
154 int32 /* cursor_id */,
155 std::vector<IndexedDBKey> /* keys */,
156 std::vector<IndexedDBKey> /* primary keys */,
157 std::vector<content::SerializedScriptValue> /* values */)
158 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBDatabase,
159 int32 /* response_id */, 189 int32 /* response_id */,
160 int32 /* idb_database_id */) 190 int32 /* idb_database_id */)
161 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIndexedDBKey, 191 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIndexedDBKey,
192 int32 /* thread_id */,
162 int32 /* response_id */, 193 int32 /* response_id */,
163 IndexedDBKey /* indexed_db_key */) 194 IndexedDBKey /* indexed_db_key */)
164 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessIDBTransaction, 195 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIDBTransaction,
196 int32 /* thread_id */,
165 int32 /* response_id */, 197 int32 /* response_id */,
166 int32 /* idb_transaction_id */) 198 int32 /* idb_transaction_id */)
167 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessSerializedScriptValue, 199 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessSerializedScriptValue,
200 int32 /* thread_id */,
168 int32 /* response_id */, 201 int32 /* response_id */,
169 content::SerializedScriptValue /* value */) 202 content::SerializedScriptValue /* value */)
170 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessStringList, 203 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessStringList,
204 int32 /* thread_id */,
171 int32 /* response_id */, 205 int32 /* response_id */,
172 std::vector<string16> /* dom_string_list */) 206 std::vector<string16> /* dom_string_list */)
173 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksError, 207 IPC_MESSAGE_CONTROL4(IndexedDBMsg_CallbacksError,
208 int32 /* thread_id */,
174 int32 /* response_id */, 209 int32 /* response_id */,
175 int /* code */, 210 int /* code */,
176 string16 /* message */) 211 string16 /* message */)
177 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksBlocked, 212 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksBlocked,
213 int32 /* thread_id */,
178 int32 /* response_id */) 214 int32 /* response_id */)
179 215
180 // IDBTransactionCallback message handlers. 216 // IDBTransactionCallback message handlers.
181 IPC_MESSAGE_CONTROL1(IndexedDBMsg_TransactionCallbacksAbort, 217 IPC_MESSAGE_CONTROL2(IndexedDBMsg_TransactionCallbacksAbort,
218 int32 /* thread_id */,
182 int32 /* transaction_id */) 219 int32 /* transaction_id */)
183 IPC_MESSAGE_CONTROL1(IndexedDBMsg_TransactionCallbacksComplete, 220 IPC_MESSAGE_CONTROL2(IndexedDBMsg_TransactionCallbacksComplete,
221 int32 /* thread_id */,
184 int32 /* transaction_id */) 222 int32 /* transaction_id */)
185 223
186 IPC_MESSAGE_CONTROL2(IndexedDBMsg_DatabaseCallbacksVersionChange, 224 IPC_MESSAGE_CONTROL3(IndexedDBMsg_DatabaseCallbacksVersionChange,
225 int32, /* thread_id */
187 int32, /* database_id */ 226 int32, /* database_id */
188 string16) /* new_version */ 227 string16) /* new_version */
189 228
190 // Indexed DB messages sent from the renderer to the browser. 229 // Indexed DB messages sent from the renderer to the browser.
191 230
192 // WebIDBCursor::direction() message. 231 // WebIDBCursor::direction() message.
193 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_CursorDirection, 232 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_CursorDirection,
194 int32, /* idb_cursor_id */ 233 int32, /* idb_cursor_id */
195 int32 /* direction */) 234 int32 /* direction */)
196 235
197 // WebIDBCursor::update() message. 236 // WebIDBCursor::update() message.
198 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorUpdate, 237 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_CursorUpdate,
199 int32, /* idb_cursor_id */ 238 int32, /* idb_cursor_id */
239 int32, /* thread_id */
200 int32, /* response_id */ 240 int32, /* response_id */
201 content::SerializedScriptValue, /* value */ 241 content::SerializedScriptValue, /* value */
202 WebKit::WebExceptionCode /* ec */) 242 WebKit::WebExceptionCode /* ec */)
203 243
204 // WebIDBCursor::continue() message. 244 // WebIDBCursor::continue() message.
205 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorContinue, 245 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_CursorContinue,
206 int32, /* idb_cursor_id */ 246 int32, /* idb_cursor_id */
247 int32, /* thread_id */
207 int32, /* response_id */ 248 int32, /* response_id */
208 IndexedDBKey, /* key */ 249 IndexedDBKey, /* key */
209 WebKit::WebExceptionCode /* ec */) 250 WebKit::WebExceptionCode /* ec */)
210 251
211 // WebIDBCursor::prefetchContinue() message. 252 // WebIDBCursor::prefetchContinue() message.
212 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorPrefetch, 253 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_CursorPrefetch,
213 int32, /* idb_cursor_id */ 254 int32, /* idb_cursor_id */
255 int32, /* thread_id */
214 int32, /* response_id */ 256 int32, /* response_id */
215 int32, /* n */ 257 int32, /* n */
216 WebKit::WebExceptionCode /* ec */) 258 WebKit::WebExceptionCode /* ec */)
217 259
218 // WebIDBCursor::prefetchReset() message. 260 // WebIDBCursor::prefetchReset() message.
219 IPC_SYNC_MESSAGE_CONTROL3_0(IndexedDBHostMsg_CursorPrefetchReset, 261 IPC_SYNC_MESSAGE_CONTROL3_0(IndexedDBHostMsg_CursorPrefetchReset,
220 int32, /* idb_cursor_id */ 262 int32, /* idb_cursor_id */
221 int32, /* used_prefetches */ 263 int32, /* used_prefetches */
222 int32 /* used_prefetches */) 264 int32 /* used_prefetches */)
223 265
224 // WebIDBCursor::remove() message. 266 // WebIDBCursor::remove() message.
225 IPC_SYNC_MESSAGE_CONTROL2_1(IndexedDBHostMsg_CursorDelete, 267 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_CursorDelete,
226 int32, /* idb_cursor_id */ 268 int32, /* idb_cursor_id */
269 int32, /* thread_id */
227 int32, /* response_id */ 270 int32, /* response_id */
228 WebKit::WebExceptionCode /* ec */) 271 WebKit::WebExceptionCode /* ec */)
229 272
230 // WebIDBFactory::getDatabaseNames() message. 273 // WebIDBFactory::getDatabaseNames() message.
231 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryGetDatabaseNames, 274 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryGetDatabaseNames,
232 IndexedDBHostMsg_FactoryGetDatabaseNames_Params) 275 IndexedDBHostMsg_FactoryGetDatabaseNames_Params)
233 276
234 // WebIDBFactory::open() message. 277 // WebIDBFactory::open() message.
235 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryOpen, 278 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryOpen,
236 IndexedDBHostMsg_FactoryOpen_Params) 279 IndexedDBHostMsg_FactoryOpen_Params)
(...skipping 24 matching lines...) Expand all
261 WebKit::WebExceptionCode /* ec */) 304 WebKit::WebExceptionCode /* ec */)
262 305
263 // WebIDBDatabase::removeObjectStore() message. 306 // WebIDBDatabase::removeObjectStore() message.
264 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_DatabaseDeleteObjectStore, 307 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_DatabaseDeleteObjectStore,
265 int32, /* idb_database_id */ 308 int32, /* idb_database_id */
266 string16, /* name */ 309 string16, /* name */
267 int32, /* transaction_id */ 310 int32, /* transaction_id */
268 WebKit::WebExceptionCode /* ec */) 311 WebKit::WebExceptionCode /* ec */)
269 312
270 // WebIDBDatabase::setVersion() message. 313 // WebIDBDatabase::setVersion() message.
271 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_DatabaseSetVersion, 314 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_DatabaseSetVersion,
272 int32, /* idb_database_id */ 315 int32, /* idb_database_id */
316 int32, /* thread_id */
273 int32, /* response_id */ 317 int32, /* response_id */
274 string16, /* version */ 318 string16, /* version */
275 WebKit::WebExceptionCode /* ec */) 319 WebKit::WebExceptionCode /* ec */)
276 320
277 // WebIDBDatabase::transaction() message. 321 // WebIDBDatabase::transaction() message.
278 // TODO: make this message async. Have the renderer create a 322 // TODO: make this message async. Have the renderer create a
279 // temporary ID and keep a map in the browser process of real 323 // temporary ID and keep a map in the browser process of real
280 // IDs to temporary IDs. We can then update the transaction 324 // IDs to temporary IDs. We can then update the transaction
281 // to its real ID asynchronously. 325 // to its real ID asynchronously.
282 IPC_SYNC_MESSAGE_CONTROL3_2(IndexedDBHostMsg_DatabaseTransaction, 326 IPC_SYNC_MESSAGE_CONTROL4_2(IndexedDBHostMsg_DatabaseTransaction,
327 int32, /* thread_id */
283 int32, /* idb_database_id */ 328 int32, /* idb_database_id */
284 std::vector<string16>, /* object_stores */ 329 std::vector<string16>, /* object_stores */
285 int32, /* mode */ 330 int32, /* mode */
286 int32, /* idb_transaction_id */ 331 int32, /* idb_transaction_id */
287 WebKit::WebExceptionCode /* ec */) 332 WebKit::WebExceptionCode /* ec */)
288 333
289 // WebIDBDatabase::open() message. 334 // WebIDBDatabase::open() message.
290 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseOpen, 335 IPC_MESSAGE_CONTROL3(IndexedDBHostMsg_DatabaseOpen,
291 int32, /* idb_database_id */ 336 int32, /* idb_database_id */
337 int32 /* thread_id */,
292 int32 /* response_id */) 338 int32 /* response_id */)
293 339
294 // WebIDBDatabase::close() message. 340 // WebIDBDatabase::close() message.
295 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseClose, 341 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseClose,
296 int32 /* idb_database_id */) 342 int32 /* idb_database_id */)
297 343
298 // WebIDBDatabase::~WebIDBDatabase() message. 344 // WebIDBDatabase::~WebIDBDatabase() message.
299 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseDestroyed, 345 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseDestroyed,
300 int32 /* idb_database_id */) 346 int32 /* idb_database_id */)
301 347
(...skipping 21 matching lines...) Expand all
323 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexOpenObjectCursor, 369 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexOpenObjectCursor,
324 IndexedDBHostMsg_IndexOpenCursor_Params, 370 IndexedDBHostMsg_IndexOpenCursor_Params,
325 WebKit::WebExceptionCode /* ec */) 371 WebKit::WebExceptionCode /* ec */)
326 372
327 // WebIDBIndex::openKeyCursor() message. 373 // WebIDBIndex::openKeyCursor() message.
328 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexOpenKeyCursor, 374 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_IndexOpenKeyCursor,
329 IndexedDBHostMsg_IndexOpenCursor_Params, 375 IndexedDBHostMsg_IndexOpenCursor_Params,
330 WebKit::WebExceptionCode /* ec */) 376 WebKit::WebExceptionCode /* ec */)
331 377
332 // WebIDBIndex::getObject() message. 378 // WebIDBIndex::getObject() message.
333 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_IndexGetObject, 379 IPC_SYNC_MESSAGE_CONTROL5_1(IndexedDBHostMsg_IndexGetObject,
334 int32, /* idb_index_id */ 380 int32, /* idb_index_id */
381 int32, /* thread_id */
335 int32, /* response_id */ 382 int32, /* response_id */
336 IndexedDBKey, /* key */ 383 IndexedDBKey, /* key */
337 int32, /* transaction_id */ 384 int32, /* transaction_id */
338 WebKit::WebExceptionCode /* ec */) 385 WebKit::WebExceptionCode /* ec */)
339 386
340 // WebIDBIndex::getKey() message. 387 // WebIDBIndex::getKey() message.
341 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_IndexGetKey, 388 IPC_SYNC_MESSAGE_CONTROL5_1(IndexedDBHostMsg_IndexGetKey,
342 int32, /* idb_index_id */ 389 int32, /* idb_index_id */
390 int32, /* thread_id */
343 int32, /* response_id */ 391 int32, /* response_id */
344 IndexedDBKey, /* key */ 392 IndexedDBKey, /* key */
345 int32, /* transaction_id */ 393 int32, /* transaction_id */
346 WebKit::WebExceptionCode /* ec */) 394 WebKit::WebExceptionCode /* ec */)
347 395
348 // WebIDBIndex::~WebIDBIndex() message. 396 // WebIDBIndex::~WebIDBIndex() message.
349 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_IndexDestroyed, 397 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_IndexDestroyed,
350 int32 /* idb_index_id */) 398 int32 /* idb_index_id */)
351 399
352 // WebIDBObjectStore::name() message. 400 // WebIDBObjectStore::name() message.
353 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreName, 401 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreName,
354 int32, /* idb_object_store_id */ 402 int32, /* idb_object_store_id */
355 string16 /* name */) 403 string16 /* name */)
356 404
357 // WebIDBObjectStore::keyPath() message. 405 // WebIDBObjectStore::keyPath() message.
358 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreKeyPath, 406 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreKeyPath,
359 int32, /* idb_object_store_id */ 407 int32, /* idb_object_store_id */
360 NullableString16 /* keyPath */) 408 NullableString16 /* keyPath */)
361 409
362 // WebIDBObjectStore::indexNames() message. 410 // WebIDBObjectStore::indexNames() message.
363 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreIndexNames, 411 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStoreIndexNames,
364 int32, /* idb_object_store_id */ 412 int32, /* idb_object_store_id */
365 std::vector<string16> /* index_names */) 413 std::vector<string16> /* index_names */)
366 414
367 // WebIDBObjectStore::get() message. 415 // WebIDBObjectStore::get() message.
368 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_ObjectStoreGet, 416 IPC_SYNC_MESSAGE_CONTROL5_1(IndexedDBHostMsg_ObjectStoreGet,
369 int32, /* idb_object_store_id */ 417 int32, /* idb_object_store_id */
418 int32, /* thread_id */
370 int32, /* response_id */ 419 int32, /* response_id */
371 IndexedDBKey, /* key */ 420 IndexedDBKey, /* key */
372 int32, /* transaction_id */ 421 int32, /* transaction_id */
373 WebKit::WebExceptionCode /* ec */) 422 WebKit::WebExceptionCode /* ec */)
374 423
375 // WebIDBObjectStore::put() message. 424 // WebIDBObjectStore::put() message.
376 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStorePut, 425 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_ObjectStorePut,
377 IndexedDBHostMsg_ObjectStorePut_Params, 426 IndexedDBHostMsg_ObjectStorePut_Params,
378 WebKit::WebExceptionCode /* ec */) 427 WebKit::WebExceptionCode /* ec */)
379 428
380 // WebIDBObjectStore::delete() message. 429 // WebIDBObjectStore::delete() message.
381 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_ObjectStoreDelete, 430 IPC_SYNC_MESSAGE_CONTROL5_1(IndexedDBHostMsg_ObjectStoreDelete,
382 int32, /* idb_object_store_id */ 431 int32, /* idb_object_store_id */
432 int32, /* thread_id */
383 int32, /* response_id */ 433 int32, /* response_id */
384 IndexedDBKey, /* key */ 434 IndexedDBKey, /* key */
385 int32, /* transaction_id */ 435 int32, /* transaction_id */
386 WebKit::WebExceptionCode /* ec */) 436 WebKit::WebExceptionCode /* ec */)
387 437
388 // WebIDBObjectStore::clear() message. 438 // WebIDBObjectStore::clear() message.
389 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_ObjectStoreClear, 439 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_ObjectStoreClear,
390 int32, /* idb_object_store_id */ 440 int32, /* idb_object_store_id */
441 int32, /* thread_id */
391 int32, /* response_id */ 442 int32, /* response_id */
392 int32, /* transaction_id */ 443 int32, /* transaction_id */
393 WebKit::WebExceptionCode /* ec */) 444 WebKit::WebExceptionCode /* ec */)
394 445
395 // WebIDBObjectStore::createIndex() message. 446 // WebIDBObjectStore::createIndex() message.
396 IPC_SYNC_MESSAGE_CONTROL1_2(IndexedDBHostMsg_ObjectStoreCreateIndex, 447 IPC_SYNC_MESSAGE_CONTROL1_2(IndexedDBHostMsg_ObjectStoreCreateIndex,
397 IndexedDBHostMsg_ObjectStoreCreateIndex_Params, 448 IndexedDBHostMsg_ObjectStoreCreateIndex_Params,
398 int32, /* index_id */ 449 int32, /* index_id */
399 WebKit::WebExceptionCode /* ec */) 450 WebKit::WebExceptionCode /* ec */)
400 451
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, 492 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort,
442 int32 /* idb_transaction_id */) 493 int32 /* idb_transaction_id */)
443 494
444 // IDBTransaction::DidCompleteTaskEvents() message. 495 // IDBTransaction::DidCompleteTaskEvents() message.
445 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, 496 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents,
446 int32 /* idb_transaction_id */) 497 int32 /* idb_transaction_id */)
447 498
448 // WebIDBTransaction::~WebIDBTransaction() message. 499 // WebIDBTransaction::~WebIDBTransaction() message.
449 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, 500 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed,
450 int32 /* idb_transaction_id */) 501 int32 /* idb_transaction_id */)
OLDNEW
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_transaction_callbacks.cc ('k') | content/content_renderer.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698