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

Unified Diff: components/data_reduction_proxy/core/browser/data_store_impl.h

Issue 2810393002: Fix memory issues with the Data Reduction proxy LevelDB (Closed)
Patch Set: ryan comments Created 3 years, 8 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: components/data_reduction_proxy/core/browser/data_store_impl.h
diff --git a/components/data_reduction_proxy/core/browser/data_store_impl.h b/components/data_reduction_proxy/core/browser/data_store_impl.h
index b7aeca2bbd222da938d035accf31214bfd689f09..950de079ae0cb2645d47f9c1f95a3484c1a2d420 100644
--- a/components/data_reduction_proxy/core/browser/data_store_impl.h
+++ b/components/data_reduction_proxy/core/browser/data_store_impl.h
@@ -36,14 +36,14 @@ class DataStoreImpl : public DataStore {
Status Delete(base::StringPiece key) override;
+ // Deletes the LevelDB and recreates it. This method is called if any DB call
+ // returns a |CORRUPTED| status or the database is cleared.
+ Status RecreateDB() override;
+
private:
// Opens the underlying LevelDB for read and write.
Status OpenDB();
- // Deletes the LevelDB and recreates it. This method is called if any DB call
- // returns a |CORRUPTED| status.
- void RecreateDB();
-
// The underlying LevelDB used by this implementation.
std::unique_ptr<leveldb::DB> db_;

Powered by Google App Engine
This is Rietveld 408576698