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

Side by Side Diff: Source/modules/indexeddb/IDBPendingTransactionMonitor.h

Issue 403013002: Rename WebCore to blink in Modules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 13 matching lines...) Expand all
24 */ 24 */
25 25
26 #ifndef IDBPendingTransactionMonitor_h 26 #ifndef IDBPendingTransactionMonitor_h
27 #define IDBPendingTransactionMonitor_h 27 #define IDBPendingTransactionMonitor_h
28 28
29 #include "platform/Supplementable.h" 29 #include "platform/Supplementable.h"
30 #include "wtf/Noncopyable.h" 30 #include "wtf/Noncopyable.h"
31 #include "wtf/PassOwnPtr.h" 31 #include "wtf/PassOwnPtr.h"
32 #include "wtf/Vector.h" 32 #include "wtf/Vector.h"
33 33
34 namespace WebCore { 34 namespace blink {
35 35
36 class ExecutionContext; 36 class ExecutionContext;
37 class IDBTransaction; 37 class IDBTransaction;
38 38
39 // This class keeps track of the transactions created during the current 39 // This class keeps track of the transactions created during the current
40 // Javascript execution context. Transactions have an internal |active| flag 40 // Javascript execution context. Transactions have an internal |active| flag
41 // which is set to true on creation, but must be set to false when control 41 // which is set to true on creation, but must be set to false when control
42 // returns to the event loop. 42 // returns to the event loop.
43 43
44 class IDBPendingTransactionMonitor : public Supplement<ExecutionContext> { 44 class IDBPendingTransactionMonitor : public Supplement<ExecutionContext> {
45 WTF_MAKE_NONCOPYABLE(IDBPendingTransactionMonitor); 45 WTF_MAKE_NONCOPYABLE(IDBPendingTransactionMonitor);
46 46
47 public: 47 public:
48 static IDBPendingTransactionMonitor& from(Supplementable<ExecutionContext>&) ; 48 static IDBPendingTransactionMonitor& from(Supplementable<ExecutionContext>&) ;
49 virtual ~IDBPendingTransactionMonitor(); 49 virtual ~IDBPendingTransactionMonitor();
50 // The trace functino doesn't work until ExecutionContext is moved to Oilpan 50 // The trace functino doesn't work until ExecutionContext is moved to Oilpan
51 // heap. 51 // heap.
52 virtual void trace(Visitor* visitor) OVERRIDE { Supplement<ExecutionContext> ::trace(visitor); } 52 virtual void trace(Visitor* visitor) OVERRIDE { Supplement<ExecutionContext> ::trace(visitor); }
53 void addNewTransaction(IDBTransaction&); 53 void addNewTransaction(IDBTransaction&);
54 void deactivateNewTransactions(); 54 void deactivateNewTransactions();
55 55
56 private: 56 private:
57 IDBPendingTransactionMonitor(); 57 IDBPendingTransactionMonitor();
58 static const char* supplementName(); 58 static const char* supplementName();
59 59
60 typedef PersistentHeapVector<Member<IDBTransaction> > TransactionList; 60 typedef PersistentHeapVector<Member<IDBTransaction> > TransactionList;
61 TransactionList m_transactions; 61 TransactionList m_transactions;
62 }; 62 };
63 63
64 } // namespace WebCore 64 } // namespace blink
65 65
66 #endif // IDBPendingTransactionMonitor_h 66 #endif // IDBPendingTransactionMonitor_h
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBOpenDBRequest.cpp ('k') | Source/modules/indexeddb/IDBPendingTransactionMonitor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698