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

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

Issue 11348254: Remove old transaction() call, proxies, and messages. (Closed) Base URL: http://git.chromium.org/chromium/src.git@create-transaction-int
Patch Set: update to ToT for landing Created 8 years 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
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 19 matching lines...) Expand all
30 // Used to enumerate indexed databases. 30 // Used to enumerate indexed databases.
31 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryGetDatabaseNames_Params) 31 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryGetDatabaseNames_Params)
32 // The response should have these ids. 32 // The response should have these ids.
33 IPC_STRUCT_MEMBER(int32, thread_id) 33 IPC_STRUCT_MEMBER(int32, thread_id)
34 IPC_STRUCT_MEMBER(int32, response_id) 34 IPC_STRUCT_MEMBER(int32, response_id)
35 // The origin doing the initiating. 35 // The origin doing the initiating.
36 IPC_STRUCT_MEMBER(string16, origin) 36 IPC_STRUCT_MEMBER(string16, origin)
37 IPC_STRUCT_END() 37 IPC_STRUCT_END()
38 38
39 // Used to open an indexed database. 39 // Used to open an indexed database.
40 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryOpen_Params) 40 IPC_STRUCT_BEGIN(IndexedDBHostMsg_FactoryOpen_Params)
dgrogan 2012/11/29 19:19:41 only tangentially related to this CL: Eventually t
41 // The response should have these ids. 41 // The response should have these ids.
42 IPC_STRUCT_MEMBER(int32, thread_id) 42 IPC_STRUCT_MEMBER(int32, thread_id)
43 // Identifier of the request 43 // Identifier of the request
44 IPC_STRUCT_MEMBER(int32, response_id) 44 IPC_STRUCT_MEMBER(int32, response_id)
45 // Identifier for database callbacks 45 // Identifier for database callbacks
46 IPC_STRUCT_MEMBER(int32, database_response_id) 46 IPC_STRUCT_MEMBER(int32, database_response_id)
47 // The origin doing the initiating. 47 // The origin doing the initiating.
48 IPC_STRUCT_MEMBER(string16, origin) 48 IPC_STRUCT_MEMBER(string16, origin)
49 // The name of the database. 49 // The name of the database.
50 IPC_STRUCT_MEMBER(string16, name) 50 IPC_STRUCT_MEMBER(string16, name)
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 int32, /* object_store_ipc_id */ 383 int32, /* object_store_ipc_id */
384 WebKit::WebExceptionCode /* ec */) 384 WebKit::WebExceptionCode /* ec */)
385 385
386 // WebIDBDatabase::deleteObjectStore() message. 386 // WebIDBDatabase::deleteObjectStore() message.
387 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_DatabaseDeleteObjectStore, 387 IPC_SYNC_MESSAGE_CONTROL3_1(IndexedDBHostMsg_DatabaseDeleteObjectStore,
388 int32, /* idb_database_id */ 388 int32, /* idb_database_id */
389 int64, /* object_store_id */ 389 int64, /* object_store_id */
390 int32, /* transaction_id */ 390 int32, /* transaction_id */
391 WebKit::WebExceptionCode /* ec */) 391 WebKit::WebExceptionCode /* ec */)
392 392
393 // WebIDBDatabase::transaction() message.
394 // TODO: make this message async. Have the renderer create a
395 // temporary ID and keep a map in the browser process of real
396 // IDs to temporary IDs. We can then update the transaction
397 // to its real ID asynchronously.
398 // (Or make the key a pair <connection_id, transaction_id>.)
399 // TODO(alecflett): Remove this as part of
400 // https://bugs.webkit.org/show_bug.cgi?id=102733.
401 IPC_SYNC_MESSAGE_CONTROL4_1(IndexedDBHostMsg_DatabaseTransactionOld,
402 int32, /* thread_id */
403 int32, /* idb_database_id */
404 std::vector<int64>, /* object_stores */
405 int32, /* mode */
406 int32) /* idb_transaction_id */
407
408 // WebIDBDatabase::createTransaction() message. 393 // WebIDBDatabase::createTransaction() message.
394 // TODO: make this message async.
409 IPC_SYNC_MESSAGE_CONTROL5_1(IndexedDBHostMsg_DatabaseCreateTransaction, 395 IPC_SYNC_MESSAGE_CONTROL5_1(IndexedDBHostMsg_DatabaseCreateTransaction,
410 int32, /* thread_id */ 396 int32, /* thread_id */
411 int32, /* idb_database_id */ 397 int32, /* idb_database_id */
412 int64, /* transaction_id */ 398 int64, /* transaction_id */
413 std::vector<int64>, /* object_stores */ 399 std::vector<int64>, /* object_stores */
414 int32, /* mode */ 400 int32, /* mode */
415 int32) /* idb_transaction_id */ 401 int32) /* idb_transaction_id */
416 402
417 // WebIDBDatabase::close() message. 403 // WebIDBDatabase::close() message.
418 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseClose, 404 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseClose,
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort, 532 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionAbort,
547 int32 /* idb_transaction_id */) 533 int32 /* idb_transaction_id */)
548 534
549 // IDBTransaction::DidCompleteTaskEvents() message. 535 // IDBTransaction::DidCompleteTaskEvents() message.
550 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents, 536 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDidCompleteTaskEvents,
551 int32 /* idb_transaction_id */) 537 int32 /* idb_transaction_id */)
552 538
553 // WebIDBTransaction::~WebIDBTransaction() message. 539 // WebIDBTransaction::~WebIDBTransaction() message.
554 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed, 540 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_TransactionDestroyed,
555 int32 /* idb_transaction_id */) 541 int32 /* idb_transaction_id */)
OLDNEW
« no previous file with comments | « content/browser/in_process_webkit/indexed_db_dispatcher_host.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