OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 <utility> | 7 #include <utility> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "content/common/indexed_db/indexed_db_key.h" | 10 #include "content/common/indexed_db/indexed_db_key.h" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // The object store's id. | 114 // The object store's id. |
115 IPC_STRUCT_MEMBER(int64, object_store_id) | 115 IPC_STRUCT_MEMBER(int64, object_store_id) |
116 // The index's id. | 116 // The index's id. |
117 IPC_STRUCT_MEMBER(int64, index_id) | 117 IPC_STRUCT_MEMBER(int64, index_id) |
118 // The serialized key range. | 118 // The serialized key range. |
119 IPC_STRUCT_MEMBER(content::IndexedDBKeyRange, key_range) | 119 IPC_STRUCT_MEMBER(content::IndexedDBKeyRange, key_range) |
120 // If this is just retrieving the key | 120 // If this is just retrieving the key |
121 IPC_STRUCT_MEMBER(bool, key_only) | 121 IPC_STRUCT_MEMBER(bool, key_only) |
122 IPC_STRUCT_END() | 122 IPC_STRUCT_END() |
123 | 123 |
| 124 IPC_STRUCT_BEGIN(IndexedDBMsg_BlobOrFileInfo) |
| 125 IPC_STRUCT_MEMBER(bool, is_file) |
| 126 IPC_STRUCT_MEMBER(std::string, uuid) |
| 127 IPC_STRUCT_MEMBER(base::string16, mime_type) |
| 128 IPC_STRUCT_MEMBER(uint64, size) |
| 129 IPC_STRUCT_MEMBER(base::string16, file_path) |
| 130 IPC_STRUCT_MEMBER(base::string16, file_name) |
| 131 IPC_STRUCT_MEMBER(double, last_modified) |
| 132 IPC_STRUCT_END() |
| 133 |
124 // Used to set a value in an object store. | 134 // Used to set a value in an object store. |
125 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabasePut_Params) | 135 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabasePut_Params) |
126 // The id any response should contain. | 136 // The id any response should contain. |
127 IPC_STRUCT_MEMBER(int32, ipc_thread_id) | 137 IPC_STRUCT_MEMBER(int32, ipc_thread_id) |
128 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) | 138 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) |
129 // The database the object store belongs to. | 139 // The database the object store belongs to. |
130 IPC_STRUCT_MEMBER(int32, ipc_database_id) | 140 IPC_STRUCT_MEMBER(int32, ipc_database_id) |
131 // The transaction it's associated with. | 141 // The transaction it's associated with. |
132 IPC_STRUCT_MEMBER(int64, transaction_id) | 142 IPC_STRUCT_MEMBER(int64, transaction_id) |
133 // The object store's id. | 143 // The object store's id. |
134 IPC_STRUCT_MEMBER(int64, object_store_id) | 144 IPC_STRUCT_MEMBER(int64, object_store_id) |
135 // The index's id. | 145 // The index's id. |
136 IPC_STRUCT_MEMBER(int64, index_id) | 146 IPC_STRUCT_MEMBER(int64, index_id) |
137 // The value to set. | 147 // The value to set. |
138 IPC_STRUCT_MEMBER(std::string, value) | 148 IPC_STRUCT_MEMBER(std::string, value) |
139 // The key to set it on (may not be "valid"/set in some cases). | 149 // The key to set it on (may not be "valid"/set in some cases). |
140 IPC_STRUCT_MEMBER(content::IndexedDBKey, key) | 150 IPC_STRUCT_MEMBER(content::IndexedDBKey, key) |
141 // Whether this is an add or a put. | 151 // Whether this is an add or a put. |
142 IPC_STRUCT_MEMBER(blink::WebIDBDatabase::PutMode, put_mode) | 152 IPC_STRUCT_MEMBER(blink::WebIDBDatabase::PutMode, put_mode) |
143 // The index ids and the list of keys for each index. | 153 // The index ids and the list of keys for each index. |
144 IPC_STRUCT_MEMBER(std::vector<IndexKeys>, index_keys) | 154 IPC_STRUCT_MEMBER(std::vector<IndexKeys>, index_keys) |
| 155 // Sideband data for any blob or file encoded in value. |
| 156 IPC_STRUCT_MEMBER(std::vector<IndexedDBMsg_BlobOrFileInfo>, blob_or_file_info) |
145 IPC_STRUCT_END() | 157 IPC_STRUCT_END() |
146 | 158 |
147 // Used to open both cursors and object cursors in IndexedDB. | 159 // Used to open both cursors and object cursors in IndexedDB. |
148 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseOpenCursor_Params) | 160 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseOpenCursor_Params) |
149 // The response should have these ids. | 161 // The response should have these ids. |
150 IPC_STRUCT_MEMBER(int32, ipc_thread_id) | 162 IPC_STRUCT_MEMBER(int32, ipc_thread_id) |
151 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) | 163 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) |
152 // The database the object store belongs to. | 164 // The database the object store belongs to. |
153 IPC_STRUCT_MEMBER(int32, ipc_database_id) | 165 IPC_STRUCT_MEMBER(int32, ipc_database_id) |
154 // The transaction this request belongs to. | 166 // The transaction this request belongs to. |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 IPC_STRUCT_MEMBER(bool, multi_entry) | 243 IPC_STRUCT_MEMBER(bool, multi_entry) |
232 IPC_STRUCT_END() | 244 IPC_STRUCT_END() |
233 | 245 |
234 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessIDBCursor_Params) | 246 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessIDBCursor_Params) |
235 IPC_STRUCT_MEMBER(int32, ipc_thread_id) | 247 IPC_STRUCT_MEMBER(int32, ipc_thread_id) |
236 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) | 248 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) |
237 IPC_STRUCT_MEMBER(int32, ipc_cursor_id) | 249 IPC_STRUCT_MEMBER(int32, ipc_cursor_id) |
238 IPC_STRUCT_MEMBER(content::IndexedDBKey, key) | 250 IPC_STRUCT_MEMBER(content::IndexedDBKey, key) |
239 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key) | 251 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key) |
240 IPC_STRUCT_MEMBER(std::string, value) | 252 IPC_STRUCT_MEMBER(std::string, value) |
| 253 // Sideband data for any blob or file encoded in value. |
| 254 IPC_STRUCT_MEMBER(std::vector<IndexedDBMsg_BlobOrFileInfo>, blob_or_file_info) |
241 IPC_STRUCT_END() | 255 IPC_STRUCT_END() |
242 | 256 |
243 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorContinue_Params) | 257 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorContinue_Params) |
244 IPC_STRUCT_MEMBER(int32, ipc_thread_id) | 258 IPC_STRUCT_MEMBER(int32, ipc_thread_id) |
245 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) | 259 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) |
246 IPC_STRUCT_MEMBER(int32, ipc_cursor_id) | 260 IPC_STRUCT_MEMBER(int32, ipc_cursor_id) |
247 IPC_STRUCT_MEMBER(content::IndexedDBKey, key) | 261 IPC_STRUCT_MEMBER(content::IndexedDBKey, key) |
248 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key) | 262 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key) |
249 IPC_STRUCT_MEMBER(std::string, value) | 263 IPC_STRUCT_MEMBER(std::string, value) |
| 264 // Sideband data for any blob or file encoded in value. |
| 265 IPC_STRUCT_MEMBER(std::vector<IndexedDBMsg_BlobOrFileInfo>, blob_or_file_info) |
250 IPC_STRUCT_END() | 266 IPC_STRUCT_END() |
251 | 267 |
252 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) | 268 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) |
253 IPC_STRUCT_MEMBER(int32, ipc_thread_id) | 269 IPC_STRUCT_MEMBER(int32, ipc_thread_id) |
254 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) | 270 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) |
255 IPC_STRUCT_MEMBER(int32, ipc_cursor_id) | 271 IPC_STRUCT_MEMBER(int32, ipc_cursor_id) |
256 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, keys) | 272 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, keys) |
257 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, primary_keys) | 273 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, primary_keys) |
258 IPC_STRUCT_MEMBER(std::vector<std::string>, values) | 274 IPC_STRUCT_MEMBER(std::vector<std::string>, values) |
| 275 // Sideband data for any blob or file encoded in value. |
| 276 IPC_STRUCT_MEMBER(std::vector<std::vector<IndexedDBMsg_BlobOrFileInfo> >, |
| 277 blob_or_file_infos) |
| 278 IPC_STRUCT_END() |
| 279 |
| 280 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessValue_Params) |
| 281 IPC_STRUCT_MEMBER(int32, ipc_thread_id) |
| 282 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) |
| 283 IPC_STRUCT_MEMBER(std::string, value) |
| 284 // Sideband data for any blob or file encoded in value. |
| 285 IPC_STRUCT_MEMBER(std::vector<IndexedDBMsg_BlobOrFileInfo>, blob_or_file_info) |
| 286 IPC_STRUCT_END() |
| 287 |
| 288 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessValueWithKey_Params) |
| 289 IPC_STRUCT_MEMBER(int32, ipc_thread_id) |
| 290 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) |
| 291 IPC_STRUCT_MEMBER(std::string, value) |
| 292 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key) |
| 293 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, key_path) |
| 294 // Sideband data for any blob or file encoded in value. |
| 295 IPC_STRUCT_MEMBER(std::vector<IndexedDBMsg_BlobOrFileInfo>, blob_or_file_info) |
259 IPC_STRUCT_END() | 296 IPC_STRUCT_END() |
260 | 297 |
261 IPC_STRUCT_BEGIN(IndexedDBIndexMetadata) | 298 IPC_STRUCT_BEGIN(IndexedDBIndexMetadata) |
262 IPC_STRUCT_MEMBER(int64, id) | 299 IPC_STRUCT_MEMBER(int64, id) |
263 IPC_STRUCT_MEMBER(base::string16, name) | 300 IPC_STRUCT_MEMBER(base::string16, name) |
264 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, keyPath) | 301 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, keyPath) |
265 IPC_STRUCT_MEMBER(bool, unique) | 302 IPC_STRUCT_MEMBER(bool, unique) |
266 IPC_STRUCT_MEMBER(bool, multiEntry) | 303 IPC_STRUCT_MEMBER(bool, multiEntry) |
267 IPC_STRUCT_END() | 304 IPC_STRUCT_END() |
268 | 305 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessIDBDatabase, | 354 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessIDBDatabase, |
318 int32 /* ipc_thread_id */, | 355 int32 /* ipc_thread_id */, |
319 int32 /* ipc_callbacks_id */, | 356 int32 /* ipc_callbacks_id */, |
320 int32 /* ipc_database_callbacks_id */, | 357 int32 /* ipc_database_callbacks_id */, |
321 int32 /* ipc_database_id */, | 358 int32 /* ipc_database_id */, |
322 IndexedDBDatabaseMetadata) | 359 IndexedDBDatabaseMetadata) |
323 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIndexedDBKey, | 360 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIndexedDBKey, |
324 int32 /* ipc_thread_id */, | 361 int32 /* ipc_thread_id */, |
325 int32 /* ipc_callbacks_id */, | 362 int32 /* ipc_callbacks_id */, |
326 content::IndexedDBKey /* indexed_db_key */) | 363 content::IndexedDBKey /* indexed_db_key */) |
327 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessValue, | 364 |
328 int32 /* ipc_thread_id */, | 365 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessValue, |
329 int32 /* ipc_callbacks_id */, | 366 IndexedDBMsg_CallbacksSuccessValue_Params) |
330 std::string /* value */) | 367 |
331 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessValueWithKey, | 368 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessValueWithKey, |
332 int32 /* ipc_thread_id */, | 369 IndexedDBMsg_CallbacksSuccessValueWithKey_Params) |
333 int32 /* ipc_callbacks_id */, | 370 |
334 std::string /* value */, | |
335 content::IndexedDBKey /* indexed_db_key */, | |
336 content::IndexedDBKeyPath /* indexed_db_keypath */) | |
337 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessInteger, | 371 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessInteger, |
338 int32 /* ipc_thread_id */, | 372 int32 /* ipc_thread_id */, |
339 int32 /* ipc_callbacks_id */, | 373 int32 /* ipc_callbacks_id */, |
340 int64 /* value */) | 374 int64 /* value */) |
341 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessUndefined, | 375 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessUndefined, |
342 int32 /* ipc_thread_id */, | 376 int32 /* ipc_thread_id */, |
343 int32 /* ipc_callbacks_id */) | 377 int32 /* ipc_callbacks_id */) |
344 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessStringList, | 378 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessStringList, |
345 int32 /* ipc_thread_id */, | 379 int32 /* ipc_thread_id */, |
346 int32 /* ipc_callbacks_id */, | 380 int32 /* ipc_callbacks_id */, |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
503 int64) /* transaction_id */ | 537 int64) /* transaction_id */ |
504 | 538 |
505 // WebIDBDatabase::commit() message. | 539 // WebIDBDatabase::commit() message. |
506 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit, | 540 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit, |
507 int32, /* ipc_database_id */ | 541 int32, /* ipc_database_id */ |
508 int64) /* transaction_id */ | 542 int64) /* transaction_id */ |
509 | 543 |
510 // WebIDBDatabase::~WebIDBCursor() message. | 544 // WebIDBDatabase::~WebIDBCursor() message. |
511 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, | 545 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, |
512 int32 /* ipc_cursor_id */) | 546 int32 /* ipc_cursor_id */) |
OLD | NEW |