| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 void setBackend(SQLTransactionBackend*); | 81 void setBackend(SQLTransactionBackend*); |
| 82 | 82 |
| 83 private: | 83 private: |
| 84 SQLTransaction(Database*, SQLTransactionCallback*, | 84 SQLTransaction(Database*, SQLTransactionCallback*, |
| 85 VoidCallback* successCallback, SQLTransactionErrorCallback*, | 85 VoidCallback* successCallback, SQLTransactionErrorCallback*, |
| 86 bool readOnly); | 86 bool readOnly); |
| 87 | 87 |
| 88 void clearCallbacks(); | 88 void clearCallbacks(); |
| 89 | 89 |
| 90 // State Machine functions: | 90 // State Machine functions: |
| 91 virtual StateFunction stateFunctionFor(SQLTransactionState) override; | 91 StateFunction stateFunctionFor(SQLTransactionState) override; |
| 92 bool computeNextStateAndCleanupIfNeeded(); | 92 bool computeNextStateAndCleanupIfNeeded(); |
| 93 | 93 |
| 94 // State functions: | 94 // State functions: |
| 95 SQLTransactionState deliverTransactionCallback(); | 95 SQLTransactionState deliverTransactionCallback(); |
| 96 SQLTransactionState deliverTransactionErrorCallback(); | 96 SQLTransactionState deliverTransactionErrorCallback(); |
| 97 SQLTransactionState deliverStatementCallback(); | 97 SQLTransactionState deliverStatementCallback(); |
| 98 SQLTransactionState deliverQuotaIncreaseCallback(); | 98 SQLTransactionState deliverQuotaIncreaseCallback(); |
| 99 SQLTransactionState deliverSuccessCallback(); | 99 SQLTransactionState deliverSuccessCallback(); |
| 100 | 100 |
| 101 SQLTransactionState unreachableState(); | 101 SQLTransactionState unreachableState(); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 112 bool m_executeSqlAllowed; | 112 bool m_executeSqlAllowed; |
| 113 OwnPtr<SQLErrorData> m_transactionError; | 113 OwnPtr<SQLErrorData> m_transactionError; |
| 114 | 114 |
| 115 bool m_readOnly; | 115 bool m_readOnly; |
| 116 int m_asyncOperationId; | 116 int m_asyncOperationId; |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } // namespace blink | 119 } // namespace blink |
| 120 | 120 |
| 121 #endif // SQLTransaction_h | 121 #endif // SQLTransaction_h |
| OLD | NEW |