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

Side by Side Diff: content/browser/indexed_db/leveldb/leveldb_database.h

Issue 562333005: IndexedDB: Enabled the LevelDB Bloom filter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added Bloom filter comment. Created 6 years, 3 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 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_DATABASE_H_ 5 #ifndef CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_DATABASE_H_
6 #define CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_DATABASE_H_ 6 #define CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_DATABASE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "base/strings/string_piece.h" 13 #include "base/strings/string_piece.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "third_party/leveldatabase/src/include/leveldb/comparator.h" 15 #include "third_party/leveldatabase/src/include/leveldb/comparator.h"
16 #include "third_party/leveldatabase/src/include/leveldb/status.h" 16 #include "third_party/leveldatabase/src/include/leveldb/status.h"
17 17
18 namespace leveldb { 18 namespace leveldb {
19 class Comparator; 19 class Comparator;
20 class DB; 20 class DB;
21 class FilterPolicy;
21 class Env; 22 class Env;
22 class Snapshot; 23 class Snapshot;
23 } 24 }
24 25
25 namespace content { 26 namespace content {
26 27
27 class LevelDBComparator; 28 class LevelDBComparator;
28 class LevelDBDatabase; 29 class LevelDBDatabase;
29 class LevelDBIterator; 30 class LevelDBIterator;
30 class LevelDBWriteBatch; 31 class LevelDBWriteBatch;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 98
98 protected: 99 protected:
99 LevelDBDatabase(); 100 LevelDBDatabase();
100 101
101 private: 102 private:
102 friend class LevelDBSnapshot; 103 friend class LevelDBSnapshot;
103 104
104 scoped_ptr<leveldb::Env> env_; 105 scoped_ptr<leveldb::Env> env_;
105 scoped_ptr<leveldb::Comparator> comparator_adapter_; 106 scoped_ptr<leveldb::Comparator> comparator_adapter_;
106 scoped_ptr<leveldb::DB> db_; 107 scoped_ptr<leveldb::DB> db_;
108 scoped_ptr<const leveldb::FilterPolicy> filter_policy_;
107 const LevelDBComparator* comparator_; 109 const LevelDBComparator* comparator_;
108 }; 110 };
109 111
110 } // namespace content 112 } // namespace content
111 113
112 #endif // CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_DATABASE_H_ 114 #endif // CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_DATABASE_H_
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_leveldb_coding.cc ('k') | content/browser/indexed_db/leveldb/leveldb_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698