| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 return database->stringIdentifier(); | 44 return database->stringIdentifier(); |
| 45 } | 45 } |
| 46 | 46 |
| 47 SQLTransactionCoordinator::SQLTransactionCoordinator() | 47 SQLTransactionCoordinator::SQLTransactionCoordinator() |
| 48 : m_isShuttingDown(false) | 48 : m_isShuttingDown(false) |
| 49 { | 49 { |
| 50 } | 50 } |
| 51 | 51 |
| 52 void SQLTransactionCoordinator::trace(Visitor* visitor) | 52 void SQLTransactionCoordinator::trace(Visitor* visitor) |
| 53 { | 53 { |
| 54 #if ENABLE(OILPAN) |
| 54 visitor->trace(m_coordinationInfoMap); | 55 visitor->trace(m_coordinationInfoMap); |
| 56 #endif |
| 55 } | 57 } |
| 56 | 58 |
| 57 void SQLTransactionCoordinator::processPendingTransactions(CoordinationInfo& inf
o) | 59 void SQLTransactionCoordinator::processPendingTransactions(CoordinationInfo& inf
o) |
| 58 { | 60 { |
| 59 if (info.activeWriteTransaction || info.pendingTransactions.isEmpty()) | 61 if (info.activeWriteTransaction || info.pendingTransactions.isEmpty()) |
| 60 return; | 62 return; |
| 61 | 63 |
| 62 RefPtrWillBeRawPtr<SQLTransactionBackend> firstPendingTransaction = info.pen
dingTransactions.first(); | 64 RefPtrWillBeRawPtr<SQLTransactionBackend> firstPendingTransaction = info.pen
dingTransactions.first(); |
| 63 if (firstPendingTransaction->isReadOnly()) { | 65 if (firstPendingTransaction->isReadOnly()) { |
| 64 do { | 66 do { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 RefPtrWillBeRawPtr<SQLTransactionBackend> transaction = info.pending
Transactions.first(); | 147 RefPtrWillBeRawPtr<SQLTransactionBackend> transaction = info.pending
Transactions.first(); |
| 146 transaction->notifyDatabaseThreadIsShuttingDown(); | 148 transaction->notifyDatabaseThreadIsShuttingDown(); |
| 147 } | 149 } |
| 148 } | 150 } |
| 149 | 151 |
| 150 // Clean up all pending transactions for all databases | 152 // Clean up all pending transactions for all databases |
| 151 m_coordinationInfoMap.clear(); | 153 m_coordinationInfoMap.clear(); |
| 152 } | 154 } |
| 153 | 155 |
| 154 } // namespace blink | 156 } // namespace blink |
| OLD | NEW |