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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 private: | 76 private: |
77 SQLTransactionBackend(DatabaseBackend*, PassRefPtrWillBeRawPtr<AbstractSQLTr
ansaction>, | 77 SQLTransactionBackend(DatabaseBackend*, PassRefPtrWillBeRawPtr<AbstractSQLTr
ansaction>, |
78 PassRefPtrWillBeRawPtr<SQLTransactionWrapper>, bool readOnly); | 78 PassRefPtrWillBeRawPtr<SQLTransactionWrapper>, bool readOnly); |
79 | 79 |
80 // APIs called from the frontend published via AbstractSQLTransactionBackend
: | 80 // APIs called from the frontend published via AbstractSQLTransactionBackend
: |
81 virtual void requestTransitToState(SQLTransactionState) OVERRIDE; | 81 virtual void requestTransitToState(SQLTransactionState) OVERRIDE; |
82 virtual SQLErrorData* transactionError() OVERRIDE; | 82 virtual SQLErrorData* transactionError() OVERRIDE; |
83 virtual AbstractSQLStatement* currentStatement() OVERRIDE; | 83 virtual AbstractSQLStatement* currentStatement() OVERRIDE; |
84 virtual void setShouldRetryCurrentStatement(bool) OVERRIDE; | 84 virtual void setShouldRetryCurrentStatement(bool) OVERRIDE; |
85 virtual void executeSQL(PassOwnPtr<AbstractSQLStatement>, const String& stat
ement, | 85 virtual void executeSQL(PassOwnPtrWillBeRawPtr<AbstractSQLStatement>, const
String& statement, |
86 const Vector<SQLValue>& arguments, int permissions) OVERRIDE; | 86 const Vector<SQLValue>& arguments, int permissions) OVERRIDE; |
87 | 87 |
88 void doCleanup(); | 88 void doCleanup(); |
89 | 89 |
90 void enqueueStatementBackend(PassRefPtrWillBeRawPtr<SQLStatementBackend>); | 90 void enqueueStatementBackend(PassRefPtrWillBeRawPtr<SQLStatementBackend>); |
91 | 91 |
92 // State Machine functions: | 92 // State Machine functions: |
93 virtual StateFunction stateFunctionFor(SQLTransactionState) OVERRIDE; | 93 virtual StateFunction stateFunctionFor(SQLTransactionState) OVERRIDE; |
94 void computeNextStateAndCleanupIfNeeded(); | 94 void computeNextStateAndCleanupIfNeeded(); |
95 | 95 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 | 128 |
129 Mutex m_statementMutex; | 129 Mutex m_statementMutex; |
130 Deque<RefPtrWillBeMember<SQLStatementBackend> > m_statementQueue; | 130 Deque<RefPtrWillBeMember<SQLStatementBackend> > m_statementQueue; |
131 | 131 |
132 OwnPtr<SQLiteTransaction> m_sqliteTransaction; | 132 OwnPtr<SQLiteTransaction> m_sqliteTransaction; |
133 }; | 133 }; |
134 | 134 |
135 } // namespace WebCore | 135 } // namespace WebCore |
136 | 136 |
137 #endif // SQLTransactionBackend_h | 137 #endif // SQLTransactionBackend_h |
OLD | NEW |