OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 12 matching lines...) Expand all Loading... |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef SQLiteStatement_h | 26 #ifndef SQLiteStatement_h |
27 #define SQLiteStatement_h | 27 #define SQLiteStatement_h |
28 | 28 |
29 #include "modules/webdatabase/sqlite/SQLiteDatabase.h" | 29 #include "modules/webdatabase/sqlite/SQLiteDatabase.h" |
30 | 30 |
31 struct sqlite3_stmt; | 31 struct sqlite3_stmt; |
32 | 32 |
33 namespace WebCore { | 33 namespace blink { |
34 | 34 |
35 class SQLValue; | 35 class SQLValue; |
36 | 36 |
37 class SQLiteStatement { | 37 class SQLiteStatement { |
38 WTF_MAKE_NONCOPYABLE(SQLiteStatement); WTF_MAKE_FAST_ALLOCATED; | 38 WTF_MAKE_NONCOPYABLE(SQLiteStatement); WTF_MAKE_FAST_ALLOCATED; |
39 public: | 39 public: |
40 SQLiteStatement(SQLiteDatabase&, const String&); | 40 SQLiteStatement(SQLiteDatabase&, const String&); |
41 ~SQLiteStatement(); | 41 ~SQLiteStatement(); |
42 | 42 |
43 int prepare(); | 43 int prepare(); |
(...skipping 25 matching lines...) Expand all Loading... |
69 | 69 |
70 private: | 70 private: |
71 SQLiteDatabase& m_database; | 71 SQLiteDatabase& m_database; |
72 String m_query; | 72 String m_query; |
73 sqlite3_stmt* m_statement; | 73 sqlite3_stmt* m_statement; |
74 #if ENABLE(ASSERT) | 74 #if ENABLE(ASSERT) |
75 bool m_isPrepared; | 75 bool m_isPrepared; |
76 #endif | 76 #endif |
77 }; | 77 }; |
78 | 78 |
79 } // namespace WebCore | 79 } // namespace blink |
80 | 80 |
81 #endif // SQLiteStatement_h | 81 #endif // SQLiteStatement_h |
OLD | NEW |