OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 DatabaseSync* database() { return m_database.get(); } | 58 DatabaseSync* database() { return m_database.get(); } |
59 bool isReadOnly() const { return m_readOnly; } | 59 bool isReadOnly() const { return m_readOnly; } |
60 | 60 |
61 void begin(ExceptionState&); | 61 void begin(ExceptionState&); |
62 void execute(ExceptionState&); | 62 void execute(ExceptionState&); |
63 void commit(ExceptionState&); | 63 void commit(ExceptionState&); |
64 void rollback(); | 64 void rollback(); |
65 | 65 |
66 private: | 66 private: |
67 SQLTransactionBackendSync(DatabaseSync*, PassRefPtr<SQLTransactionSyncCallba
ck>, bool readOnly); | 67 SQLTransactionBackendSync(DatabaseSync*, PassOwnPtr<SQLTransactionSyncCallba
ck>, bool readOnly); |
68 | 68 |
69 RefPtr<DatabaseSync> m_database; | 69 RefPtr<DatabaseSync> m_database; |
70 RefPtr<SQLTransactionSyncCallback> m_callback; | 70 OwnPtr<SQLTransactionSyncCallback> m_callback; |
71 bool m_readOnly; | 71 bool m_readOnly; |
72 bool m_hasVersionMismatch; | 72 bool m_hasVersionMismatch; |
73 | 73 |
74 bool m_modifiedDatabase; | 74 bool m_modifiedDatabase; |
75 OwnPtr<SQLTransactionClient> m_transactionClient; | 75 OwnPtr<SQLTransactionClient> m_transactionClient; |
76 OwnPtr<SQLiteTransaction> m_sqliteTransaction; | 76 OwnPtr<SQLiteTransaction> m_sqliteTransaction; |
77 | 77 |
78 friend class SQLTransactionSync; // FIXME: Remove this once the front-end ha
s been properly isolated. | 78 friend class SQLTransactionSync; // FIXME: Remove this once the front-end ha
s been properly isolated. |
79 }; | 79 }; |
80 | 80 |
81 } // namespace WebCore | 81 } // namespace WebCore |
82 | 82 |
83 #endif // SQLTransactionBackendSync_h | 83 #endif // SQLTransactionBackendSync_h |
OLD | NEW |