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

Unified Diff: content/browser/indexed_db/indexed_db_connection.h

Issue 2601983002: [IndexedDB] Adding transaction and value support to observers (Closed)
Patch Set: rebase Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698