OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 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 26 matching lines...) Expand all Loading... |
37 namespace WebCore { | 37 namespace WebCore { |
38 | 38 |
39 class SQLError; | 39 class SQLError; |
40 | 40 |
41 class ChangeVersionWrapper : public SQLTransactionWrapper { | 41 class ChangeVersionWrapper : public SQLTransactionWrapper { |
42 public: | 42 public: |
43 static PassRefPtr<ChangeVersionWrapper> create(const String& oldVersion, con
st String& newVersion) { return adoptRef(new ChangeVersionWrapper(oldVersion, ne
wVersion)); } | 43 static PassRefPtr<ChangeVersionWrapper> create(const String& oldVersion, con
st String& newVersion) { return adoptRef(new ChangeVersionWrapper(oldVersion, ne
wVersion)); } |
44 | 44 |
45 virtual bool performPreflight(SQLTransaction*); | 45 virtual bool performPreflight(SQLTransaction*); |
46 virtual bool performPostflight(SQLTransaction*); | 46 virtual bool performPostflight(SQLTransaction*); |
47 | |
48 virtual SQLError* sqlError() const { return m_sqlError.get(); } | 47 virtual SQLError* sqlError() const { return m_sqlError.get(); } |
| 48 virtual void handleCommitFailedAfterPostflight(SQLTransaction*); |
49 | 49 |
50 private: | 50 private: |
51 ChangeVersionWrapper(const String& oldVersion, const String& newVersion); | 51 ChangeVersionWrapper(const String& oldVersion, const String& newVersion); |
52 | 52 |
53 String m_oldVersion; | 53 String m_oldVersion; |
54 String m_newVersion; | 54 String m_newVersion; |
55 RefPtr<SQLError> m_sqlError; | 55 RefPtr<SQLError> m_sqlError; |
56 }; | 56 }; |
57 | 57 |
58 } // namespace WebCore | 58 } // namespace WebCore |
59 | 59 |
60 #endif | 60 #endif |
61 | 61 |
62 #endif // ChangeVersionWrapper_h | 62 #endif // ChangeVersionWrapper_h |
OLD | NEW |