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

Unified Diff: content/browser/indexed_db/indexed_db_transaction_coordinator.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_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 865ddc7c9c6dce9820c9d3064445c8c3db7934e6..357b464eaddcc86bcb96a5e17f65dd6f44126cec 100644
--- a/content/browser/indexed_db/indexed_db_transaction_coordinator.h
+++ b/content/browser/indexed_db/indexed_db_transaction_coordinator.h
@@ -14,19 +14,21 @@
#include "base/macros.h"
#include "content/browser/indexed_db/list_set.h"
+#include "content/common/content_export.h"
namespace content {
class IndexedDBTransaction;
// Transactions are executed in the order the were created.
-class IndexedDBTransactionCoordinator {
+class CONTENT_EXPORT IndexedDBTransactionCoordinator {
public:
IndexedDBTransactionCoordinator();
~IndexedDBTransactionCoordinator();
// Called by transactions as they start and finish.
void DidCreateTransaction(IndexedDBTransaction* transaction);
+ void DidCreateObserverTransaction(IndexedDBTransaction* transaction);
void DidFinishTransaction(IndexedDBTransaction* transaction);
bool IsRunningVersionChangeTransaction() const;
@@ -39,6 +41,8 @@ class IndexedDBTransactionCoordinator {
std::vector<const IndexedDBTransaction*> GetTransactions() const;
private:
+ friend class IndexedDBTransactionCoordinatorTest;
+
void ProcessQueuedTransactions();
bool CanStartTransaction(IndexedDBTransaction* const transaction,
const std::set<int64_t>& locked_scope) const;

Powered by Google App Engine
This is Rietveld 408576698