We started redesigning GpuMemoryBuffer interface to handle multiple buffers [0].
[chromium-blink-merge.git] / content / common / indexed_db / indexed_db_messages.h
blob22a8998186c8362a59dc00affe7b85f8f1285d25
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
3 // found in the LICENSE file.
5 // Message definition file, included multiple times, hence no include guard.
7 #include <string>
8 #include <utility>
9 #include <vector>
11 #include "content/common/indexed_db/indexed_db_key.h"
12 #include "content/common/indexed_db/indexed_db_key_path.h"
13 #include "content/common/indexed_db/indexed_db_key_range.h"
14 #include "content/common/indexed_db/indexed_db_param_traits.h"
15 #include "ipc/ipc_message_macros.h"
16 #include "ipc/ipc_param_traits.h"
17 #include "third_party/WebKit/public/platform/WebIDBTypes.h"
19 // Singly-included section for typedefs in multiply-included file.
20 #ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_MESSAGES_H_
21 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_MESSAGES_H_
23 // An index id, and corresponding set of keys to insert.
24 typedef std::pair<int64, std::vector<content::IndexedDBKey> > IndexKeys;
26 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_MESSAGES_H_
28 #undef IPC_MESSAGE_EXPORT
29 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
30 #define IPC_MESSAGE_START IndexedDBMsgStart
32 // Argument structures used in messages
34 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBCursorDirection,
35 blink::WebIDBCursorDirectionLast)
36 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBPutMode, blink::WebIDBPutModeLast)
37 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBTaskType, blink::WebIDBTaskTypeLast)
38 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBTransactionMode,
39 blink::WebIDBTransactionModeLast)
41 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebIDBDataLoss, blink::WebIDBDataLossTotal)
43 // Used to enumerate indexed databases.
44 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryGetDatabaseNames_Params)
45 // The response should have these ids.
46 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
47 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
48 // The string id of the origin doing the initiating.
49 IPC_STRUCT_MEMBER(std::string, database_identifier)
50 IPC_STRUCT_END()
52 // Used to open an indexed database.
53 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryOpen_Params)
54 // The response should have these ids.
55 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
56 // Identifier of the request
57 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
58 // Identifier for database callbacks
59 IPC_STRUCT_MEMBER(int32, ipc_database_callbacks_id)
60 // The string id of the origin doing the initiating.
61 IPC_STRUCT_MEMBER(std::string, database_identifier)
62 // The name of the database.
63 IPC_STRUCT_MEMBER(base::string16, name)
64 // The transaction id used if a database upgrade is needed.
65 IPC_STRUCT_MEMBER(int64, transaction_id)
66 // The requested version of the database.
67 IPC_STRUCT_MEMBER(int64, version)
68 IPC_STRUCT_END()
70 // Used to delete an indexed database.
71 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryDeleteDatabase_Params)
72 // The response should have these ids.
73 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
74 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
75 // The string id of the origin doing the initiating.
76 IPC_STRUCT_MEMBER(std::string, database_identifier)
77 // The name of the database.
78 IPC_STRUCT_MEMBER(base::string16, name)
79 IPC_STRUCT_END()
81 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateTransaction_Params)
82 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
83 // The database the object store belongs to.
84 IPC_STRUCT_MEMBER(int32, ipc_database_id)
85 // The transaction id as minted by the frontend.
86 IPC_STRUCT_MEMBER(int64, transaction_id)
87 // To get to WebIDBDatabaseCallbacks.
88 IPC_STRUCT_MEMBER(int32, ipc_database_callbacks_id)
89 // The scope of the transaction.
90 IPC_STRUCT_MEMBER(std::vector<int64>, object_store_ids)
91 // The transaction mode.
92 IPC_STRUCT_MEMBER(blink::WebIDBTransactionMode, mode)
93 IPC_STRUCT_END()
95 // Used to create an object store.
96 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateObjectStore_Params)
97 // The database the object store belongs to.
98 IPC_STRUCT_MEMBER(int32, ipc_database_id)
99 // The transaction its associated with.
100 IPC_STRUCT_MEMBER(int64, transaction_id)
101 // The storage id of the object store.
102 IPC_STRUCT_MEMBER(int64, object_store_id)
103 // The name of the object store.
104 IPC_STRUCT_MEMBER(base::string16, name)
105 // The keyPath of the object store.
106 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, key_path)
107 // Whether the object store created should have a key generator.
108 IPC_STRUCT_MEMBER(bool, auto_increment)
109 IPC_STRUCT_END()
111 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseGet_Params)
112 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
113 // The id any response should contain.
114 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
115 // The database the object store belongs to.
116 IPC_STRUCT_MEMBER(int32, ipc_database_id)
117 // The transaction its associated with.
118 IPC_STRUCT_MEMBER(int64, transaction_id)
119 // The object store's id.
120 IPC_STRUCT_MEMBER(int64, object_store_id)
121 // The index's id.
122 IPC_STRUCT_MEMBER(int64, index_id)
123 // The serialized key range.
124 IPC_STRUCT_MEMBER(content::IndexedDBKeyRange, key_range)
125 // If this is just retrieving the key
126 IPC_STRUCT_MEMBER(bool, key_only)
127 IPC_STRUCT_END()
129 IPC_STRUCT_BEGIN(IndexedDBMsg_BlobOrFileInfo)
130 IPC_STRUCT_MEMBER(bool, is_file)
131 IPC_STRUCT_MEMBER(std::string, uuid)
132 IPC_STRUCT_MEMBER(base::string16, mime_type)
133 IPC_STRUCT_MEMBER(uint64, size)
134 IPC_STRUCT_MEMBER(base::string16, file_path)
135 IPC_STRUCT_MEMBER(base::string16, file_name)
136 IPC_STRUCT_MEMBER(double, last_modified)
137 IPC_STRUCT_END()
139 IPC_STRUCT_BEGIN(IndexedDBMsg_Value)
140 // The serialized value being transferred.
141 IPC_STRUCT_MEMBER(std::string, bits)
142 // Sideband data for any blob or file encoded in value.
143 IPC_STRUCT_MEMBER(std::vector<IndexedDBMsg_BlobOrFileInfo>, blob_or_file_info)
144 IPC_STRUCT_END()
146 // Used to set a value in an object store.
147 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabasePut_Params)
148 // The id any response should contain.
149 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
150 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
151 // The database the object store belongs to.
152 IPC_STRUCT_MEMBER(int32, ipc_database_id)
153 // The transaction it's associated with.
154 IPC_STRUCT_MEMBER(int64, transaction_id)
155 // The object store's id.
156 IPC_STRUCT_MEMBER(int64, object_store_id)
157 // The index's id.
158 IPC_STRUCT_MEMBER(int64, index_id)
159 // The value to set.
160 IPC_STRUCT_MEMBER(IndexedDBMsg_Value, value)
161 // The key to set it on (may not be "valid"/set in some cases).
162 IPC_STRUCT_MEMBER(content::IndexedDBKey, key)
163 // Whether this is an add or a put.
164 IPC_STRUCT_MEMBER(blink::WebIDBPutMode, put_mode)
165 // The index ids and the list of keys for each index.
166 IPC_STRUCT_MEMBER(std::vector<IndexKeys>, index_keys)
167 IPC_STRUCT_END()
169 // Used to open both cursors and object cursors in IndexedDB.
170 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseOpenCursor_Params)
171 // The response should have these ids.
172 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
173 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
174 // The database the object store belongs to.
175 IPC_STRUCT_MEMBER(int32, ipc_database_id)
176 // The transaction this request belongs to.
177 IPC_STRUCT_MEMBER(int64, transaction_id)
178 // The object store.
179 IPC_STRUCT_MEMBER(int64, object_store_id)
180 // The index if any.
181 IPC_STRUCT_MEMBER(int64, index_id)
182 // The serialized key range.
183 IPC_STRUCT_MEMBER(content::IndexedDBKeyRange, key_range)
184 // The direction of this cursor.
185 IPC_STRUCT_MEMBER(blink::WebIDBCursorDirection, direction)
186 // If this is just retrieving the key
187 IPC_STRUCT_MEMBER(bool, key_only)
188 // The priority of this cursor.
189 IPC_STRUCT_MEMBER(blink::WebIDBTaskType, task_type)
190 IPC_STRUCT_END()
192 // Used to open both cursors and object cursors in IndexedDB.
193 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCount_Params)
194 // The response should have these ids.
195 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
196 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
197 // The transaction this request belongs to.
198 IPC_STRUCT_MEMBER(int64, transaction_id)
199 // The IPC id of the database.
200 IPC_STRUCT_MEMBER(int32, ipc_database_id)
201 // The object store.
202 IPC_STRUCT_MEMBER(int64, object_store_id)
203 // The index if any.
204 IPC_STRUCT_MEMBER(int64, index_id)
205 // The serialized key range.
206 IPC_STRUCT_MEMBER(content::IndexedDBKeyRange, key_range)
207 IPC_STRUCT_END()
209 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseDeleteRange_Params)
210 // The response should have these ids.
211 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
212 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
213 // The IPC id of the database.
214 IPC_STRUCT_MEMBER(int32, ipc_database_id)
215 // The transaction this request belongs to.
216 IPC_STRUCT_MEMBER(int64, transaction_id)
217 // The object store.
218 IPC_STRUCT_MEMBER(int64, object_store_id)
219 // The serialized key range.
220 IPC_STRUCT_MEMBER(content::IndexedDBKeyRange, key_range)
221 IPC_STRUCT_END()
223 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseSetIndexKeys_Params)
224 // The IPC id of the database.
225 IPC_STRUCT_MEMBER(int32, ipc_database_id)
226 // The transaction this request belongs to.
227 IPC_STRUCT_MEMBER(int64, transaction_id)
228 // The object store's id.
229 IPC_STRUCT_MEMBER(int64, object_store_id)
230 // The object store key that we're setting index keys for.
231 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key)
232 // The index ids and the list of keys for each index.
233 IPC_STRUCT_MEMBER(std::vector<IndexKeys>, index_keys)
234 IPC_STRUCT_END()
236 // Used to create an index.
237 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateIndex_Params)
238 // The transaction this is associated with.
239 IPC_STRUCT_MEMBER(int64, transaction_id)
240 // The database being used.
241 IPC_STRUCT_MEMBER(int32, ipc_database_id)
242 // The object store the index belongs to.
243 IPC_STRUCT_MEMBER(int64, object_store_id)
244 // The storage id of the index.
245 IPC_STRUCT_MEMBER(int64, index_id)
246 // The name of the index.
247 IPC_STRUCT_MEMBER(base::string16, name)
248 // The keyPath of the index.
249 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, key_path)
250 // Whether the index created has unique keys.
251 IPC_STRUCT_MEMBER(bool, unique)
252 // Whether the index created produces keys for each array entry.
253 IPC_STRUCT_MEMBER(bool, multi_entry)
254 IPC_STRUCT_END()
256 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessIDBCursor_Params)
257 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
258 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
259 IPC_STRUCT_MEMBER(int32, ipc_cursor_id)
260 IPC_STRUCT_MEMBER(content::IndexedDBKey, key)
261 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key)
262 IPC_STRUCT_MEMBER(IndexedDBMsg_Value, value)
263 IPC_STRUCT_END()
265 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorContinue_Params)
266 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
267 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
268 IPC_STRUCT_MEMBER(int32, ipc_cursor_id)
269 IPC_STRUCT_MEMBER(content::IndexedDBKey, key)
270 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key)
271 IPC_STRUCT_MEMBER(IndexedDBMsg_Value, value)
272 IPC_STRUCT_END()
274 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params)
275 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
276 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
277 IPC_STRUCT_MEMBER(int32, ipc_cursor_id)
278 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, keys)
279 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, primary_keys)
280 IPC_STRUCT_MEMBER(std::vector<IndexedDBMsg_Value>, values)
281 IPC_STRUCT_END()
283 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessValue_Params)
284 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
285 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
286 IPC_STRUCT_MEMBER(IndexedDBMsg_Value, value)
287 IPC_STRUCT_END()
289 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessValueWithKey_Params)
290 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
291 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
292 IPC_STRUCT_MEMBER(IndexedDBMsg_Value, value)
293 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key)
294 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, key_path)
295 IPC_STRUCT_END()
297 IPC_STRUCT_BEGIN(IndexedDBIndexMetadata)
298 IPC_STRUCT_MEMBER(int64, id)
299 IPC_STRUCT_MEMBER(base::string16, name)
300 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, key_path)
301 IPC_STRUCT_MEMBER(bool, unique)
302 IPC_STRUCT_MEMBER(bool, multi_entry)
303 IPC_STRUCT_END()
305 IPC_STRUCT_BEGIN(IndexedDBObjectStoreMetadata)
306 IPC_STRUCT_MEMBER(int64, id)
307 IPC_STRUCT_MEMBER(base::string16, name)
308 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, key_path)
309 IPC_STRUCT_MEMBER(bool, auto_increment)
310 IPC_STRUCT_MEMBER(int64, max_index_id)
311 IPC_STRUCT_MEMBER(std::vector<IndexedDBIndexMetadata>, indexes)
312 IPC_STRUCT_END()
314 IPC_STRUCT_BEGIN(IndexedDBDatabaseMetadata)
315 IPC_STRUCT_MEMBER(int64, id)
316 IPC_STRUCT_MEMBER(base::string16, name)
317 IPC_STRUCT_MEMBER(base::string16, version)
318 IPC_STRUCT_MEMBER(int64, int_version)
319 IPC_STRUCT_MEMBER(int64, max_object_store_id)
320 IPC_STRUCT_MEMBER(std::vector<IndexedDBObjectStoreMetadata>, object_stores)
321 IPC_STRUCT_END()
323 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksUpgradeNeeded_Params)
324 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
325 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
326 IPC_STRUCT_MEMBER(int32, ipc_database_callbacks_id)
327 IPC_STRUCT_MEMBER(int32, ipc_database_id)
328 IPC_STRUCT_MEMBER(int64, old_version)
329 IPC_STRUCT_MEMBER(blink::WebIDBDataLoss, data_loss)
330 IPC_STRUCT_MEMBER(std::string, data_loss_message)
331 IPC_STRUCT_MEMBER(IndexedDBDatabaseMetadata, idb_metadata)
332 IPC_STRUCT_END()
334 // Indexed DB messages sent from the browser to the renderer.
336 // The thread_id needs to be the first parameter in these messages. In the IO
337 // thread on the renderer/client process, an IDB message filter assumes the
338 // thread_id is the first int.
340 // IDBCallback message handlers.
341 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessIDBCursor,
342 IndexedDBMsg_CallbacksSuccessIDBCursor_Params)
344 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorContinue,
345 IndexedDBMsg_CallbacksSuccessCursorContinue_Params)
347 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorAdvance,
348 IndexedDBMsg_CallbacksSuccessCursorContinue_Params)
350 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorPrefetch,
351 IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params)
353 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessIDBDatabase,
354 int32 /* ipc_thread_id */,
355 int32 /* ipc_callbacks_id */,
356 int32 /* ipc_database_callbacks_id */,
357 int32 /* ipc_database_id */,
358 IndexedDBDatabaseMetadata)
359 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIndexedDBKey,
360 int32 /* ipc_thread_id */,
361 int32 /* ipc_callbacks_id */,
362 content::IndexedDBKey /* indexed_db_key */)
364 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessValue,
365 IndexedDBMsg_CallbacksSuccessValue_Params)
367 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessValueWithKey,
368 IndexedDBMsg_CallbacksSuccessValueWithKey_Params)
370 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessInteger,
371 int32 /* ipc_thread_id */,
372 int32 /* ipc_callbacks_id */,
373 int64 /* value */)
374 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessUndefined,
375 int32 /* ipc_thread_id */,
376 int32 /* ipc_callbacks_id */)
377 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessStringList,
378 int32 /* ipc_thread_id */,
379 int32 /* ipc_callbacks_id */,
380 std::vector<base::string16> /* dom_string_list */)
381 IPC_MESSAGE_CONTROL4(IndexedDBMsg_CallbacksError,
382 int32 /* ipc_thread_id */,
383 int32 /* ipc_callbacks_id */,
384 int /* code */,
385 base::string16 /* message */)
386 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksBlocked,
387 int32 /* ipc_thread_id */,
388 int32 /* ipc_callbacks_id */)
389 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksIntBlocked,
390 int32 /* ipc_thread_id */,
391 int32 /* ipc_callbacks_id */,
392 int64 /* existing_version */)
393 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksUpgradeNeeded,
394 IndexedDBMsg_CallbacksUpgradeNeeded_Params)
396 // IDBDatabaseCallback message handlers
397 IPC_MESSAGE_CONTROL2(IndexedDBMsg_DatabaseCallbacksForcedClose,
398 int32, /* ipc_thread_id */
399 int32) /* ipc_database_callbacks_id */
400 IPC_MESSAGE_CONTROL4(IndexedDBMsg_DatabaseCallbacksIntVersionChange,
401 int32, /* ipc_thread_id */
402 int32, /* ipc_database_callbacks_id */
403 int64, /* old_version */
404 int64) /* new_version */
405 IPC_MESSAGE_CONTROL5(IndexedDBMsg_DatabaseCallbacksAbort,
406 int32, /* ipc_thread_id */
407 int32, /* ipc_database_callbacks_id */
408 int64, /* transaction_id */
409 int, /* code */
410 base::string16) /* message */
411 IPC_MESSAGE_CONTROL3(IndexedDBMsg_DatabaseCallbacksComplete,
412 int32, /* ipc_thread_id */
413 int32, /* ipc_database_callbacks_id */
414 int64) /* transaction_id */
416 // Indexed DB messages sent from the renderer to the browser.
418 // WebIDBCursor::advance() message.
419 IPC_MESSAGE_CONTROL4(IndexedDBHostMsg_CursorAdvance,
420 int32, /* ipc_cursor_id */
421 int32, /* ipc_thread_id */
422 int32, /* ipc_callbacks_id */
423 uint32) /* count */
425 // WebIDBCursor::continue() message.
426 IPC_MESSAGE_CONTROL5(IndexedDBHostMsg_CursorContinue,
427 int32, /* ipc_cursor_id */
428 int32, /* ipc_thread_id */
429 int32, /* ipc_callbacks_id */
430 content::IndexedDBKey, /* key */
431 content::IndexedDBKey) /* primary_key */
433 // WebIDBCursor::prefetchContinue() message.
434 IPC_MESSAGE_CONTROL4(IndexedDBHostMsg_CursorPrefetch,
435 int32, /* ipc_cursor_id */
436 int32, /* ipc_thread_id */
437 int32, /* ipc_callbacks_id */
438 int32) /* n */
440 // WebIDBCursor::prefetchReset() message.
441 IPC_MESSAGE_CONTROL3(IndexedDBHostMsg_CursorPrefetchReset,
442 int32, /* ipc_cursor_id */
443 int32, /* used_prefetches */
444 int32) /* used_prefetches */
446 // WebIDBFactory::getDatabaseNames() message.
447 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryGetDatabaseNames,
448 IndexedDBHostMsg_FactoryGetDatabaseNames_Params)
450 // WebIDBFactory::open() message.
451 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryOpen,
452 IndexedDBHostMsg_FactoryOpen_Params)
454 // WebIDBFactory::deleteDatabase() message.
455 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryDeleteDatabase,
456 IndexedDBHostMsg_FactoryDeleteDatabase_Params)
458 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_AckReceivedBlobs,
459 std::vector<std::string>) /* uuids */
461 // WebIDBDatabase::createObjectStore() message.
462 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseCreateObjectStore,
463 IndexedDBHostMsg_DatabaseCreateObjectStore_Params)
465 // WebIDBDatabase::deleteObjectStore() message.
466 IPC_MESSAGE_CONTROL3(IndexedDBHostMsg_DatabaseDeleteObjectStore,
467 int32, /* ipc_database_id */
468 int64, /* transaction_id */
469 int64) /* object_store_id */
471 // WebIDBDatabase::createTransaction() message.
472 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseCreateTransaction,
473 IndexedDBHostMsg_DatabaseCreateTransaction_Params)
475 // WebIDBDatabase::close() message.
476 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseClose,
477 int32 /* ipc_database_id */)
479 // WebIDBDatabase::versionChangeIgnored() message.
480 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseVersionChangeIgnored,
481 int32 /* ipc_database_id */)
483 // WebIDBDatabase::~WebIDBDatabase() message.
484 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseDestroyed,
485 int32 /* ipc_database_id */)
487 // WebIDBDatabase::get() message.
488 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseGet,
489 IndexedDBHostMsg_DatabaseGet_Params)
491 // WebIDBDatabase::put() message.
492 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabasePut,
493 IndexedDBHostMsg_DatabasePut_Params)
495 // WebIDBDatabase::setIndexKeys() message.
496 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseSetIndexKeys,
497 IndexedDBHostMsg_DatabaseSetIndexKeys_Params)
499 // WebIDBDatabase::setIndexesReady() message.
500 IPC_MESSAGE_CONTROL4(IndexedDBHostMsg_DatabaseSetIndexesReady,
501 int32, /* ipc_database_id */
502 int64, /* transaction_id */
503 int64, /* object_store_id */
504 std::vector<int64>) /* index_ids */
506 // WebIDBDatabase::openCursor() message.
507 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseOpenCursor,
508 IndexedDBHostMsg_DatabaseOpenCursor_Params)
510 // WebIDBDatabase::count() message.
511 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseCount,
512 IndexedDBHostMsg_DatabaseCount_Params)
514 // WebIDBDatabase::deleteRange() message.
515 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseDeleteRange,
516 IndexedDBHostMsg_DatabaseDeleteRange_Params)
518 // WebIDBDatabase::clear() message.
519 IPC_MESSAGE_CONTROL5(IndexedDBHostMsg_DatabaseClear,
520 int32, /* ipc_thread_id */
521 int32, /* ipc_callbacks_id */
522 int32, /* ipc_database_id */
523 int64, /* transaction_id */
524 int64) /* object_store_id */
526 // WebIDBDatabase::createIndex() message.
527 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseCreateIndex,
528 IndexedDBHostMsg_DatabaseCreateIndex_Params)
530 // WebIDBDatabase::deleteIndex() message.
531 IPC_MESSAGE_CONTROL4(IndexedDBHostMsg_DatabaseDeleteIndex,
532 int32, /* ipc_database_id */
533 int64, /* transaction_id */
534 int64, /* object_store_id */
535 int64) /* index_id */
537 // WebIDBDatabase::abort() message.
538 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseAbort,
539 int32, /* ipc_database_id */
540 int64) /* transaction_id */
542 // WebIDBDatabase::commit() message.
543 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit,
544 int32, /* ipc_database_id */
545 int64) /* transaction_id */
547 // WebIDBDatabase::~WebIDBCursor() message.
548 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed,
549 int32 /* ipc_cursor_id */)