| Index: Source/modules/indexeddb/IDBPendingTransactionMonitor.h
|
| diff --git a/Source/modules/indexeddb/IDBPendingTransactionMonitor.h b/Source/modules/indexeddb/IDBPendingTransactionMonitor.h
|
| index 6d4b4d94d64921433831e8989b04d0d862c28ab6..b076d971b1f5a3252338e59aedeaac5b5c3f5762 100644
|
| --- a/Source/modules/indexeddb/IDBPendingTransactionMonitor.h
|
| +++ b/Source/modules/indexeddb/IDBPendingTransactionMonitor.h
|
| @@ -26,14 +26,14 @@
|
| #ifndef IDBPendingTransactionMonitor_h
|
| #define IDBPendingTransactionMonitor_h
|
|
|
| -#include "platform/Supplementable.h"
|
| +#include "platform/heap/Handle.h"
|
| #include "wtf/Noncopyable.h"
|
| #include "wtf/PassOwnPtr.h"
|
| #include "wtf/Vector.h"
|
| +#include <v8.h>
|
|
|
| namespace blink {
|
|
|
| -class ExecutionContext;
|
| class IDBTransaction;
|
|
|
| // This class keeps track of the transactions created during the current
|
| @@ -41,22 +41,20 @@ class IDBTransaction;
|
| // which is set to true on creation, but must be set to false when control
|
| // returns to the event loop.
|
|
|
| -class IDBPendingTransactionMonitor : public NoBaseWillBeGarbageCollected<IDBPendingTransactionMonitor>, public WillBeHeapSupplement<ExecutionContext> {
|
| - WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(IDBPendingTransactionMonitor);
|
| - DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(IDBPendingTransactionMonitor);
|
| +class IDBPendingTransactionMonitor {
|
| WTF_MAKE_NONCOPYABLE(IDBPendingTransactionMonitor);
|
|
|
| public:
|
| - static IDBPendingTransactionMonitor& from(WillBeHeapSupplementable<ExecutionContext>&);
|
| - virtual void trace(Visitor*) OVERRIDE;
|
| - void addNewTransaction(IDBTransaction&);
|
| - void deactivateNewTransactions();
|
| + static void addNewTransaction(v8::Isolate*, IDBTransaction&);
|
| + static void deactivateNewTransactions(v8::Isolate*);
|
|
|
| private:
|
| IDBPendingTransactionMonitor();
|
| - static const char* supplementName();
|
|
|
| - PersistentHeapVectorWillBeHeapVector<Member<IDBTransaction> > m_transactions;
|
| + void addNewTransaction(IDBTransaction&);
|
| + void deactivateNewTransactions();
|
| +
|
| + PersistentHeapVector<Member<IDBTransaction> > m_transactions;
|
| };
|
|
|
| } // namespace blink
|
|
|