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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 class ExceptionState; | 45 class ExceptionState; |
46 class SQLErrorData; | 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 DEFINE_WRAPPERTYPEINFO(); |
55 public: | 56 public: |
56 static PassRefPtrWillBeRawPtr<SQLTransaction> create(Database*, PassOwnPtrWi
llBeRawPtr<SQLTransactionCallback>, | 57 static PassRefPtrWillBeRawPtr<SQLTransaction> create(Database*, PassOwnPtrWi
llBeRawPtr<SQLTransactionCallback>, |
57 PassOwnPtrWillBeRawPtr<VoidCallback> successCallback, PassOwnPtrWillBeRa
wPtr<SQLTransactionErrorCallback>, | 58 PassOwnPtrWillBeRawPtr<VoidCallback> successCallback, PassOwnPtrWillBeRa
wPtr<SQLTransactionErrorCallback>, |
58 bool readOnly); | 59 bool readOnly); |
59 virtual void trace(Visitor*) OVERRIDE; | 60 virtual void trace(Visitor*) OVERRIDE; |
60 | 61 |
61 void performPendingCallback(); | 62 void performPendingCallback(); |
62 | 63 |
63 void executeSQL(const String& sqlStatement, const Vector<SQLValue>& argument
s, | 64 void executeSQL(const String& sqlStatement, const Vector<SQLValue>& argument
s, |
64 PassOwnPtrWillBeRawPtr<SQLStatementCallback>, PassOwnPtrWillBeRawPtr<SQL
StatementErrorCallback>, ExceptionState&); | 65 PassOwnPtrWillBeRawPtr<SQLStatementCallback>, PassOwnPtrWillBeRawPtr<SQL
StatementErrorCallback>, ExceptionState&); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 106 |
106 bool m_executeSqlAllowed; | 107 bool m_executeSqlAllowed; |
107 OwnPtr<SQLErrorData> m_transactionError; | 108 OwnPtr<SQLErrorData> m_transactionError; |
108 | 109 |
109 bool m_readOnly; | 110 bool m_readOnly; |
110 }; | 111 }; |
111 | 112 |
112 } // namespace blink | 113 } // namespace blink |
113 | 114 |
114 #endif // SQLTransaction_h | 115 #endif // SQLTransaction_h |
OLD | NEW |