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

Unified Diff: content/browser/indexed_db/leveldb/leveldb_iterator.h

Issue 2760163002: [IndexedDB] Pool and evict leveldb iterators, to save memory (Closed)
Patch Set: 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/leveldb/leveldb_iterator.h
diff --git a/content/browser/indexed_db/leveldb/leveldb_iterator.h b/content/browser/indexed_db/leveldb/leveldb_iterator.h
index d5efa4bf51951f6218d0cbcb804e282c6397b4d2..ab62b81c6de2e9971d2c27e0923421921f69348a 100644
--- a/content/browser/indexed_db/leveldb/leveldb_iterator.h
+++ b/content/browser/indexed_db/leveldb/leveldb_iterator.h
@@ -21,6 +21,7 @@ class CONTENT_EXPORT LevelDBIterator {
virtual leveldb::Status Prev() = 0;
virtual base::StringPiece Key() const = 0;
virtual base::StringPiece Value() const = 0;
+ virtual void EvictWorkingMemory(){};
jsbell 2017/03/21 00:15:48 I seem to recall that there's a more common name f
dmurph 2017/03/21 20:13:26 I found memory pressure? https://cs.chromium.org/c
jsbell 2017/03/21 20:51:39 I think PurgeMemory() is what I was looking for -
dmurph 2017/03/22 18:35:58 Done.
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698