OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 21 matching lines...) Expand all Loading... |
32 #ifndef SQLTransactionCoordinator_h | 32 #ifndef SQLTransactionCoordinator_h |
33 #define SQLTransactionCoordinator_h | 33 #define SQLTransactionCoordinator_h |
34 | 34 |
35 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
36 #include "wtf/Deque.h" | 36 #include "wtf/Deque.h" |
37 #include "wtf/HashMap.h" | 37 #include "wtf/HashMap.h" |
38 #include "wtf/HashSet.h" | 38 #include "wtf/HashSet.h" |
39 #include "wtf/RefPtr.h" | 39 #include "wtf/RefPtr.h" |
40 #include "wtf/text/StringHash.h" | 40 #include "wtf/text/StringHash.h" |
41 | 41 |
42 namespace WebCore { | 42 namespace blink { |
43 | 43 |
44 class SQLTransactionBackend; | 44 class SQLTransactionBackend; |
45 | 45 |
46 class SQLTransactionCoordinator : public NoBaseWillBeGarbageCollected<SQLTransac
tionCoordinator> { | 46 class SQLTransactionCoordinator : public NoBaseWillBeGarbageCollected<SQLTransac
tionCoordinator> { |
47 WTF_MAKE_NONCOPYABLE(SQLTransactionCoordinator); | 47 WTF_MAKE_NONCOPYABLE(SQLTransactionCoordinator); |
48 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 48 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
49 public: | 49 public: |
50 SQLTransactionCoordinator(); | 50 SQLTransactionCoordinator(); |
51 void trace(Visitor*); | 51 void trace(Visitor*); |
52 void acquireLock(SQLTransactionBackend*); | 52 void acquireLock(SQLTransactionBackend*); |
(...skipping 17 matching lines...) Expand all Loading... |
70 ALLOW_ONLY_INLINE_ALLOCATION(); | 70 ALLOW_ONLY_INLINE_ALLOCATION(); |
71 }; | 71 }; |
72 // Maps database names to information about pending transactions | 72 // Maps database names to information about pending transactions |
73 typedef WillBeHeapHashMap<String, CoordinationInfo> CoordinationInfoHeapMap; | 73 typedef WillBeHeapHashMap<String, CoordinationInfo> CoordinationInfoHeapMap; |
74 CoordinationInfoHeapMap m_coordinationInfoMap; | 74 CoordinationInfoHeapMap m_coordinationInfoMap; |
75 bool m_isShuttingDown; | 75 bool m_isShuttingDown; |
76 | 76 |
77 void processPendingTransactions(CoordinationInfo&); | 77 void processPendingTransactions(CoordinationInfo&); |
78 }; | 78 }; |
79 | 79 |
80 } // namespace WebCore | 80 } // namespace blink |
81 | 81 |
82 #endif // SQLTransactionCoordinator_h | 82 #endif // SQLTransactionCoordinator_h |
OLD | NEW |