| 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..e78e2fe02b135403df86be79332da55a4cb17693 100644
|
| --- a/content/browser/indexed_db/indexed_db_transaction_coordinator.h
|
| +++ b/content/browser/indexed_db/indexed_db_transaction_coordinator.h
|
| @@ -14,19 +14,22 @@
|
|
|
| #include "base/macros.h"
|
| #include "content/browser/indexed_db/list_set.h"
|
| +#include "content/common/content_export.h"
|
|
|
| namespace content {
|
|
|
| class IndexedDBTransaction;
|
| +class IndexedDBTransactionCoordinatorTest;
|
|
|
| // 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 +42,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;
|
|
|