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 <vector> | 7 #include <vector> |
8 | 8 |
9 #include "content/common/indexed_db/indexed_db_key.h" | 9 #include "content/common/indexed_db/indexed_db_key.h" |
10 #include "content/common/indexed_db/indexed_db_key_path.h" | 10 #include "content/common/indexed_db/indexed_db_key_path.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) | 120 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) |
121 // The database the object store belongs to. | 121 // The database the object store belongs to. |
122 IPC_STRUCT_MEMBER(int32, ipc_database_id) | 122 IPC_STRUCT_MEMBER(int32, ipc_database_id) |
123 // The transaction it's associated with. | 123 // The transaction it's associated with. |
124 IPC_STRUCT_MEMBER(int64, transaction_id) | 124 IPC_STRUCT_MEMBER(int64, transaction_id) |
125 // The object store's id. | 125 // The object store's id. |
126 IPC_STRUCT_MEMBER(int64, object_store_id) | 126 IPC_STRUCT_MEMBER(int64, object_store_id) |
127 // The index's id. | 127 // The index's id. |
128 IPC_STRUCT_MEMBER(int64, index_id) | 128 IPC_STRUCT_MEMBER(int64, index_id) |
129 // The value to set. | 129 // The value to set. |
130 IPC_STRUCT_MEMBER(std::vector<char>, value) | 130 IPC_STRUCT_MEMBER(std::string, value) |
131 // The key to set it on (may not be "valid"/set in some cases). | 131 // The key to set it on (may not be "valid"/set in some cases). |
132 IPC_STRUCT_MEMBER(content::IndexedDBKey, key) | 132 IPC_STRUCT_MEMBER(content::IndexedDBKey, key) |
133 // Whether this is an add or a put. | 133 // Whether this is an add or a put. |
134 IPC_STRUCT_MEMBER(WebKit::WebIDBDatabase::PutMode, put_mode) | 134 IPC_STRUCT_MEMBER(WebKit::WebIDBDatabase::PutMode, put_mode) |
135 // The names of the indexes used below. | 135 // The names of the indexes used below. |
136 IPC_STRUCT_MEMBER(std::vector<int64>, index_ids) | 136 IPC_STRUCT_MEMBER(std::vector<int64>, index_ids) |
137 // The keys for each index, such that each inner vector corresponds | 137 // The keys for each index, such that each inner vector corresponds |
138 // to each index named in index_names, respectively. | 138 // to each index named in index_names, respectively. |
139 IPC_STRUCT_MEMBER(std::vector<std::vector<content::IndexedDBKey> >, | 139 IPC_STRUCT_MEMBER(std::vector<std::vector<content::IndexedDBKey> >, |
140 index_keys) | 140 index_keys) |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 // Whether the index created produces keys for each array entry. | 229 // Whether the index created produces keys for each array entry. |
230 IPC_STRUCT_MEMBER(bool, multi_entry) | 230 IPC_STRUCT_MEMBER(bool, multi_entry) |
231 IPC_STRUCT_END() | 231 IPC_STRUCT_END() |
232 | 232 |
233 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessIDBCursor_Params) | 233 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessIDBCursor_Params) |
234 IPC_STRUCT_MEMBER(int32, ipc_thread_id) | 234 IPC_STRUCT_MEMBER(int32, ipc_thread_id) |
235 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) | 235 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) |
236 IPC_STRUCT_MEMBER(int32, ipc_cursor_id) | 236 IPC_STRUCT_MEMBER(int32, ipc_cursor_id) |
237 IPC_STRUCT_MEMBER(content::IndexedDBKey, key) | 237 IPC_STRUCT_MEMBER(content::IndexedDBKey, key) |
238 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key) | 238 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key) |
239 IPC_STRUCT_MEMBER(std::vector<char>, value) | 239 IPC_STRUCT_MEMBER(std::string, value) |
240 IPC_STRUCT_END() | 240 IPC_STRUCT_END() |
241 | 241 |
242 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorContinue_Params) | 242 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorContinue_Params) |
243 IPC_STRUCT_MEMBER(int32, ipc_thread_id) | 243 IPC_STRUCT_MEMBER(int32, ipc_thread_id) |
244 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) | 244 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) |
245 IPC_STRUCT_MEMBER(int32, ipc_cursor_id) | 245 IPC_STRUCT_MEMBER(int32, ipc_cursor_id) |
246 IPC_STRUCT_MEMBER(content::IndexedDBKey, key) | 246 IPC_STRUCT_MEMBER(content::IndexedDBKey, key) |
247 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key) | 247 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key) |
248 IPC_STRUCT_MEMBER(std::vector<char>, value) | 248 IPC_STRUCT_MEMBER(std::string, value) |
249 IPC_STRUCT_END() | 249 IPC_STRUCT_END() |
250 | 250 |
251 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) | 251 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) |
252 IPC_STRUCT_MEMBER(int32, ipc_thread_id) | 252 IPC_STRUCT_MEMBER(int32, ipc_thread_id) |
253 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) | 253 IPC_STRUCT_MEMBER(int32, ipc_callbacks_id) |
254 IPC_STRUCT_MEMBER(int32, ipc_cursor_id) | 254 IPC_STRUCT_MEMBER(int32, ipc_cursor_id) |
255 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, keys) | 255 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, keys) |
256 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, primary_keys) | 256 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, primary_keys) |
257 IPC_STRUCT_MEMBER(std::vector<std::vector<char> >, values) | 257 IPC_STRUCT_MEMBER(std::vector<std::string>, values) |
258 IPC_STRUCT_END() | 258 IPC_STRUCT_END() |
259 | 259 |
260 // metadata payload for WebIDBMetadata | 260 // metadata payload for WebIDBMetadata |
261 IPC_STRUCT_BEGIN(IndexedDBIndexMetadata) | 261 IPC_STRUCT_BEGIN(IndexedDBIndexMetadata) |
262 IPC_STRUCT_MEMBER(int64, id) | 262 IPC_STRUCT_MEMBER(int64, id) |
263 IPC_STRUCT_MEMBER(string16, name) | 263 IPC_STRUCT_MEMBER(string16, name) |
264 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, keyPath) | 264 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, keyPath) |
265 IPC_STRUCT_MEMBER(bool, unique) | 265 IPC_STRUCT_MEMBER(bool, unique) |
266 IPC_STRUCT_MEMBER(bool, multiEntry) | 266 IPC_STRUCT_MEMBER(bool, multiEntry) |
267 IPC_STRUCT_END() | 267 IPC_STRUCT_END() |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 int32 /* ipc_database_callbacks_id */, | 319 int32 /* ipc_database_callbacks_id */, |
320 int32 /* ipc_database_id */, | 320 int32 /* ipc_database_id */, |
321 IndexedDBDatabaseMetadata) | 321 IndexedDBDatabaseMetadata) |
322 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIndexedDBKey, | 322 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIndexedDBKey, |
323 int32 /* ipc_thread_id */, | 323 int32 /* ipc_thread_id */, |
324 int32 /* ipc_callbacks_id */, | 324 int32 /* ipc_callbacks_id */, |
325 content::IndexedDBKey /* indexed_db_key */) | 325 content::IndexedDBKey /* indexed_db_key */) |
326 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessValue, | 326 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessValue, |
327 int32 /* ipc_thread_id */, | 327 int32 /* ipc_thread_id */, |
328 int32 /* ipc_callbacks_id */, | 328 int32 /* ipc_callbacks_id */, |
329 std::vector<char> /* value */) | 329 std::string /* value */) |
330 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessValueWithKey, | 330 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessValueWithKey, |
331 int32 /* ipc_thread_id */, | 331 int32 /* ipc_thread_id */, |
332 int32 /* ipc_callbacks_id */, | 332 int32 /* ipc_callbacks_id */, |
333 std::vector<char> /* value */, | 333 std::string /* value */, |
334 content::IndexedDBKey /* indexed_db_key */, | 334 content::IndexedDBKey /* indexed_db_key */, |
335 content::IndexedDBKeyPath /* indexed_db_keypath */) | 335 content::IndexedDBKeyPath /* indexed_db_keypath */) |
336 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessInteger, | 336 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessInteger, |
337 int32 /* ipc_thread_id */, | 337 int32 /* ipc_thread_id */, |
338 int32 /* ipc_callbacks_id */, | 338 int32 /* ipc_callbacks_id */, |
339 int64 /* value */) | 339 int64 /* value */) |
340 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessUndefined, | 340 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessUndefined, |
341 int32 /* ipc_thread_id */, | 341 int32 /* ipc_thread_id */, |
342 int32 /* ipc_callbacks_id */) | 342 int32 /* ipc_callbacks_id */) |
343 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessStringList, | 343 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessStringList, |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 | 499 |
500 // WebIDBDatabase::commit() message. | 500 // WebIDBDatabase::commit() message. |
501 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit, | 501 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit, |
502 int32, /* ipc_database_id */ | 502 int32, /* ipc_database_id */ |
503 int64) /* transaction_id */ | 503 int64) /* transaction_id */ |
504 | 504 |
505 // WebIDBDatabase::~WebIDBCursor() message. | 505 // WebIDBDatabase::~WebIDBCursor() message. |
506 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, | 506 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, |
507 int32 /* ipc_cursor_id */) | 507 int32 /* ipc_cursor_id */) |
508 | 508 |
OLD | NEW |