Chromium Code Reviews| Index: content/browser/indexed_db/indexed_db_connection.h |
| diff --git a/content/browser/indexed_db/indexed_db_connection.h b/content/browser/indexed_db/indexed_db_connection.h |
| index 20acb7b7244c0ed10041c8a59b955c37bf2c2419..818a29240d31cf8eeca4846b0bfa7d3c5bd104a0 100644 |
| --- a/content/browser/indexed_db/indexed_db_connection.h |
| +++ b/content/browser/indexed_db/indexed_db_connection.h |
| @@ -77,9 +77,18 @@ class CONTENT_EXPORT IndexedDBConnection { |
| // TODO(dmurph): Change that so this doesn't need to ignore unknown ids. |
| void RemoveTransaction(int64_t id); |
| + // Returns a new transaction id for an observer transaction. |
| + // Unique per connection. |
| + int64_t NewObserverTransactionId(); |
| + |
| private: |
| const int32_t id_; |
| + // The renderer-created transactions are in the right 32 bits, and the |
|
palmer
2017/01/18 19:56:01
Nit: Clarify: "...the right 32 bits of a transacti
dmurph
2017/01/18 21:00:57
I tried to clarify. I'm going to add a bug for upd
|
| + // browser-created transactions are in the left 32 bits. |
| + // This keeps track of the left 32 bits. |
| + uint32_t next_observer_transaction_id_ = 1; |
| + |
| // The process id of the child process this connection is associated with. |
| // Tracked for IndexedDBContextImpl::GetAllOriginsDetails and debugging. |
| const int child_process_id_; |