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

Side by Side Diff: Source/WebCore/Modules/indexeddb/IDBLevelDBBackingStore.h

Issue 10422005: Merge 116562 - IndexedDB: call abort handler when there are problems committing (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 7 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 String m_identifier; 86 String m_identifier;
87 RefPtr<IDBFactoryBackendImpl> m_factory; 87 RefPtr<IDBFactoryBackendImpl> m_factory;
88 OwnPtr<LevelDBDatabase> m_db; 88 OwnPtr<LevelDBDatabase> m_db;
89 OwnPtr<LevelDBComparator> m_comparator; 89 OwnPtr<LevelDBComparator> m_comparator;
90 RefPtr<LevelDBTransaction> m_currentTransaction; 90 RefPtr<LevelDBTransaction> m_currentTransaction;
91 91
92 class Transaction : public IDBBackingStore::Transaction { 92 class Transaction : public IDBBackingStore::Transaction {
93 public: 93 public:
94 static PassRefPtr<Transaction> create(IDBLevelDBBackingStore*); 94 static PassRefPtr<Transaction> create(IDBLevelDBBackingStore*);
95 virtual void begin(); 95 virtual void begin();
96 virtual void commit(); 96 virtual bool commit();
97 virtual void rollback(); 97 virtual void rollback();
98 98
99 private: 99 private:
100 Transaction(IDBLevelDBBackingStore*); 100 Transaction(IDBLevelDBBackingStore*);
101 IDBLevelDBBackingStore* m_backingStore; 101 IDBLevelDBBackingStore* m_backingStore;
102 }; 102 };
103 }; 103 };
104 104
105 } // namespace WebCore 105 } // namespace WebCore
106 106
107 107
108 #endif // USE(LEVELDB) 108 #endif // USE(LEVELDB)
109 #endif // ENABLE(INDEXED_DATABASE) 109 #endif // ENABLE(INDEXED_DATABASE)
110 110
111 #endif // IDBLevelDBBackingStore_h 111 #endif // IDBLevelDBBackingStore_h
OLDNEW
« no previous file with comments | « Source/WebCore/Modules/indexeddb/IDBBackingStore.h ('k') | Source/WebCore/Modules/indexeddb/IDBLevelDBBackingStore.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698