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 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
519 // Redirect to the end state to abort, clean up, and end the transaction. | 519 // Redirect to the end state to abort, clean up, and end the transaction. |
520 doCleanup(); | 520 doCleanup(); |
521 } | 521 } |
522 | 522 |
523 void SQLTransactionBackend::performNextStep() | 523 void SQLTransactionBackend::performNextStep() |
524 { | 524 { |
525 computeNextStateAndCleanupIfNeeded(); | 525 computeNextStateAndCleanupIfNeeded(); |
526 runStateMachine(); | 526 runStateMachine(); |
527 } | 527 } |
528 | 528 |
529 void SQLTransactionBackend::executeSQL(PassOwnPtr<AbstractSQLStatement> statemen
t, | 529 void SQLTransactionBackend::executeSQL(PassOwnPtrWillBeRawPtr<AbstractSQLStateme
nt> statement, |
530 const String& sqlStatement, const Vector<SQLValue>& arguments, int permissio
ns) | 530 const String& sqlStatement, const Vector<SQLValue>& arguments, int permissio
ns) |
531 { | 531 { |
532 enqueueStatementBackend(SQLStatementBackend::create(statement, sqlStatement,
arguments, permissions)); | 532 enqueueStatementBackend(SQLStatementBackend::create(statement, sqlStatement,
arguments, permissions)); |
533 } | 533 } |
534 | 534 |
535 void SQLTransactionBackend::notifyDatabaseThreadIsShuttingDown() | 535 void SQLTransactionBackend::notifyDatabaseThreadIsShuttingDown() |
536 { | 536 { |
537 ASSERT(database()->databaseContext()->databaseThread()->isDatabaseThread()); | 537 ASSERT(database()->databaseContext()->databaseThread()->isDatabaseThread()); |
538 | 538 |
539 // If the transaction is in progress, we should roll it back here, since thi
s | 539 // If the transaction is in progress, we should roll it back here, since thi
s |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 WebCore |
OLD | NEW |