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 25 matching lines...) Expand all Loading... |
36 #include "modules/webdatabase/SQLStatement.h" | 36 #include "modules/webdatabase/SQLStatement.h" |
37 #include "modules/webdatabase/SQLTransactionStateMachine.h" | 37 #include "modules/webdatabase/SQLTransactionStateMachine.h" |
38 #include "wtf/PassRefPtr.h" | 38 #include "wtf/PassRefPtr.h" |
39 #include "wtf/RefPtr.h" | 39 #include "wtf/RefPtr.h" |
40 | 40 |
41 namespace WebCore { | 41 namespace WebCore { |
42 | 42 |
43 class AbstractSQLTransactionBackend; | 43 class AbstractSQLTransactionBackend; |
44 class Database; | 44 class Database; |
45 class ExceptionState; | 45 class ExceptionState; |
46 class SQLError; | 46 class SQLErrorData; |
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 AbstractSQLTransaction, public SQLTransactio
nStateMachine<SQLTransaction>, public ScriptWrappable { | 54 class SQLTransaction FINAL : public AbstractSQLTransaction, public SQLTransactio
nStateMachine<SQLTransaction>, public ScriptWrappable { |
55 public: | 55 public: |
56 static PassRefPtrWillBeRawPtr<SQLTransaction> create(Database*, PassOwnPtr<S
QLTransactionCallback>, | 56 static PassRefPtrWillBeRawPtr<SQLTransaction> create(Database*, PassOwnPtr<S
QLTransactionCallback>, |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 SQLTransactionState nextStateForTransactionError(); | 98 SQLTransactionState nextStateForTransactionError(); |
99 | 99 |
100 RefPtrWillBeMember<Database> m_database; | 100 RefPtrWillBeMember<Database> m_database; |
101 RefPtrWillBeMember<AbstractSQLTransactionBackend> m_backend; | 101 RefPtrWillBeMember<AbstractSQLTransactionBackend> m_backend; |
102 SQLCallbackWrapper<SQLTransactionCallback> m_callbackWrapper; | 102 SQLCallbackWrapper<SQLTransactionCallback> m_callbackWrapper; |
103 SQLCallbackWrapper<VoidCallback> m_successCallbackWrapper; | 103 SQLCallbackWrapper<VoidCallback> m_successCallbackWrapper; |
104 SQLCallbackWrapper<SQLTransactionErrorCallback> m_errorCallbackWrapper; | 104 SQLCallbackWrapper<SQLTransactionErrorCallback> m_errorCallbackWrapper; |
105 | 105 |
106 bool m_executeSqlAllowed; | 106 bool m_executeSqlAllowed; |
107 RefPtr<SQLError> m_transactionError; | 107 OwnPtr<SQLErrorData> m_transactionError; |
108 | 108 |
109 bool m_readOnly; | 109 bool m_readOnly; |
110 }; | 110 }; |
111 | 111 |
112 } // namespace WebCore | 112 } // namespace WebCore |
113 | 113 |
114 #endif // SQLTransaction_h | 114 #endif // SQLTransaction_h |
OLD | NEW |