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

Unified Diff: chrome/browser/safe_browsing/services_delegate.h

Issue 1924983002: Enable V4LocalDatabaseManager based on Finch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git fetch & pull Created 4 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: chrome/browser/safe_browsing/services_delegate.h
diff --git a/chrome/browser/safe_browsing/services_delegate.h b/chrome/browser/safe_browsing/services_delegate.h
index 084068ca8b0e65bb0a9ee63a5a9c42b1f6437ffe..9bd27d33a288b9db496f32f6d17770b37fefd1ab 100644
--- a/chrome/browser/safe_browsing/services_delegate.h
+++ b/chrome/browser/safe_browsing/services_delegate.h
@@ -8,6 +8,7 @@
#include <memory>
#include "chrome/browser/safe_browsing/incident_reporting/delayed_analysis_callback.h"
+#include "components/safe_browsing_db/v4_protocol_manager_util.h"
#include "components/user_prefs/tracked/tracked_preference_validation_delegate.h"
class Profile;
@@ -65,13 +66,13 @@ class ServicesDelegate {
virtual ~ServicesDelegate() {}
+ // Initializes internal state using the ServicesCreator.
+ virtual void Initialize() = 0;
+
// Creates the CSD service for the given |context_getter|.
virtual void InitializeCsdService(
net::URLRequestContextGetter* context_getter) = 0;
- // Initializes services using the ServicesCreator.
- virtual void InitializeServices() = 0;
-
// Shuts down the download service.
virtual void ShutdownServices() = 0;
@@ -92,6 +93,11 @@ class ServicesDelegate {
// Returns nullptr for any service that is not available.
virtual ClientSideDetectionService* GetCsdService() = 0;
virtual DownloadProtectionService* GetDownloadService() = 0;
+
+ virtual void StartOnIOThread(
+ net::URLRequestContextGetter* url_request_context_getter,
+ const V4ProtocolConfig& v4_config) = 0;
+ virtual void StopOnIOThread(bool shutdown) = 0;
};
} // namespace safe_browsing

Powered by Google App Engine
This is Rietveld 408576698