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

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: CR feedback: Only one group, and use new API. 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..978ab771bc7b6a64499253c43c3cf7d1832bef60 100644
--- a/chrome/browser/safe_browsing/services_delegate.h
+++ b/chrome/browser/safe_browsing/services_delegate.h
@@ -28,6 +28,7 @@ class IncidentReportingService;
class ResourceRequestDetector;
struct ResourceRequestInfo;
class SafeBrowsingService;
+struct V4ProtocolConfig;
// Abstraction to help organize code for mobile vs full safe browsing modes.
// This helper class should be owned by a SafeBrowsingService, and it handles
@@ -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
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_service.cc ('k') | chrome/browser/safe_browsing/services_delegate_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698