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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 98 |
99 SQLTransactionState unreachableState(); | 99 SQLTransactionState unreachableState(); |
100 SQLTransactionState sendToFrontendState(); | 100 SQLTransactionState sendToFrontendState(); |
101 | 101 |
102 SQLTransactionState nextStateForCurrentStatementError(); | 102 SQLTransactionState nextStateForCurrentStatementError(); |
103 SQLTransactionState nextStateForTransactionError(); | 103 SQLTransactionState nextStateForTransactionError(); |
104 SQLTransactionState runCurrentStatementAndGetNextState(); | 104 SQLTransactionState runCurrentStatementAndGetNextState(); |
105 | 105 |
106 void getNextStatement(); | 106 void getNextStatement(); |
107 | 107 |
108 Member<SQLTransaction> m_frontend; | 108 CrossThreadPersistent<SQLTransaction> m_frontend; |
109 Member<SQLStatementBackend> m_currentStatementBackend; | 109 CrossThreadPersistent<SQLStatementBackend> m_currentStatementBackend; |
110 | 110 |
111 Member<Database> m_database; | 111 Member<Database> m_database; |
112 Member<SQLTransactionWrapper> m_wrapper; | 112 Member<SQLTransactionWrapper> m_wrapper; |
113 OwnPtr<SQLErrorData> m_transactionError; | 113 OwnPtr<SQLErrorData> m_transactionError; |
114 | 114 |
115 bool m_hasCallback; | 115 bool m_hasCallback; |
116 bool m_hasSuccessCallback; | 116 bool m_hasSuccessCallback; |
117 bool m_hasErrorCallback; | 117 bool m_hasErrorCallback; |
118 bool m_shouldRetryCurrentStatement; | 118 bool m_shouldRetryCurrentStatement; |
119 bool m_modifiedDatabase; | 119 bool m_modifiedDatabase; |
120 bool m_lockAcquired; | 120 bool m_lockAcquired; |
121 bool m_readOnly; | 121 bool m_readOnly; |
122 bool m_hasVersionMismatch; | 122 bool m_hasVersionMismatch; |
123 | 123 |
124 Mutex m_statementMutex; | 124 Mutex m_statementMutex; |
125 HeapDeque<Member<SQLStatementBackend>> m_statementQueue; | 125 Deque<CrossThreadPersistent<SQLStatementBackend>> m_statementQueue; |
126 | 126 |
127 OwnPtr<SQLiteTransaction> m_sqliteTransaction; | 127 OwnPtr<SQLiteTransaction> m_sqliteTransaction; |
128 }; | 128 }; |
129 | 129 |
130 } // namespace blink | 130 } // namespace blink |
131 | 131 |
132 #endif // SQLTransactionBackend_h | 132 #endif // SQLTransactionBackend_h |
OLD | NEW |