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

Unified Diff: content/browser/indexed_db/leveldb/leveldb_transaction.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/leveldb/leveldb_transaction.h
diff --git a/content/browser/indexed_db/leveldb/leveldb_transaction.h b/content/browser/indexed_db/leveldb/leveldb_transaction.h
index a701a94748a6b02c10dcfdbd4f947084fa0f2a8f..19181f0884bf434a140cccd8e3f7b46bb546eee0 100644
--- a/content/browser/indexed_db/leveldb/leveldb_transaction.h
+++ b/content/browser/indexed_db/leveldb/leveldb_transaction.h
@@ -19,8 +19,6 @@
#include "content/browser/indexed_db/leveldb/leveldb_iterator.h"
namespace content {
-
-class LevelDBTransactionRangeTest;
class LevelDBWriteBatch;
class CONTENT_EXPORT LevelDBTransaction
@@ -49,7 +47,8 @@ class CONTENT_EXPORT LevelDBTransaction
private:
friend class base::RefCounted<LevelDBTransaction>;
- friend class content::LevelDBTransactionRangeTest;
+ friend class LevelDBTransactionRangeTest;
+ friend class LevelDBTransactionTest;
FRIEND_TEST_ALL_PREFIXES(LevelDBTransactionTest, GetAndPut);
FRIEND_TEST_ALL_PREFIXES(LevelDBTransactionTest, Commit);
FRIEND_TEST_ALL_PREFIXES(LevelDBTransactionTest, Iterator);
@@ -123,6 +122,8 @@ class CONTENT_EXPORT LevelDBTransaction
leveldb::Status Prev() override;
base::StringPiece Key() const override;
base::StringPiece Value() const override;
+ // Exposed for testing.
+ bool IsDetached() const override;
void DataChanged();
// Mark the current record as deleted. If an existing record
« no previous file with comments | « content/browser/indexed_db/leveldb/leveldb_iterator_impl.cc ('k') | content/browser/indexed_db/leveldb/leveldb_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698