| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2013 Apple 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 if (!m_isTransactionQueueEnabled) | 319 if (!m_isTransactionQueueEnabled) |
| 320 return nullptr; | 320 return nullptr; |
| 321 | 321 |
| 322 SQLTransactionWrapper* wrapper = nullptr; | 322 SQLTransactionWrapper* wrapper = nullptr; |
| 323 if (data) | 323 if (data) |
| 324 wrapper = | 324 wrapper = |
| 325 ChangeVersionWrapper::create(data->oldVersion(), data->newVersion()); | 325 ChangeVersionWrapper::create(data->oldVersion(), data->newVersion()); |
| 326 | 326 |
| 327 SQLTransactionBackend* transactionBackend = | 327 SQLTransactionBackend* transactionBackend = |
| 328 SQLTransactionBackend::create(this, transaction, wrapper, readOnly); | 328 SQLTransactionBackend::create(this, transaction, wrapper, readOnly); |
| 329 m_transactionQueue.append(transactionBackend); | 329 m_transactionQueue.push_back(transactionBackend); |
| 330 if (!m_transactionInProgress) | 330 if (!m_transactionInProgress) |
| 331 scheduleTransaction(); | 331 scheduleTransaction(); |
| 332 | 332 |
| 333 return transactionBackend; | 333 return transactionBackend; |
| 334 } | 334 } |
| 335 | 335 |
| 336 void Database::inProgressTransactionCompleted() { | 336 void Database::inProgressTransactionCompleted() { |
| 337 MutexLocker locker(m_transactionInProgressMutex); | 337 MutexLocker locker(m_transactionInProgressMutex); |
| 338 m_transactionInProgress = false; | 338 m_transactionInProgress = false; |
| 339 scheduleTransaction(); | 339 scheduleTransaction(); |
| (...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 950 | 950 |
| 951 bool Database::opened() { | 951 bool Database::opened() { |
| 952 return static_cast<bool>(acquireLoad(&m_opened)); | 952 return static_cast<bool>(acquireLoad(&m_opened)); |
| 953 } | 953 } |
| 954 | 954 |
| 955 WebTaskRunner* Database::getDatabaseTaskRunner() const { | 955 WebTaskRunner* Database::getDatabaseTaskRunner() const { |
| 956 return m_databaseTaskRunner.get(); | 956 return m_databaseTaskRunner.get(); |
| 957 } | 957 } |
| 958 | 958 |
| 959 } // namespace blink | 959 } // namespace blink |
| OLD | NEW |