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

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

Issue 12326023: Proxy new WebData-based onSuccess() calls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix more .data()-related android bustage Created 7 years, 10 months 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) 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 // The name of the index. 222 // The name of the index.
223 IPC_STRUCT_MEMBER(string16, name) 223 IPC_STRUCT_MEMBER(string16, name)
224 // The keyPath of the index. 224 // The keyPath of the index.
225 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, key_path) 225 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, key_path)
226 // Whether the index created has unique keys. 226 // Whether the index created has unique keys.
227 IPC_STRUCT_MEMBER(bool, unique) 227 IPC_STRUCT_MEMBER(bool, unique)
228 // Whether the index created produces keys for each array entry. 228 // Whether the index created produces keys for each array entry.
229 IPC_STRUCT_MEMBER(bool, multi_entry) 229 IPC_STRUCT_MEMBER(bool, multi_entry)
230 IPC_STRUCT_END() 230 IPC_STRUCT_END()
231 231
232 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessIDBCursorOld_Params)
233 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
234 IPC_STRUCT_MEMBER(int32, ipc_response_id)
235 IPC_STRUCT_MEMBER(int32, ipc_cursor_id)
236 IPC_STRUCT_MEMBER(content::IndexedDBKey, key)
237 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key)
238 IPC_STRUCT_MEMBER(content::SerializedScriptValue, serialized_value)
239 IPC_STRUCT_END()
240
232 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessIDBCursor_Params) 241 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessIDBCursor_Params)
233 IPC_STRUCT_MEMBER(int32, ipc_thread_id) 242 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
234 IPC_STRUCT_MEMBER(int32, ipc_response_id) 243 IPC_STRUCT_MEMBER(int32, ipc_response_id)
235 IPC_STRUCT_MEMBER(int32, ipc_cursor_id) 244 IPC_STRUCT_MEMBER(int32, ipc_cursor_id)
236 IPC_STRUCT_MEMBER(content::IndexedDBKey, key) 245 IPC_STRUCT_MEMBER(content::IndexedDBKey, key)
237 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key) 246 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key)
247 IPC_STRUCT_MEMBER(std::vector<char>, value)
248 IPC_STRUCT_END()
249
250 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorContinueOld_Params)
251 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
252 IPC_STRUCT_MEMBER(int32, ipc_response_id)
253 IPC_STRUCT_MEMBER(int32, ipc_cursor_id)
254 IPC_STRUCT_MEMBER(content::IndexedDBKey, key)
255 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key)
238 IPC_STRUCT_MEMBER(content::SerializedScriptValue, serialized_value) 256 IPC_STRUCT_MEMBER(content::SerializedScriptValue, serialized_value)
239 IPC_STRUCT_END() 257 IPC_STRUCT_END()
240 258
241 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorContinue_Params) 259 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorContinue_Params)
242 IPC_STRUCT_MEMBER(int32, ipc_thread_id) 260 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
243 IPC_STRUCT_MEMBER(int32, ipc_response_id) 261 IPC_STRUCT_MEMBER(int32, ipc_response_id)
244 IPC_STRUCT_MEMBER(int32, ipc_cursor_id) 262 IPC_STRUCT_MEMBER(int32, ipc_cursor_id)
245 IPC_STRUCT_MEMBER(content::IndexedDBKey, key) 263 IPC_STRUCT_MEMBER(content::IndexedDBKey, key)
246 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key) 264 IPC_STRUCT_MEMBER(content::IndexedDBKey, primary_key)
247 IPC_STRUCT_MEMBER(content::SerializedScriptValue, serialized_value) 265 IPC_STRUCT_MEMBER(std::vector<char>, value)
248 IPC_STRUCT_END() 266 IPC_STRUCT_END()
249 267
250 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) 268 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorPrefetchOld_Params)
251 IPC_STRUCT_MEMBER(int32, ipc_thread_id) 269 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
252 IPC_STRUCT_MEMBER(int32, ipc_response_id) 270 IPC_STRUCT_MEMBER(int32, ipc_response_id)
253 IPC_STRUCT_MEMBER(int32, ipc_cursor_id) 271 IPC_STRUCT_MEMBER(int32, ipc_cursor_id)
254 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, keys) 272 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, keys)
255 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, primary_keys) 273 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, primary_keys)
256 IPC_STRUCT_MEMBER(std::vector<content::SerializedScriptValue>, values) 274 IPC_STRUCT_MEMBER(std::vector<content::SerializedScriptValue>, values)
257 IPC_STRUCT_END() 275 IPC_STRUCT_END()
258 276
277 IPC_STRUCT_BEGIN(IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params)
278 IPC_STRUCT_MEMBER(int32, ipc_thread_id)
279 IPC_STRUCT_MEMBER(int32, ipc_response_id)
280 IPC_STRUCT_MEMBER(int32, ipc_cursor_id)
281 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, keys)
282 IPC_STRUCT_MEMBER(std::vector<content::IndexedDBKey>, primary_keys)
283 IPC_STRUCT_MEMBER(std::vector<std::vector<char> >, values)
284 IPC_STRUCT_END()
285
259 // metadata payload for WebIDBMetadata 286 // metadata payload for WebIDBMetadata
260 IPC_STRUCT_BEGIN(IndexedDBIndexMetadata) 287 IPC_STRUCT_BEGIN(IndexedDBIndexMetadata)
261 IPC_STRUCT_MEMBER(int64, id) 288 IPC_STRUCT_MEMBER(int64, id)
262 IPC_STRUCT_MEMBER(string16, name) 289 IPC_STRUCT_MEMBER(string16, name)
263 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, keyPath) 290 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, keyPath)
264 IPC_STRUCT_MEMBER(bool, unique) 291 IPC_STRUCT_MEMBER(bool, unique)
265 IPC_STRUCT_MEMBER(bool, multiEntry) 292 IPC_STRUCT_MEMBER(bool, multiEntry)
266 IPC_STRUCT_END() 293 IPC_STRUCT_END()
267 294
268 IPC_STRUCT_BEGIN(IndexedDBObjectStoreMetadata) 295 IPC_STRUCT_BEGIN(IndexedDBObjectStoreMetadata)
(...skipping 14 matching lines...) Expand all
283 IPC_STRUCT_MEMBER(std::vector<IndexedDBObjectStoreMetadata>, object_stores) 310 IPC_STRUCT_MEMBER(std::vector<IndexedDBObjectStoreMetadata>, object_stores)
284 IPC_STRUCT_END() 311 IPC_STRUCT_END()
285 312
286 // Indexed DB messages sent from the browser to the renderer. 313 // Indexed DB messages sent from the browser to the renderer.
287 314
288 // The thread_id needs to be the first parameter in these messages. In the IO 315 // The thread_id needs to be the first parameter in these messages. In the IO
289 // thread on the renderer/client process, an IDB message filter assumes the 316 // thread on the renderer/client process, an IDB message filter assumes the
290 // thread_id is the first int. 317 // thread_id is the first int.
291 318
292 // IDBCallback message handlers. 319 // IDBCallback message handlers.
320 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessIDBCursorOld,
321 IndexedDBMsg_CallbacksSuccessIDBCursorOld_Params)
293 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessIDBCursor, 322 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessIDBCursor,
294 IndexedDBMsg_CallbacksSuccessIDBCursor_Params) 323 IndexedDBMsg_CallbacksSuccessIDBCursor_Params)
295 324
325 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorContinueOld,
326 IndexedDBMsg_CallbacksSuccessCursorContinueOld_Params)
296 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorContinue, 327 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorContinue,
297 IndexedDBMsg_CallbacksSuccessCursorContinue_Params) 328 IndexedDBMsg_CallbacksSuccessCursorContinue_Params)
298 329
330 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorAdvanceOld,
331 IndexedDBMsg_CallbacksSuccessCursorContinueOld_Params)
299 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorAdvance, 332 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorAdvance,
300 IndexedDBMsg_CallbacksSuccessCursorContinue_Params) 333 IndexedDBMsg_CallbacksSuccessCursorContinue_Params)
301 334
335 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorPrefetchOld,
336 IndexedDBMsg_CallbacksSuccessCursorPrefetchOld_Params)
302 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorPrefetch, 337 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorPrefetch,
303 IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) 338 IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params)
304 339
305 IPC_MESSAGE_CONTROL4(IndexedDBMsg_CallbacksSuccessIDBDatabase, 340 IPC_MESSAGE_CONTROL4(IndexedDBMsg_CallbacksSuccessIDBDatabase,
306 int32 /* ipc_thread_id */, 341 int32 /* ipc_thread_id */,
307 int32 /* ipc_response_id */, 342 int32 /* ipc_response_id */,
308 int32 /* ipc_database_id */, 343 int32 /* ipc_database_id */,
309 IndexedDBDatabaseMetadata) 344 IndexedDBDatabaseMetadata)
310 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIndexedDBKey, 345 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIndexedDBKey,
311 int32 /* ipc_thread_id */, 346 int32 /* ipc_thread_id */,
312 int32 /* ipc_response_id */, 347 int32 /* ipc_response_id */,
313 content::IndexedDBKey /* indexed_db_key */) 348 content::IndexedDBKey /* indexed_db_key */)
314 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessSerializedScriptValue, 349 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessSerializedScriptValue,
315 int32 /* ipc_thread_id */, 350 int32 /* ipc_thread_id */,
316 int32 /* ipc_response_id */, 351 int32 /* ipc_response_id */,
317 content::SerializedScriptValue /* value */) 352 content::SerializedScriptValue /* value */)
353 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessValue,
354 int32 /* ipc_thread_id */,
355 int32 /* ipc_response_id */,
356 std::vector<char> /* value */)
318 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessSerializedScriptValueWithKey, 357 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessSerializedScriptValueWithKey,
319 int32 /* ipc_thread_id */, 358 int32 /* ipc_thread_id */,
320 int32 /* ipc_response_id */, 359 int32 /* ipc_response_id */,
321 content::SerializedScriptValue /* value */, 360 content::SerializedScriptValue /* value */,
322 content::IndexedDBKey /* indexed_db_key */, 361 content::IndexedDBKey /* indexed_db_key */,
323 content::IndexedDBKeyPath /* indexed_db_keypath */) 362 content::IndexedDBKeyPath /* indexed_db_keypath */)
363 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksSuccessValueWithKey,
364 int32 /* ipc_thread_id */,
365 int32 /* ipc_response_id */,
366 std::vector<char> /* value */,
367 content::IndexedDBKey /* indexed_db_key */,
368 content::IndexedDBKeyPath /* indexed_db_keypath */)
324 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessInteger, 369 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessInteger,
325 int32 /* ipc_thread_id */, 370 int32 /* ipc_thread_id */,
326 int32 /* ipc_response_id */, 371 int32 /* ipc_response_id */,
327 int64 /* value */) 372 int64 /* value */)
328 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessUndefined, 373 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksSuccessUndefined,
329 int32 /* ipc_thread_id */, 374 int32 /* ipc_thread_id */,
330 int32 /* ipc_response_id */) 375 int32 /* ipc_response_id */)
331 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessStringList, 376 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessStringList,
332 int32 /* ipc_thread_id */, 377 int32 /* ipc_thread_id */,
333 int32 /* ipc_response_id */, 378 int32 /* ipc_response_id */,
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 547
503 // WebIDBDatabase::commit() message. 548 // WebIDBDatabase::commit() message.
504 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit, 549 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit,
505 int32, /* ipc_database_id */ 550 int32, /* ipc_database_id */
506 int64) /* transaction_id */ 551 int64) /* transaction_id */
507 552
508 // WebIDBDatabase::~WebIDBCursor() message. 553 // WebIDBDatabase::~WebIDBCursor() message.
509 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, 554 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed,
510 int32 /* ipc_cursor_id */) 555 int32 /* ipc_cursor_id */)
511 556
OLDNEW
« no previous file with comments | « content/common/indexed_db/indexed_db_dispatcher.cc ('k') | content/common/indexed_db/proxy_webidbcursor_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698