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

Unified Diff: components/safe_browsing_db/v4_store.h

Issue 1954393002: Initialize and reset V4LocalDBManager. Instantiate V4Stores. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v4_01_db_realz
Patch Set: CR feedback Created 4 years, 7 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/safe_browsing_db/v4_store.h
diff --git a/components/safe_browsing_db/v4_store.h b/components/safe_browsing_db/v4_store.h
index be9ff9da954843a17fa8704f90d753b22d62bc3f..c1294c723101a5a09ff712cfd98ab473b3542db1 100644
--- a/components/safe_browsing_db/v4_store.h
+++ b/components/safe_browsing_db/v4_store.h
@@ -5,9 +5,26 @@
#ifndef COMPONENTS_SAFE_BROWSING_DB_V4_STORE_H_
#define COMPONENTS_SAFE_BROWSING_DB_V4_STORE_H_
+#include "base/files/file_path.h"
+#include "base/memory/ref_counted.h"
+#include "base/sequenced_task_runner.h"
+
namespace safe_browsing {
class V4Store {
+ public:
+ // The |task_runner| is used to ensure that the operations in this file are
+ // performed on the correct thread. |store_path| specifies the location on
+ // disk for this file.
+ V4Store(const scoped_refptr<base::SequencedTaskRunner>& task_runner,
+ const base::FilePath& store_path);
+ virtual ~V4Store();
+
+ // Reset internal state and delete the backing file.
+ virtual bool Reset();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(V4Store);
};
} // namespace safe_browsing

Powered by Google App Engine
This is Rietveld 408576698