| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 class Database; | 44 class Database; |
| 45 class ExceptionState; | 45 class ExceptionState; |
| 46 class SQLError; | 46 class SQLError; |
| 47 class SQLStatementCallback; | 47 class SQLStatementCallback; |
| 48 class SQLStatementErrorCallback; | 48 class SQLStatementErrorCallback; |
| 49 class SQLTransactionCallback; | 49 class SQLTransactionCallback; |
| 50 class SQLTransactionErrorCallback; | 50 class SQLTransactionErrorCallback; |
| 51 class SQLValue; | 51 class SQLValue; |
| 52 class VoidCallback; | 52 class VoidCallback; |
| 53 | 53 |
| 54 class SQLTransaction FINAL : public SQLTransactionStateMachine<SQLTransaction>,
public AbstractSQLTransaction, public ScriptWrappable { | 54 class SQLTransaction FINAL : public AbstractSQLTransaction, public SQLTransactio
nStateMachine<SQLTransaction>, public ScriptWrappable { |
| 55 public: | 55 public: |
| 56 static PassRefPtr<SQLTransaction> create(Database*, PassOwnPtr<SQLTransactio
nCallback>, | 56 static PassRefPtrWillBeRawPtr<SQLTransaction> create(Database*, PassOwnPtr<S
QLTransactionCallback>, |
| 57 PassOwnPtr<VoidCallback> successCallback, PassOwnPtr<SQLTransactionError
Callback>, | 57 PassOwnPtr<VoidCallback> successCallback, PassOwnPtr<SQLTransactionError
Callback>, |
| 58 bool readOnly); | 58 bool readOnly); |
| 59 virtual void trace(Visitor*) OVERRIDE; |
| 59 | 60 |
| 60 void performPendingCallback(); | 61 void performPendingCallback(); |
| 61 | 62 |
| 62 void executeSQL(const String& sqlStatement, const Vector<SQLValue>& argument
s, | 63 void executeSQL(const String& sqlStatement, const Vector<SQLValue>& argument
s, |
| 63 PassOwnPtr<SQLStatementCallback>, PassOwnPtr<SQLStatementErrorCallback>,
ExceptionState&); | 64 PassOwnPtr<SQLStatementCallback>, PassOwnPtr<SQLStatementErrorCallback>,
ExceptionState&); |
| 64 | 65 |
| 65 Database* database() { return m_database.get(); } | 66 Database* database() { return m_database.get(); } |
| 66 | 67 |
| 67 PassOwnPtr<SQLTransactionErrorCallback> releaseErrorCallback(); | 68 PassOwnPtr<SQLTransactionErrorCallback> releaseErrorCallback(); |
| 68 | 69 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 89 SQLTransactionState deliverTransactionErrorCallback(); | 90 SQLTransactionState deliverTransactionErrorCallback(); |
| 90 SQLTransactionState deliverStatementCallback(); | 91 SQLTransactionState deliverStatementCallback(); |
| 91 SQLTransactionState deliverQuotaIncreaseCallback(); | 92 SQLTransactionState deliverQuotaIncreaseCallback(); |
| 92 SQLTransactionState deliverSuccessCallback(); | 93 SQLTransactionState deliverSuccessCallback(); |
| 93 | 94 |
| 94 SQLTransactionState unreachableState(); | 95 SQLTransactionState unreachableState(); |
| 95 SQLTransactionState sendToBackendState(); | 96 SQLTransactionState sendToBackendState(); |
| 96 | 97 |
| 97 SQLTransactionState nextStateForTransactionError(); | 98 SQLTransactionState nextStateForTransactionError(); |
| 98 | 99 |
| 99 RefPtrWillBeCrossThreadPersistent<Database> m_database; | 100 RefPtrWillBeMember<Database> m_database; |
| 100 RefPtr<AbstractSQLTransactionBackend> m_backend; | 101 RefPtr<AbstractSQLTransactionBackend> m_backend; |
| 101 SQLCallbackWrapper<SQLTransactionCallback> m_callbackWrapper; | 102 SQLCallbackWrapper<SQLTransactionCallback> m_callbackWrapper; |
| 102 SQLCallbackWrapper<VoidCallback> m_successCallbackWrapper; | 103 SQLCallbackWrapper<VoidCallback> m_successCallbackWrapper; |
| 103 SQLCallbackWrapper<SQLTransactionErrorCallback> m_errorCallbackWrapper; | 104 SQLCallbackWrapper<SQLTransactionErrorCallback> m_errorCallbackWrapper; |
| 104 | 105 |
| 105 bool m_executeSqlAllowed; | 106 bool m_executeSqlAllowed; |
| 106 RefPtr<SQLError> m_transactionError; | 107 RefPtr<SQLError> m_transactionError; |
| 107 | 108 |
| 108 bool m_readOnly; | 109 bool m_readOnly; |
| 109 }; | 110 }; |
| 110 | 111 |
| 111 } // namespace WebCore | 112 } // namespace WebCore |
| 112 | 113 |
| 113 #endif // SQLTransaction_h | 114 #endif // SQLTransaction_h |
| OLD | NEW |