| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 void shutdown(); | 54 void shutdown(); |
| 55 private: | 55 private: |
| 56 typedef Deque<RefPtrWillBeMember<SQLTransactionBackend> > TransactionsQueue; | 56 typedef Deque<RefPtrWillBeMember<SQLTransactionBackend> > TransactionsQueue; |
| 57 struct CoordinationInfo { | 57 struct CoordinationInfo { |
| 58 TransactionsQueue pendingTransactions; | 58 TransactionsQueue pendingTransactions; |
| 59 WillBeHeapHashSet<RefPtrWillBeMember<SQLTransactionBackend> > activeRead
Transactions; | 59 WillBeHeapHashSet<RefPtrWillBeMember<SQLTransactionBackend> > activeRead
Transactions; |
| 60 RefPtrWillBeMember<SQLTransactionBackend> activeWriteTransaction; | 60 RefPtrWillBeMember<SQLTransactionBackend> activeWriteTransaction; |
| 61 | 61 |
| 62 void trace(Visitor* visitor) | 62 void trace(Visitor* visitor) |
| 63 { | 63 { |
| 64 #if ENABLE(OILPAN) |
| 64 visitor->trace(pendingTransactions); | 65 visitor->trace(pendingTransactions); |
| 65 visitor->trace(activeReadTransactions); | 66 visitor->trace(activeReadTransactions); |
| 66 visitor->trace(activeWriteTransaction); | 67 visitor->trace(activeWriteTransaction); |
| 68 #endif |
| 67 } | 69 } |
| 68 ALLOW_ONLY_INLINE_ALLOCATION(); | 70 ALLOW_ONLY_INLINE_ALLOCATION(); |
| 69 }; | 71 }; |
| 70 // Maps database names to information about pending transactions | 72 // Maps database names to information about pending transactions |
| 71 typedef WillBeHeapHashMap<String, CoordinationInfo> CoordinationInfoHeapMap; | 73 typedef WillBeHeapHashMap<String, CoordinationInfo> CoordinationInfoHeapMap; |
| 72 CoordinationInfoHeapMap m_coordinationInfoMap; | 74 CoordinationInfoHeapMap m_coordinationInfoMap; |
| 73 bool m_isShuttingDown; | 75 bool m_isShuttingDown; |
| 74 | 76 |
| 75 void processPendingTransactions(CoordinationInfo&); | 77 void processPendingTransactions(CoordinationInfo&); |
| 76 }; | 78 }; |
| 77 | 79 |
| 78 } // namespace WebCore | 80 } // namespace WebCore |
| 79 | 81 |
| 80 #endif // SQLTransactionCoordinator_h | 82 #endif // SQLTransactionCoordinator_h |
| OLD | NEW |