Update UI for WebStore bundle installs.
[chromium-blink-merge.git] / content / common / indexed_db / indexed_db_messages.h
blob57e95cdb53147371fd40bd09fb52f417787b7cf8
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 IPC_STRUCT_BEGIN_WITH_PARENT(IndexedDBMsg_ReturnValue, IndexedDBMsg_Value)
147 IPC_STRUCT_TRAITS_PARENT(IndexedDBMsg_Value)
148 // Optional primary key & path used only when key generator specified.
149 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key)
150 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, key_path)
151 IPC_STRUCT_END()
153 // Used to set a value in an object store.
154 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabasePut_Params)
155 // The id any response should contain.
156 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
157 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
158 // The database the object store belongs to.
159 IPC_STRUCT_MEMBER(int32, ipc_database_id)
160 // The transaction it's associated with.
161 IPC_STRUCT_MEMBER(int64, transaction_id)
162 // The object store's id.
163 IPC_STRUCT_MEMBER(int64, object_store_id)
164 // The index's id.
165 IPC_STRUCT_MEMBER(int64, index_id)
166 // The value to set.
167 IPC_STRUCT_MEMBER(IndexedDBMsg_Value, value)
168 // The key to set it on (may not be "valid"/set in some cases).
169 IPC_STRUCT_MEMBER(content::IndexedDBKey, key)
170 // Whether this is an add or a put.
171 IPC_STRUCT_MEMBER(blink::WebIDBPutMode, put_mode)
172 // The index ids and the list of keys for each index.
173 IPC_STRUCT_MEMBER(std::vector<IndexKeys>, index_keys)
174 IPC_STRUCT_END()
176 // Used to open both cursors and object cursors in IndexedDB.
177 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseOpenCursor_Params)
178 // The response should have these ids.
179 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
180 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
181 // The database the object store belongs to.
182 IPC_STRUCT_MEMBER(int32, ipc_database_id)
183 // The transaction this request belongs to.
184 IPC_STRUCT_MEMBER(int64, transaction_id)
185 // The object store.
186 IPC_STRUCT_MEMBER(int64, object_store_id)
187 // The index if any.
188 IPC_STRUCT_MEMBER(int64, index_id)
189 // The serialized key range.
190 IPC_STRUCT_MEMBER(content::IndexedDBKeyRange, key_range)
191 // The direction of this cursor.
192 IPC_STRUCT_MEMBER(blink::WebIDBCursorDirection, direction)
193 // If this is just retrieving the key
194 IPC_STRUCT_MEMBER(bool, key_only)
195 // The priority of this cursor.
196 IPC_STRUCT_MEMBER(blink::WebIDBTaskType, task_type)
197 IPC_STRUCT_END()
199 // Used to open both cursors and object cursors in IndexedDB.
200 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCount_Params)
201 // The response should have these ids.
202 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
203 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
204 // The transaction this request belongs to.
205 IPC_STRUCT_MEMBER(int64, transaction_id)
206 // The IPC id of the database.
207 IPC_STRUCT_MEMBER(int32, ipc_database_id)
208 // The object store.
209 IPC_STRUCT_MEMBER(int64, object_store_id)
210 // The index if any.
211 IPC_STRUCT_MEMBER(int64, index_id)
212 // The serialized key range.
213 IPC_STRUCT_MEMBER(content::IndexedDBKeyRange, key_range)
214 IPC_STRUCT_END()
216 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseDeleteRange_Params)
217 // The response should have these ids.
218 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
219 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
220 // The IPC id of the database.
221 IPC_STRUCT_MEMBER(int32, ipc_database_id)
222 // The transaction this request belongs to.
223 IPC_STRUCT_MEMBER(int64, transaction_id)
224 // The object store.
225 IPC_STRUCT_MEMBER(int64, object_store_id)
226 // The serialized key range.
227 IPC_STRUCT_MEMBER(content::IndexedDBKeyRange, key_range)
228 IPC_STRUCT_END()
230 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseSetIndexKeys_Params)
231 // The IPC id of the database.
232 IPC_STRUCT_MEMBER(int32, ipc_database_id)
233 // The transaction this request belongs to.
234 IPC_STRUCT_MEMBER(int64, transaction_id)
235 // The object store's id.
236 IPC_STRUCT_MEMBER(int64, object_store_id)
237 // The object store key that we're setting index keys for.
238 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key)
239 // The index ids and the list of keys for each index.
240 IPC_STRUCT_MEMBER(std::vector<IndexKeys>, index_keys)
241 IPC_STRUCT_END()
243 // Used to create an index.
244 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseCreateIndex_Params)
245 // The transaction this is associated with.
246 IPC_STRUCT_MEMBER(int64, transaction_id)
247 // The database being used.
248 IPC_STRUCT_MEMBER(int32, ipc_database_id)
249 // The object store the index belongs to.
250 IPC_STRUCT_MEMBER(int64, object_store_id)
251 // The storage id of the index.
252 IPC_STRUCT_MEMBER(int64, index_id)
253 // The name of the index.
254 IPC_STRUCT_MEMBER(base::string16, name)
255 // The keyPath of the index.
256 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, key_path)
257 // Whether the index created has unique keys.
258 IPC_STRUCT_MEMBER(bool, unique)
259 // Whether the index created produces keys for each array entry.
260 IPC_STRUCT_MEMBER(bool, multi_entry)
261 IPC_STRUCT_END()
263 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessIDBCursor_Params)
264 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
265 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
266 IPC_STRUCT_MEMBER(int32, ipc_cursor_id)
267 IPC_STRUCT_MEMBER(content::IndexedDBKey, key)
268 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key)
269 IPC_STRUCT_MEMBER(IndexedDBMsg_Value, value)
270 IPC_STRUCT_END()
272 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorContinue_Params)
273 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
274 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
275 IPC_STRUCT_MEMBER(int32, ipc_cursor_id)
276 IPC_STRUCT_MEMBER(content::IndexedDBKey, key)
277 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key)
278 IPC_STRUCT_MEMBER(IndexedDBMsg_Value, value)
279 IPC_STRUCT_END()
281 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params)
282 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
283 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
284 IPC_STRUCT_MEMBER(int32, ipc_cursor_id)
285 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, keys)
286 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, primary_keys)
287 IPC_STRUCT_MEMBER(std::vector<IndexedDBMsg_Value>, values)
288 IPC_STRUCT_END()
290 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessValue_Params)
291 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
292 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
293 IPC_STRUCT_MEMBER(IndexedDBMsg_ReturnValue, value)
294 IPC_STRUCT_END()
296 IPC_STRUCT_BEGIN(IndexedDBIndexMetadata)
297 IPC_STRUCT_MEMBER(int64, id)
298 IPC_STRUCT_MEMBER(base::string16, name)
299 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, key_path)
300 IPC_STRUCT_MEMBER(bool, unique)
301 IPC_STRUCT_MEMBER(bool, multi_entry)
302 IPC_STRUCT_END()
304 IPC_STRUCT_BEGIN(IndexedDBObjectStoreMetadata)
305 IPC_STRUCT_MEMBER(int64, id)
306 IPC_STRUCT_MEMBER(base::string16, name)
307 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, key_path)
308 IPC_STRUCT_MEMBER(bool, auto_increment)
309 IPC_STRUCT_MEMBER(int64, max_index_id)
310 IPC_STRUCT_MEMBER(std::vector<IndexedDBIndexMetadata>, indexes)
311 IPC_STRUCT_END()
313 IPC_STRUCT_BEGIN(IndexedDBDatabaseMetadata)
314 IPC_STRUCT_MEMBER(int64, id)
315 IPC_STRUCT_MEMBER(base::string16, name)
316 IPC_STRUCT_MEMBER(base::string16, version)
317 IPC_STRUCT_MEMBER(int64, int_version)
318 IPC_STRUCT_MEMBER(int64, max_object_store_id)
319 IPC_STRUCT_MEMBER(std::vector<IndexedDBObjectStoreMetadata>, object_stores)
320 IPC_STRUCT_END()
322 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksUpgradeNeeded_Params)
323 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
324 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id)
325 IPC_STRUCT_MEMBER(int32, ipc_database_callbacks_id)
326 IPC_STRUCT_MEMBER(int32, ipc_database_id)
327 IPC_STRUCT_MEMBER(int64, old_version)
328 IPC_STRUCT_MEMBER(blink::WebIDBDataLoss, data_loss)
329 IPC_STRUCT_MEMBER(std::string, data_loss_message)
330 IPC_STRUCT_MEMBER(IndexedDBDatabaseMetadata, idb_metadata)
331 IPC_STRUCT_END()
333 // Indexed DB messages sent from the browser to the renderer.
335 // The thread_id needs to be the first parameter in these messages. In the IO
336 // thread on the renderer/client process, an IDB message filter assumes the
337 // thread_id is the first int.
339 // IDBCallback message handlers.
340 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessIDBCursor,
341 IndexedDBMsg_CallbacksSuccessIDBCursor_Params)
343 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorContinue,
344 IndexedDBMsg_CallbacksSuccessCursorContinue_Params)
346 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorAdvance,
347 IndexedDBMsg_CallbacksSuccessCursorContinue_Params)
349 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorPrefetch,
350 IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params)
352 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessIDBDatabase,
353 int32 /* ipc_thread_id */,
354 int32 /* ipc_callbacks_id */,
355 int32 /* ipc_database_callbacks_id */,
356 int32 /* ipc_database_id */,
357 IndexedDBDatabaseMetadata)
358 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIndexedDBKey,
359 int32 /* ipc_thread_id */,
360 int32 /* ipc_callbacks_id */,
361 content::IndexedDBKey /* indexed_db_key */)
363 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessValue,
364 IndexedDBMsg_CallbacksSuccessValue_Params)
366 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessInteger,
367 int32 /* ipc_thread_id */,
368 int32 /* ipc_callbacks_id */,
369 int64 /* value */)
370 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessUndefined,
371 int32 /* ipc_thread_id */,
372 int32 /* ipc_callbacks_id */)
373 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessStringList,
374 int32 /* ipc_thread_id */,
375 int32 /* ipc_callbacks_id */,
376 std::vector<base::string16> /* dom_string_list */)
377 IPC_MESSAGE_CONTROL4(IndexedDBMsg_CallbacksError,
378 int32 /* ipc_thread_id */,
379 int32 /* ipc_callbacks_id */,
380 int /* code */,
381 base::string16 /* message */)
382 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksBlocked,
383 int32 /* ipc_thread_id */,
384 int32 /* ipc_callbacks_id */)
385 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksIntBlocked,
386 int32 /* ipc_thread_id */,
387 int32 /* ipc_callbacks_id */,
388 int64 /* existing_version */)
389 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksUpgradeNeeded,
390 IndexedDBMsg_CallbacksUpgradeNeeded_Params)
392 // IDBDatabaseCallback message handlers
393 IPC_MESSAGE_CONTROL2(IndexedDBMsg_DatabaseCallbacksForcedClose,
394 int32, /* ipc_thread_id */
395 int32) /* ipc_database_callbacks_id */
396 IPC_MESSAGE_CONTROL4(IndexedDBMsg_DatabaseCallbacksIntVersionChange,
397 int32, /* ipc_thread_id */
398 int32, /* ipc_database_callbacks_id */
399 int64, /* old_version */
400 int64) /* new_version */
401 IPC_MESSAGE_CONTROL5(IndexedDBMsg_DatabaseCallbacksAbort,
402 int32, /* ipc_thread_id */
403 int32, /* ipc_database_callbacks_id */
404 int64, /* transaction_id */
405 int, /* code */
406 base::string16) /* message */
407 IPC_MESSAGE_CONTROL3(IndexedDBMsg_DatabaseCallbacksComplete,
408 int32, /* ipc_thread_id */
409 int32, /* ipc_database_callbacks_id */
410 int64) /* transaction_id */
412 // Indexed DB messages sent from the renderer to the browser.
414 // WebIDBCursor::advance() message.
415 IPC_MESSAGE_CONTROL4(IndexedDBHostMsg_CursorAdvance,
416 int32, /* ipc_cursor_id */
417 int32, /* ipc_thread_id */
418 int32, /* ipc_callbacks_id */
419 uint32) /* count */
421 // WebIDBCursor::continue() message.
422 IPC_MESSAGE_CONTROL5(IndexedDBHostMsg_CursorContinue,
423 int32, /* ipc_cursor_id */
424 int32, /* ipc_thread_id */
425 int32, /* ipc_callbacks_id */
426 content::IndexedDBKey, /* key */
427 content::IndexedDBKey) /* primary_key */
429 // WebIDBCursor::prefetchContinue() message.
430 IPC_MESSAGE_CONTROL4(IndexedDBHostMsg_CursorPrefetch,
431 int32, /* ipc_cursor_id */
432 int32, /* ipc_thread_id */
433 int32, /* ipc_callbacks_id */
434 int32) /* n */
436 // WebIDBCursor::prefetchReset() message.
437 IPC_MESSAGE_CONTROL3(IndexedDBHostMsg_CursorPrefetchReset,
438 int32, /* ipc_cursor_id */
439 int32, /* used_prefetches */
440 int32) /* used_prefetches */
442 // WebIDBFactory::getDatabaseNames() message.
443 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryGetDatabaseNames,
444 IndexedDBHostMsg_FactoryGetDatabaseNames_Params)
446 // WebIDBFactory::open() message.
447 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryOpen,
448 IndexedDBHostMsg_FactoryOpen_Params)
450 // WebIDBFactory::deleteDatabase() message.
451 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryDeleteDatabase,
452 IndexedDBHostMsg_FactoryDeleteDatabase_Params)
454 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_AckReceivedBlobs,
455 std::vector<std::string>) /* uuids */
457 // WebIDBDatabase::createObjectStore() message.
458 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseCreateObjectStore,
459 IndexedDBHostMsg_DatabaseCreateObjectStore_Params)
461 // WebIDBDatabase::deleteObjectStore() message.
462 IPC_MESSAGE_CONTROL3(IndexedDBHostMsg_DatabaseDeleteObjectStore,
463 int32, /* ipc_database_id */
464 int64, /* transaction_id */
465 int64) /* object_store_id */
467 // WebIDBDatabase::createTransaction() message.
468 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseCreateTransaction,
469 IndexedDBHostMsg_DatabaseCreateTransaction_Params)
471 // WebIDBDatabase::close() message.
472 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseClose,
473 int32 /* ipc_database_id */)
475 // WebIDBDatabase::versionChangeIgnored() message.
476 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseVersionChangeIgnored,
477 int32 /* ipc_database_id */)
479 // WebIDBDatabase::~WebIDBDatabase() message.
480 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseDestroyed,
481 int32 /* ipc_database_id */)
483 // WebIDBDatabase::get() message.
484 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseGet,
485 IndexedDBHostMsg_DatabaseGet_Params)
487 // WebIDBDatabase::put() message.
488 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabasePut,
489 IndexedDBHostMsg_DatabasePut_Params)
491 // WebIDBDatabase::setIndexKeys() message.
492 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseSetIndexKeys,
493 IndexedDBHostMsg_DatabaseSetIndexKeys_Params)
495 // WebIDBDatabase::setIndexesReady() message.
496 IPC_MESSAGE_CONTROL4(IndexedDBHostMsg_DatabaseSetIndexesReady,
497 int32, /* ipc_database_id */
498 int64, /* transaction_id */
499 int64, /* object_store_id */
500 std::vector<int64>) /* index_ids */
502 // WebIDBDatabase::openCursor() message.
503 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseOpenCursor,
504 IndexedDBHostMsg_DatabaseOpenCursor_Params)
506 // WebIDBDatabase::count() message.
507 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseCount,
508 IndexedDBHostMsg_DatabaseCount_Params)
510 // WebIDBDatabase::deleteRange() message.
511 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseDeleteRange,
512 IndexedDBHostMsg_DatabaseDeleteRange_Params)
514 // WebIDBDatabase::clear() message.
515 IPC_MESSAGE_CONTROL5(IndexedDBHostMsg_DatabaseClear,
516 int32, /* ipc_thread_id */
517 int32, /* ipc_callbacks_id */
518 int32, /* ipc_database_id */
519 int64, /* transaction_id */
520 int64) /* object_store_id */
522 // WebIDBDatabase::createIndex() message.
523 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseCreateIndex,
524 IndexedDBHostMsg_DatabaseCreateIndex_Params)
526 // WebIDBDatabase::deleteIndex() message.
527 IPC_MESSAGE_CONTROL4(IndexedDBHostMsg_DatabaseDeleteIndex,
528 int32, /* ipc_database_id */
529 int64, /* transaction_id */
530 int64, /* object_store_id */
531 int64) /* index_id */
533 // WebIDBDatabase::abort() message.
534 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseAbort,
535 int32, /* ipc_database_id */
536 int64) /* transaction_id */
538 // WebIDBDatabase::commit() message.
539 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit,
540 int32, /* ipc_database_id */
541 int64) /* transaction_id */
543 // WebIDBDatabase::~WebIDBCursor() message.
544 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed,
545 int32 /* ipc_cursor_id */)