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

Unified Diff: Source/WebCore/platform/leveldb/LevelDBDatabase.h

Issue 12549003: Merge 144323 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/Modules/indexeddb/IDBBackingStore.cpp ('k') | Source/WebKit/chromium/WebKit.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/platform/leveldb/LevelDBDatabase.h
===================================================================
--- Source/WebCore/platform/leveldb/LevelDBDatabase.h (revision 144946)
+++ Source/WebCore/platform/leveldb/LevelDBDatabase.h (working copy)
@@ -65,18 +65,20 @@
static PassOwnPtr<LevelDBDatabase> open(const String& fileName, const LevelDBComparator*);
static PassOwnPtr<LevelDBDatabase> openInMemory(const LevelDBComparator*);
static bool destroy(const String& fileName);
- ~LevelDBDatabase();
+ virtual ~LevelDBDatabase();
bool put(const LevelDBSlice& key, const Vector<char>& value);
bool remove(const LevelDBSlice& key);
- bool safeGet(const LevelDBSlice& key, Vector<char>& value, bool& found, const LevelDBSnapshot* = 0);
+ virtual bool safeGet(const LevelDBSlice& key, Vector<char>& value, bool& found, const LevelDBSnapshot* = 0);
bool write(LevelDBWriteBatch&);
PassOwnPtr<LevelDBIterator> createIterator(const LevelDBSnapshot* = 0);
const LevelDBComparator* comparator() const;
+protected:
+ LevelDBDatabase();
+
private:
friend class LevelDBSnapshot;
- LevelDBDatabase();
OwnPtr<leveldb::Env> m_env;
OwnPtr<leveldb::Comparator> m_comparatorAdapter;
« no previous file with comments | « Source/WebCore/Modules/indexeddb/IDBBackingStore.cpp ('k') | Source/WebKit/chromium/WebKit.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698