Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: Source/WebCore/storage/ChangeVersionWrapper.h

Issue 7563014: Merge 92155 - [Chromium] WebSQLDatabase version handling is broken in multi-process browsers. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/WebCore/storage/AbstractDatabase.cpp ('k') | Source/WebCore/storage/ChangeVersionWrapper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698