| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 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 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 // - To clean up, during shutdown, DatabaseThread::databaseThread() calls | 331 // - To clean up, during shutdown, DatabaseThread::databaseThread() calls |
| 332 // SQLTransactionCoordinator::shutdown(), which calls | 332 // SQLTransactionCoordinator::shutdown(), which calls |
| 333 // notifyDatabaseThreadIsShuttingDown(). | 333 // notifyDatabaseThreadIsShuttingDown(). |
| 334 // | 334 // |
| 335 // Phase 5: After state CleanupAndTerminate | 335 // Phase 5: After state CleanupAndTerminate |
| 336 // | 336 // |
| 337 // - This is how a transaction ends normally. | 337 // - This is how a transaction ends normally. |
| 338 // - state CleanupAndTerminate calls doCleanup(). | 338 // - state CleanupAndTerminate calls doCleanup(). |
| 339 | 339 |
| 340 | 340 |
| 341 namespace WebCore { | 341 namespace blink { |
| 342 | 342 |
| 343 PassRefPtrWillBeRawPtr<SQLTransactionBackend> SQLTransactionBackend::create(Data
baseBackend* db, | 343 PassRefPtrWillBeRawPtr<SQLTransactionBackend> SQLTransactionBackend::create(Data
baseBackend* db, |
| 344 PassRefPtrWillBeRawPtr<AbstractSQLTransaction> frontend, | 344 PassRefPtrWillBeRawPtr<AbstractSQLTransaction> frontend, |
| 345 PassRefPtrWillBeRawPtr<SQLTransactionWrapper> wrapper, | 345 PassRefPtrWillBeRawPtr<SQLTransactionWrapper> wrapper, |
| 346 bool readOnly) | 346 bool readOnly) |
| 347 { | 347 { |
| 348 return adoptRefWillBeNoop(new SQLTransactionBackend(db, frontend, wrapper, r
eadOnly)); | 348 return adoptRefWillBeNoop(new SQLTransactionBackend(db, frontend, wrapper, r
eadOnly)); |
| 349 } | 349 } |
| 350 | 350 |
| 351 SQLTransactionBackend::SQLTransactionBackend(DatabaseBackend* db, | 351 SQLTransactionBackend::SQLTransactionBackend(DatabaseBackend* db, |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 return SQLTransactionState::End; | 826 return SQLTransactionState::End; |
| 827 } | 827 } |
| 828 | 828 |
| 829 SQLTransactionState SQLTransactionBackend::sendToFrontendState() | 829 SQLTransactionState SQLTransactionBackend::sendToFrontendState() |
| 830 { | 830 { |
| 831 ASSERT(m_nextState != SQLTransactionState::Idle); | 831 ASSERT(m_nextState != SQLTransactionState::Idle); |
| 832 m_frontend->requestTransitToState(m_nextState); | 832 m_frontend->requestTransitToState(m_nextState); |
| 833 return SQLTransactionState::Idle; | 833 return SQLTransactionState::Idle; |
| 834 } | 834 } |
| 835 | 835 |
| 836 } // namespace WebCore | 836 } // namespace blink |
| OLD | NEW |