| 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 26 matching lines...) Expand all Loading... |
| 37 #include "modules/webdatabase/DatabaseAuthorizer.h" | 37 #include "modules/webdatabase/DatabaseAuthorizer.h" |
| 38 #include "modules/webdatabase/DatabaseBackend.h" | 38 #include "modules/webdatabase/DatabaseBackend.h" |
| 39 #include "modules/webdatabase/DatabaseContext.h" | 39 #include "modules/webdatabase/DatabaseContext.h" |
| 40 #include "modules/webdatabase/DatabaseThread.h" | 40 #include "modules/webdatabase/DatabaseThread.h" |
| 41 #include "modules/webdatabase/DatabaseTracker.h" | 41 #include "modules/webdatabase/DatabaseTracker.h" |
| 42 #include "modules/webdatabase/SQLError.h" | 42 #include "modules/webdatabase/SQLError.h" |
| 43 #include "modules/webdatabase/SQLStatementBackend.h" | 43 #include "modules/webdatabase/SQLStatementBackend.h" |
| 44 #include "modules/webdatabase/SQLTransactionClient.h" | 44 #include "modules/webdatabase/SQLTransactionClient.h" |
| 45 #include "modules/webdatabase/SQLTransactionCoordinator.h" | 45 #include "modules/webdatabase/SQLTransactionCoordinator.h" |
| 46 #include "wtf/StdLibExtras.h" | 46 #include "wtf/StdLibExtras.h" |
| 47 #include "wtf/text/WTFString.h" | |
| 48 | 47 |
| 49 | 48 |
| 50 // How does a SQLTransaction work? | 49 // How does a SQLTransaction work? |
| 51 // ============================== | 50 // ============================== |
| 52 // The SQLTransaction is a state machine that executes a series of states / step
s. | 51 // The SQLTransaction is a state machine that executes a series of states / step
s. |
| 53 // | 52 // |
| 54 // The work of the transaction states are defined in section of 4.3.2 of the | 53 // The work of the transaction states are defined in section of 4.3.2 of the |
| 55 // webdatabase spec: http://dev.w3.org/html5/webdatabase/#processing-model | 54 // webdatabase spec: http://dev.w3.org/html5/webdatabase/#processing-model |
| 56 // | 55 // |
| 57 // the State Transition Graph at a glance: | 56 // the State Transition Graph at a glance: |
| (...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 } | 823 } |
| 825 | 824 |
| 826 SQLTransactionState SQLTransactionBackend::sendToFrontendState() | 825 SQLTransactionState SQLTransactionBackend::sendToFrontendState() |
| 827 { | 826 { |
| 828 ASSERT(m_nextState != SQLTransactionState::Idle); | 827 ASSERT(m_nextState != SQLTransactionState::Idle); |
| 829 m_frontend->requestTransitToState(m_nextState); | 828 m_frontend->requestTransitToState(m_nextState); |
| 830 return SQLTransactionState::Idle; | 829 return SQLTransactionState::Idle; |
| 831 } | 830 } |
| 832 | 831 |
| 833 } // namespace WebCore | 832 } // namespace WebCore |
| OLD | NEW |