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

Unified Diff: components/safe_browsing_db/v4_local_database_manager.h

Issue 1983603002: Revert of Initialize and reset V4LocalDBManager. Instantiate V4Stores. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v4_01_db_realz
Patch Set: 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_local_database_manager.h
diff --git a/components/safe_browsing_db/v4_local_database_manager.h b/components/safe_browsing_db/v4_local_database_manager.h
index 2fba95086dea2ecb022f936aa8419ca858978c80..ac8900c8822da87700609303c6cbb442978a57ff 100644
--- a/components/safe_browsing_db/v4_local_database_manager.h
+++ b/components/safe_browsing_db/v4_local_database_manager.h
@@ -27,7 +27,7 @@
public:
// Construct V4LocalDatabaseManager.
// Must be initialized by calling StartOnIOThread() before using.
- V4LocalDatabaseManager(const base::FilePath& base_path);
+ V4LocalDatabaseManager();
//
// SafeBrowsingDatabaseManager implementation
@@ -41,8 +41,9 @@
bool IsDownloadProtectionEnabled() const override;
bool CheckBrowseUrl(const GURL& url, Client* client) override;
void CancelCheck(Client* client) override;
- void StartOnIOThread(net::URLRequestContextGetter* request_context_getter,
- const V4ProtocolConfig& config) override;
+ void StartOnIOThread(
+ net::URLRequestContextGetter* request_context_getter,
+ const V4ProtocolConfig& config) override;
void StopOnIOThread(bool shutdown) override;
bool CheckDownloadUrl(const std::vector<GURL>& url_chain,
Client* client) override;
@@ -65,20 +66,6 @@
// successfully.
void UpdateRequestCompleted(const std::vector<ListUpdateResponse>& responses);
- void SetupUpdateProtocolManager(
- net::URLRequestContextGetter* request_context_getter,
- const V4ProtocolConfig& config);
-
- void SetupDatabase();
-
- void DatabaseReady(std::unique_ptr<V4Database> v4_database);
-
- void OnCloseDatabase();
-
- // The base directory under which to create the files that contain hashes.
- const base::FilePath base_path_;
-
- // Whether the service is running.
bool enabled_;
// Stores the current status of the lists to download from the SafeBrowsing
@@ -91,11 +78,7 @@
std::unique_ptr<V4UpdateProtocolManager> v4_update_protocol_manager_;
// The database that manages the stores containing the hash prefix updates.
- // All writes to this variable must happen on the IO thread only.
std::unique_ptr<V4Database> v4_database_;
-
- // The sequenced task runner for running safe browsing database operations.
- scoped_refptr<base::SequencedTaskRunner> task_runner_;
friend class base::RefCountedThreadSafe<V4LocalDatabaseManager>;
DISALLOW_COPY_AND_ASSIGN(V4LocalDatabaseManager);
« no previous file with comments | « components/safe_browsing_db/v4_database.cc ('k') | components/safe_browsing_db/v4_local_database_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698