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

Side by Side Diff: content/browser/indexed_db/leveldb/leveldb_iterator_pool_controller.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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_ITERATOR_POOL_CONTROLLER_H_
6 #define CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_ITERATOR_POOL_CONTROLLER_H_
7
8 #include <memory>
9
10 namespace leveldb {
11 class Iterator;
12 class Snapshot;
13 }
14
15 namespace content {
16 class LevelDBIterator;
17
18 class LevelDBIteratorPoolController {
19 public:
20 virtual ~LevelDBIteratorPoolController() {}
21
22 virtual std::unique_ptr<leveldb::Iterator> CreateLevelDBIterator(
23 const leveldb::Snapshot*) = 0;
24 virtual void NotifyIteratorUsed(LevelDBIterator*) = 0;
25 virtual void NotifyIteratorDestroyed(LevelDBIterator*) = 0;
26 };
27
28 } // namespace content
29
30 #endif // CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_ITERATOR_POOL_CONTROLLER_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698