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

Unified Diff: content/browser/indexed_db/indexed_db_class_factory.h

Issue 2760163002: [IndexedDB] Pool and evict leveldb iterators, to save memory (Closed)
Patch Set: comments Created 3 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
Index: content/browser/indexed_db/indexed_db_class_factory.h
diff --git a/content/browser/indexed_db/indexed_db_class_factory.h b/content/browser/indexed_db/indexed_db_class_factory.h
index 3c218f0a8343bad65df564fdb908eb43ee5dce85..682efc464ebbce98c890cfb8fff700149fe2a8b0 100644
--- a/content/browser/indexed_db/indexed_db_class_factory.h
+++ b/content/browser/indexed_db/indexed_db_class_factory.h
@@ -19,6 +19,7 @@
namespace leveldb {
class Iterator;
+class Snapshot;
} // namespace leveldb
namespace content {
@@ -55,7 +56,9 @@ class CONTENT_EXPORT IndexedDBClassFactory {
IndexedDBBackingStore::Transaction* backing_store_transaction);
virtual std::unique_ptr<LevelDBIteratorImpl> CreateIteratorImpl(
- std::unique_ptr<leveldb::Iterator> iterator);
+ std::unique_ptr<leveldb::Iterator> iterator,
+ LevelDBDatabase* db,
+ const leveldb::Snapshot* snapshot);
virtual scoped_refptr<LevelDBTransaction> CreateLevelDBTransaction(
LevelDBDatabase* db);

Powered by Google App Engine
This is Rietveld 408576698