OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 16 matching lines...) Expand all Loading... |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef SQLTransactionSync_h | 31 #ifndef SQLTransactionSync_h |
32 #define SQLTransactionSync_h | 32 #define SQLTransactionSync_h |
33 | 33 |
34 #if ENABLE(DATABASE) | 34 #if ENABLE(DATABASE) |
35 | 35 |
36 #include "ExceptionCode.h" | 36 #include "ExceptionCode.h" |
| 37 #include "PlatformString.h" |
37 #include <wtf/Forward.h> | 38 #include <wtf/Forward.h> |
38 #include <wtf/RefCounted.h> | 39 #include <wtf/RefCounted.h> |
39 #include <wtf/Vector.h> | 40 #include <wtf/Vector.h> |
40 | 41 |
41 namespace WebCore { | 42 namespace WebCore { |
42 | 43 |
43 class DatabaseSync; | 44 class DatabaseSync; |
44 class SQLResultSet; | 45 class SQLResultSet; |
45 class SQLTransactionClient; | 46 class SQLTransactionClient; |
46 class SQLTransactionSyncCallback; | 47 class SQLTransactionSyncCallback; |
(...skipping 16 matching lines...) Expand all Loading... |
63 ExceptionCode execute(); | 64 ExceptionCode execute(); |
64 ExceptionCode commit(); | 65 ExceptionCode commit(); |
65 void rollback(); | 66 void rollback(); |
66 | 67 |
67 private: | 68 private: |
68 SQLTransactionSync(DatabaseSync*, PassRefPtr<SQLTransactionSyncCallback>, bo
ol readOnly); | 69 SQLTransactionSync(DatabaseSync*, PassRefPtr<SQLTransactionSyncCallback>, bo
ol readOnly); |
69 | 70 |
70 RefPtr<DatabaseSync> m_database; | 71 RefPtr<DatabaseSync> m_database; |
71 RefPtr<SQLTransactionSyncCallback> m_callback; | 72 RefPtr<SQLTransactionSyncCallback> m_callback; |
72 bool m_readOnly; | 73 bool m_readOnly; |
| 74 bool m_hasVersionMismatch; |
73 | 75 |
74 bool m_modifiedDatabase; | 76 bool m_modifiedDatabase; |
75 OwnPtr<SQLTransactionClient> m_transactionClient; | 77 OwnPtr<SQLTransactionClient> m_transactionClient; |
76 OwnPtr<SQLiteTransaction> m_sqliteTransaction; | 78 OwnPtr<SQLiteTransaction> m_sqliteTransaction; |
77 }; | 79 }; |
78 | 80 |
79 } // namespace WebCore | 81 } // namespace WebCore |
80 | 82 |
81 #endif | 83 #endif |
82 | 84 |
83 #endif // SQLTransactionSync_h | 85 #endif // SQLTransactionSync_h |
OLD | NEW |