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

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

Issue 2062203004: IDBObserver: Lifetime Management: Adding Observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding Observer Created 4 years, 6 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
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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // The storage id of the object store. 104 // The storage id of the object store.
105 IPC_STRUCT_MEMBER(int64_t, object_store_id) 105 IPC_STRUCT_MEMBER(int64_t, object_store_id)
106 // The name of the object store. 106 // The name of the object store.
107 IPC_STRUCT_MEMBER(base::string16, name) 107 IPC_STRUCT_MEMBER(base::string16, name)
108 // The keyPath of the object store. 108 // The keyPath of the object store.
109 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, key_path) 109 IPC_STRUCT_MEMBER(content::IndexedDBKeyPath, key_path)
110 // Whether the object store created should have a key generator. 110 // Whether the object store created should have a key generator.
111 IPC_STRUCT_MEMBER(bool, auto_increment) 111 IPC_STRUCT_MEMBER(bool, auto_increment)
112 IPC_STRUCT_END() 112 IPC_STRUCT_END()
113 113
114 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseObserve_Params)
115 IPC_STRUCT_MEMBER(int32_t, ipc_thread_id)
116 // The database the object store belongs to.
117 IPC_STRUCT_MEMBER(int32_t, ipc_database_id)
118 // The transaction id as minted by the frontend.
119 IPC_STRUCT_MEMBER(int64_t, transaction_id)
120 // The observer id.
121 IPC_STRUCT_MEMBER(int64_t, observer_id)
Marijn Kruisselbrink 2016/06/15 13:14:57 if we actually require the observer_id to be 32 bi
palakj1 2016/06/16 07:05:41 Changed
122 IPC_STRUCT_END()
123
114 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseGet_Params) 124 IPC_STRUCT_BEGIN(IndexedDBHostMsg_DatabaseGet_Params)
115 IPC_STRUCT_MEMBER(int32_t, ipc_thread_id) 125 IPC_STRUCT_MEMBER(int32_t, ipc_thread_id)
116 // The id any response should contain. 126 // The id any response should contain.
117 IPC_STRUCT_MEMBER(int32_t, ipc_callbacks_id) 127 IPC_STRUCT_MEMBER(int32_t, ipc_callbacks_id)
118 // The database the object store belongs to. 128 // The database the object store belongs to.
119 IPC_STRUCT_MEMBER(int32_t, ipc_database_id) 129 IPC_STRUCT_MEMBER(int32_t, ipc_database_id)
120 // The transaction its associated with. 130 // The transaction its associated with.
121 IPC_STRUCT_MEMBER(int64_t, transaction_id) 131 IPC_STRUCT_MEMBER(int64_t, transaction_id)
122 // The object store's id. 132 // The object store's id.
123 IPC_STRUCT_MEMBER(int64_t, object_store_id) 133 IPC_STRUCT_MEMBER(int64_t, object_store_id)
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryDeleteDatabase, 492 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_FactoryDeleteDatabase,
483 IndexedDBHostMsg_FactoryDeleteDatabase_Params) 493 IndexedDBHostMsg_FactoryDeleteDatabase_Params)
484 494
485 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_AckReceivedBlobs, 495 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_AckReceivedBlobs,
486 std::vector<std::string>) /* uuids */ 496 std::vector<std::string>) /* uuids */
487 497
488 // WebIDBDatabase::createObjectStore() message. 498 // WebIDBDatabase::createObjectStore() message.
489 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseCreateObjectStore, 499 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseCreateObjectStore,
490 IndexedDBHostMsg_DatabaseCreateObjectStore_Params) 500 IndexedDBHostMsg_DatabaseCreateObjectStore_Params)
491 501
502 // WebIDBDatabase::observe() message.
503 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseObserve,
504 IndexedDBHostMsg_DatabaseObserve_Params)
dmurph 2016/06/15 12:49:44 Probably don't need the params struct as we just h
palakj1 2016/06/16 07:05:41 Done
505
dmurph 2016/06/15 12:49:44 Also add a message to remove the observer, which h
492 // WebIDBDatabase::deleteObjectStore() message. 506 // WebIDBDatabase::deleteObjectStore() message.
493 IPC_MESSAGE_CONTROL3(IndexedDBHostMsg_DatabaseDeleteObjectStore, 507 IPC_MESSAGE_CONTROL3(IndexedDBHostMsg_DatabaseDeleteObjectStore,
494 int32_t, /* ipc_database_id */ 508 int32_t, /* ipc_database_id */
495 int64_t, /* transaction_id */ 509 int64_t, /* transaction_id */
496 int64_t) /* object_store_id */ 510 int64_t) /* object_store_id */
497 511
498 // WebIDBDatabase::createTransaction() message. 512 // WebIDBDatabase::createTransaction() message.
499 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseCreateTransaction, 513 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_DatabaseCreateTransaction,
500 IndexedDBHostMsg_DatabaseCreateTransaction_Params) 514 IndexedDBHostMsg_DatabaseCreateTransaction_Params)
501 515
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 int64_t) /* transaction_id */ 585 int64_t) /* transaction_id */
572 586
573 // WebIDBDatabase::commit() message. 587 // WebIDBDatabase::commit() message.
574 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit, 588 IPC_MESSAGE_CONTROL2(IndexedDBHostMsg_DatabaseCommit,
575 int32_t, /* ipc_database_id */ 589 int32_t, /* ipc_database_id */
576 int64_t) /* transaction_id */ 590 int64_t) /* transaction_id */
577 591
578 // WebIDBDatabase::~WebIDBCursor() message. 592 // WebIDBDatabase::~WebIDBCursor() message.
579 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed, 593 IPC_MESSAGE_CONTROL1(IndexedDBHostMsg_CursorDestroyed,
580 int32_t /* ipc_cursor_id */) 594 int32_t /* ipc_cursor_id */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698