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

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

Issue 2472213003: [IndexedDB] Refactoring to remove ref ptrs and host transaction ids. (Closed)
Patch Set: comments Created 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/indexed_db/indexed_db_transaction_coordinator.h
diff --git a/content/browser/indexed_db/indexed_db_transaction_coordinator.h b/content/browser/indexed_db/indexed_db_transaction_coordinator.h
index c75d14101e37e578b6033f70c99f411e3dcfc33b..865ddc7c9c6dce9820c9d3064445c8c3db7934e6 100644
--- a/content/browser/indexed_db/indexed_db_transaction_coordinator.h
+++ b/content/browser/indexed_db/indexed_db_transaction_coordinator.h
@@ -13,7 +13,6 @@
#include <vector>
#include "base/macros.h"
-#include "base/memory/ref_counted.h"
#include "content/browser/indexed_db/list_set.h"
namespace content {
@@ -27,7 +26,7 @@ class IndexedDBTransactionCoordinator {
~IndexedDBTransactionCoordinator();
// Called by transactions as they start and finish.
- void DidCreateTransaction(scoped_refptr<IndexedDBTransaction> transaction);
+ void DidCreateTransaction(IndexedDBTransaction* transaction);
void DidFinishTransaction(IndexedDBTransaction* transaction);
bool IsRunningVersionChangeTransaction() const;
@@ -47,8 +46,8 @@ class IndexedDBTransactionCoordinator {
// Transactions in different states are grouped below.
// list_set is used to provide stable ordering; required by spec
// for the queue, convenience for diagnostics for the rest.
- list_set<scoped_refptr<IndexedDBTransaction>> queued_transactions_;
- list_set<scoped_refptr<IndexedDBTransaction>> started_transactions_;
+ list_set<IndexedDBTransaction*> queued_transactions_;
+ list_set<IndexedDBTransaction*> started_transactions_;
DISALLOW_COPY_AND_ASSIGN(IndexedDBTransactionCoordinator);
};

Powered by Google App Engine
This is Rietveld 408576698