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

Unified Diff: Source/modules/indexeddb/IDBPendingTransactionMonitor.h

Issue 623033002: Oilpan: Add support of pre-finalization callback to Oilpan infrastructure. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add a FIXME Created 6 years, 2 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: Source/modules/indexeddb/IDBPendingTransactionMonitor.h
diff --git a/Source/modules/indexeddb/IDBPendingTransactionMonitor.h b/Source/modules/indexeddb/IDBPendingTransactionMonitor.h
index 3dbcca013219e18a32f4e699b440c309aa47d6bd..1094cbc174fc327ef9f08ae188e0f0f0bf66f4ce 100644
--- a/Source/modules/indexeddb/IDBPendingTransactionMonitor.h
+++ b/Source/modules/indexeddb/IDBPendingTransactionMonitor.h
@@ -31,42 +31,23 @@
namespace blink {
-class IDBCursor;
-class IDBDisposerDispatcher;
-class IDBRequest;
class IDBTransaction;
// This class keeps track of the transactions created during the current
// Javascript execution context. Transactions have an internal |active| flag
// which is set to true on creation, but must be set to false when control
// returns to the event loop.
-// Also, this class is responsible to call IDBRequest::dispose() before an
-// IDBRequest object dies, and responsible to call IDBCursor::dispose() before
-// an IDBCursor object dies.
-// FIXME: Rename the class name.
class IDBPendingTransactionMonitor {
WTF_MAKE_NONCOPYABLE(IDBPendingTransactionMonitor);
public:
IDBPendingTransactionMonitor();
- ~IDBPendingTransactionMonitor();
void addNewTransaction(IDBTransaction&);
void deactivateNewTransactions();
- void registerRequest(IDBRequest&);
- // It's ok to call unregisterRequest(*this) inside
- // IDBRequest::dispose(). But we must not call unregisterRequest() with
- // an object different from |this| of IDBRequest::dispose().
- void unregisterRequest(IDBRequest&);
- void registerCursor(IDBCursor&);
- // It's ok to call unregisterCursor(*this) inside IDBCursor::dispose(). But
- // we must not call unregisterCursor() with an object different from |this|
- // of IDBCursor::dispose().
- void unregisterCursor(IDBCursor&);
private:
PersistentHeapVector<Member<IDBTransaction> > m_transactions;
- RefPtr<IDBDisposerDispatcher> m_dispatcher;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698