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

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

Issue 12129002: Remove deprecated IPC code for onUpgradeNeeded/onSuccess/metadata (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 295
296 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorContinue, 296 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorContinue,
297 IndexedDBMsg_CallbacksSuccessCursorContinue_Params) 297 IndexedDBMsg_CallbacksSuccessCursorContinue_Params)
298 298
299 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorAdvance, 299 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorAdvance,
300 IndexedDBMsg_CallbacksSuccessCursorContinue_Params) 300 IndexedDBMsg_CallbacksSuccessCursorContinue_Params)
301 301
302 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorPrefetch, 302 IPC_MESSAGE_CONTROL1(IndexedDBMsg_CallbacksSuccessCursorPrefetch,
303 IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params) 303 IndexedDBMsg_CallbacksSuccessCursorPrefetch_Params)
304 304
305 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIDBDatabaseOld,
306 int32 /* ipc_thread_id */,
307 int32 /* ipc_response_id */,
308 int32 /* ipc_database_id */)
309 IPC_MESSAGE_CONTROL4(IndexedDBMsg_CallbacksSuccessIDBDatabase, 305 IPC_MESSAGE_CONTROL4(IndexedDBMsg_CallbacksSuccessIDBDatabase,
310 int32 /* ipc_thread_id */, 306 int32 /* ipc_thread_id */,
311 int32 /* ipc_response_id */, 307 int32 /* ipc_response_id */,
312 int32 /* ipc_database_id */, 308 int32 /* ipc_database_id */,
313 IndexedDBDatabaseMetadata) 309 IndexedDBDatabaseMetadata)
314 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIndexedDBKey, 310 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessIndexedDBKey,
315 int32 /* ipc_thread_id */, 311 int32 /* ipc_thread_id */,
316 int32 /* ipc_response_id */, 312 int32 /* ipc_response_id */,
317 content::IndexedDBKey /* indexed_db_key */) 313 content::IndexedDBKey /* indexed_db_key */)
318 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessSerializedScriptValue, 314 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksSuccessSerializedScriptValue,
(...skipping 22 matching lines...) Expand all
341 int32 /* ipc_response_id */, 337 int32 /* ipc_response_id */,
342 int /* code */, 338 int /* code */,
343 string16 /* message */) 339 string16 /* message */)
344 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksBlocked, 340 IPC_MESSAGE_CONTROL2(IndexedDBMsg_CallbacksBlocked,
345 int32 /* ipc_thread_id */, 341 int32 /* ipc_thread_id */,
346 int32 /* ipc_response_id */) 342 int32 /* ipc_response_id */)
347 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksIntBlocked, 343 IPC_MESSAGE_CONTROL3(IndexedDBMsg_CallbacksIntBlocked,
348 int32 /* ipc_thread_id */, 344 int32 /* ipc_thread_id */,
349 int32 /* ipc_response_id */, 345 int32 /* ipc_response_id */,
350 int64 /* existing_version */) 346 int64 /* existing_version */)
351 IPC_MESSAGE_CONTROL4(IndexedDBMsg_CallbacksUpgradeNeededOld,
352 int32, /* ipc_thread_id */
353 int32, /* ipc_response_id */
354 int32, /* ipc_database_id */
355 int64) /* old_version */
356 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksUpgradeNeeded, 347 IPC_MESSAGE_CONTROL5(IndexedDBMsg_CallbacksUpgradeNeeded,
357 int32, /* ipc_thread_id */ 348 int32, /* ipc_thread_id */
358 int32, /* ipc_response_id */ 349 int32, /* ipc_response_id */
359 int32, /* ipc_database_id */ 350 int32, /* ipc_database_id */
360 int64, /* old_version */ 351 int64, /* old_version */
361 IndexedDBDatabaseMetadata) /* metadata */ 352 IndexedDBDatabaseMetadata) /* metadata */
362 353
363 // IDBDatabaseCallback message handlers 354 // IDBDatabaseCallback message handlers
364 IPC_MESSAGE_CONTROL2(IndexedDBMsg_DatabaseCallbacksForcedClose, 355 IPC_MESSAGE_CONTROL2(IndexedDBMsg_DatabaseCallbacksForcedClose,
365 int32, /* ipc_thread_id */ 356 int32, /* ipc_thread_id */
366 int32) /* ipc_database_id */ 357 int32) /* ipc_database_id */
367 IPC_MESSAGE_CONTROL3(IndexedDBMsg_DatabaseCallbacksVersionChange, 358 IPC_MESSAGE_CONTROL3(IndexedDBMsg_DatabaseCallbacksVersionChange,
368 int32, /* ipc_thread_id */ 359 int32, /* ipc_thread_id */
369 int32, /* ipc_database_id */ 360 int32, /* ipc_database_id */
370 string16) /* new_version */ 361 string16) /* new_version */
371 362
372 IPC_MESSAGE_CONTROL4(IndexedDBMsg_DatabaseCallbacksIntVersionChange, 363 IPC_MESSAGE_CONTROL4(IndexedDBMsg_DatabaseCallbacksIntVersionChange,
373 int32, /* ipc_thread_id */ 364 int32, /* ipc_thread_id */
374 int32, /* ipc_database_id */ 365 int32, /* ipc_database_id */
375 int64, /* old_version */ 366 int64, /* old_version */
376 int64) /* new_version */ 367 int64) /* new_version */
377 // IDBTransactionCallback message handlers.
378 IPC_MESSAGE_CONTROL5(IndexedDBMsg_DatabaseCallbacksAbort, 368 IPC_MESSAGE_CONTROL5(IndexedDBMsg_DatabaseCallbacksAbort,
379 int32, /* ipc_thread_id */ 369 int32, /* ipc_thread_id */
380 int32, /* ipc_database_id */ 370 int32, /* ipc_database_id */
381 int64, /* transaction_id */ 371 int64, /* transaction_id */
382 int, /* code */ 372 int, /* code */
383 string16) /* message */ 373 string16) /* message */
384 IPC_MESSAGE_CONTROL3(IndexedDBMsg_DatabaseCallbacksComplete, 374 IPC_MESSAGE_CONTROL3(IndexedDBMsg_DatabaseCallbacksComplete,
385 int32, /* ipc_thread_id */ 375 int32, /* ipc_thread_id */
386 int32, /* ipc_database_id */ 376 int32, /* ipc_database_id */
387 int64) /* transaction_id */ 377 int64) /* transaction_id */
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 IndexedDBHostMsg_FactoryGetDatabaseNames_Params) 416 IndexedDBHostMsg_FactoryGetDatabaseNames_Params)
427 417
428 // WebIDBFactory::open() message. 418 // WebIDBFactory::open() message.
429 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryOpen, 419 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryOpen,
430 IndexedDBHostMsg_FactoryOpen_Params) 420 IndexedDBHostMsg_FactoryOpen_Params)
431 421
432 // WebIDBFactory::deleteDatabase() message. 422 // WebIDBFactory::deleteDatabase() message.
433 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryDeleteDatabase, 423 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryDeleteDatabase,
434 IndexedDBHostMsg_FactoryDeleteDatabase_Params) 424 IndexedDBHostMsg_FactoryDeleteDatabase_Params)
435 425
436 // WebIDBDatabase::metadata() message.
437 IPC_SYNC_MESSAGE_CONTROL1_1(IndexedDBHostMsg_DatabaseMetadata,
438 int32, /* ipc_database_id */
439 IndexedDBDatabaseMetadata /* metadata */)
440
441 // WebIDBDatabase::createObjectStore() message. 426 // WebIDBDatabase::createObjectStore() message.
442 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseCreateObjectStore, 427 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseCreateObjectStore,
443 IndexedDBHostMsg_DatabaseCreateObjectStore_Params) 428 IndexedDBHostMsg_DatabaseCreateObjectStore_Params)
444 429
445 // WebIDBDatabase::deleteObjectStore() message. 430 // WebIDBDatabase::deleteObjectStore() message.
446 IPC_MESSAGE_CONTROL3(IndexedDBHostMsg_DatabaseDeleteObjectStore, 431 IPC_MESSAGE_CONTROL3(IndexedDBHostMsg_DatabaseDeleteObjectStore,
447 int32, /* ipc_database_id */ 432 int32, /* ipc_database_id */
448 int64, /* transaction_id */ 433 int64, /* transaction_id */
449 int64) /* object_store_id */ 434 int64) /* object_store_id */
450 435
451 // WebIDBDatabase::createTransaction() message. 436 // WebIDBDatabase::createTransaction() message.
452 // TODO: make this message async.
jsbell 2013/01/31 22:23:51 Victory!
453 IPC_SYNC_MESSAGE_CONTROL5_1(IndexedDBHostMsg_DatabaseCreateTransactionOld,
454 int32, /* ipc_thread_id */
455 int32, /* ipc_database_id */
456 int64, /* transaction_id */
457 std::vector<int64>, /* object_stores */
458 int32, /* mode */
459 int32) /* ipc_transaction_id */
460
461
462 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseCreateTransaction, 437 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseCreateTransaction,
463 IndexedDBHostMsg_DatabaseCreateTransaction_Params) 438 IndexedDBHostMsg_DatabaseCreateTransaction_Params)
464 439
465 // WebIDBDatabase::close() message. 440 // WebIDBDatabase::close() message.
466 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseClose, 441 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseClose,
467 int32 /* ipc_database_id */) 442 int32 /* ipc_database_id */)
468 443
469 // WebIDBDatabase::~WebIDBDatabase() message. 444 // WebIDBDatabase::~WebIDBDatabase() message.
470 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseDestroyed, 445 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseDestroyed,
471 int32 /* ipc_database_id */) 446 int32 /* ipc_database_id */)
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 502
528 // WebIDBDatabase::commit() message. 503 // WebIDBDatabase::commit() message.
529 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit, 504 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit,
530 int32, /* ipc_database_id */ 505 int32, /* ipc_database_id */
531 int64) /* transaction_id */ 506 int64) /* transaction_id */
532 507
533 // WebIDBDatabase::~WebIDBCursor() message. 508 // WebIDBDatabase::~WebIDBCursor() message.
534 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, 509 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed,
535 int32 /* ipc_cursor_id */) 510 int32 /* ipc_cursor_id */)
536 511
OLDNEW
« no previous file with comments | « content/common/indexed_db/indexed_db_dispatcher_unittest.cc ('k') | content/common/indexed_db/proxy_webidbdatabase_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698