| 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 15 matching lines...) Expand all Loading... |
| 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 30 */ | 30 */ |
| 31 | 31 |
| 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 "platform/wtf/Deque.h" |
| 37 #include "wtf/HashMap.h" | 37 #include "platform/wtf/HashMap.h" |
| 38 #include "wtf/HashSet.h" | 38 #include "platform/wtf/HashSet.h" |
| 39 #include "wtf/text/StringHash.h" | 39 #include "platform/wtf/text/StringHash.h" |
| 40 | 40 |
| 41 namespace blink { | 41 namespace blink { |
| 42 | 42 |
| 43 class SQLTransactionBackend; | 43 class SQLTransactionBackend; |
| 44 | 44 |
| 45 class SQLTransactionCoordinator | 45 class SQLTransactionCoordinator |
| 46 : public GarbageCollectedFinalized<SQLTransactionCoordinator> { | 46 : public GarbageCollectedFinalized<SQLTransactionCoordinator> { |
| 47 WTF_MAKE_NONCOPYABLE(SQLTransactionCoordinator); | 47 WTF_MAKE_NONCOPYABLE(SQLTransactionCoordinator); |
| 48 | 48 |
| 49 public: | 49 public: |
| (...skipping 18 matching lines...) Expand all Loading... |
| 68 typedef HashMap<String, CoordinationInfo> CoordinationInfoHeapMap; | 68 typedef HashMap<String, CoordinationInfo> CoordinationInfoHeapMap; |
| 69 CoordinationInfoHeapMap coordination_info_map_; | 69 CoordinationInfoHeapMap coordination_info_map_; |
| 70 bool is_shutting_down_; | 70 bool is_shutting_down_; |
| 71 | 71 |
| 72 void ProcessPendingTransactions(CoordinationInfo&); | 72 void ProcessPendingTransactions(CoordinationInfo&); |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace blink | 75 } // namespace blink |
| 76 | 76 |
| 77 #endif // SQLTransactionCoordinator_h | 77 #endif // SQLTransactionCoordinator_h |
| OLD | NEW |