| 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
|
|
|