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 12 matching lines...) Expand all Loading... |
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 #ifndef SQLStatement_h | 28 #ifndef SQLStatement_h |
29 #define SQLStatement_h | 29 #define SQLStatement_h |
30 | 30 |
31 #include "modules/webdatabase/sqlite/SQLValue.h" | 31 #include "modules/webdatabase/sqlite/SQLValue.h" |
32 #include "modules/webdatabase/SQLResultSet.h" | 32 #include "modules/webdatabase/SQLResultSet.h" |
33 #include "wtf/Forward.h" | |
34 #include "wtf/text/WTFString.h" | |
35 | 33 |
36 namespace blink { | 34 namespace blink { |
37 | 35 |
38 class Database; | 36 class Database; |
39 class SQLError; | |
40 class SQLStatementBackend; | 37 class SQLStatementBackend; |
41 class SQLStatementCallback; | 38 class SQLStatementCallback; |
42 class SQLStatementErrorCallback; | 39 class SQLStatementErrorCallback; |
43 class SQLTransaction; | 40 class SQLTransaction; |
44 | 41 |
45 class SQLStatement final : public GarbageCollectedFinalized<SQLStatement> { | 42 class SQLStatement final : public GarbageCollectedFinalized<SQLStatement> { |
46 public: | 43 public: |
47 static SQLStatement* create(Database*, SQLStatementCallback*, SQLStatementEr
rorCallback*); | 44 static SQLStatement* create(Database*, SQLStatementCallback*, SQLStatementEr
rorCallback*); |
48 ~SQLStatement(); | 45 ~SQLStatement(); |
49 void trace(Visitor*); | 46 void trace(Visitor*); |
(...skipping 14 matching lines...) Expand all Loading... |
64 Member<SQLStatementBackend> m_backend; | 61 Member<SQLStatementBackend> m_backend; |
65 | 62 |
66 Member<SQLStatementCallback> m_statementCallback; | 63 Member<SQLStatementCallback> m_statementCallback; |
67 Member<SQLStatementErrorCallback> m_statementErrorCallback; | 64 Member<SQLStatementErrorCallback> m_statementErrorCallback; |
68 int m_asyncOperationId; | 65 int m_asyncOperationId; |
69 }; | 66 }; |
70 | 67 |
71 } // namespace blink | 68 } // namespace blink |
72 | 69 |
73 #endif // SQLStatement_h | 70 #endif // SQLStatement_h |
OLD | NEW |