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

Side by Side Diff: chrome/browser/safe_browsing/services_delegate_stub.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, 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SERVICES_DELEGATE_STUB_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SERVICES_DELEGATE_STUB_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_SERVICES_DELEGATE_STUB_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_SERVICES_DELEGATE_STUB_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/safe_browsing/services_delegate.h" 9 #include "chrome/browser/safe_browsing/services_delegate.h"
10 10
11 namespace safe_browsing { 11 namespace safe_browsing {
12 12
13 // Dummy ServicesDelegate implementation. Create via ServicesDelegate::Create(). 13 // Dummy ServicesDelegate implementation. Create via ServicesDelegate::Create().
14 class ServicesDelegateStub : public ServicesDelegate { 14 class ServicesDelegateStub : public ServicesDelegate {
15 public: 15 public:
16 ServicesDelegateStub(); 16 ServicesDelegateStub();
17 ~ServicesDelegateStub() override; 17 ~ServicesDelegateStub() override;
18 18
19 private: 19 private:
20 // ServicesDelegate: 20 // ServicesDelegate:
21 void Initialize() override;
21 void InitializeCsdService( 22 void InitializeCsdService(
22 net::URLRequestContextGetter* context_getter) override; 23 net::URLRequestContextGetter* context_getter) override;
23 void InitializeServices() override;
24 void ShutdownServices() override; 24 void ShutdownServices() override;
25 void RefreshState(bool enable) override; 25 void RefreshState(bool enable) override;
26 void ProcessResourceRequest(const ResourceRequestInfo* request) override; 26 void ProcessResourceRequest(const ResourceRequestInfo* request) override;
27 std::unique_ptr<TrackedPreferenceValidationDelegate> 27 std::unique_ptr<TrackedPreferenceValidationDelegate>
28 CreatePreferenceValidationDelegate(Profile* profile) override; 28 CreatePreferenceValidationDelegate(Profile* profile) override;
29 void RegisterDelayedAnalysisCallback( 29 void RegisterDelayedAnalysisCallback(
30 const DelayedAnalysisCallback& callback) override; 30 const DelayedAnalysisCallback& callback) override;
31 void RegisterExtendedReportingOnlyDelayedAnalysisCallback( 31 void RegisterExtendedReportingOnlyDelayedAnalysisCallback(
32 const DelayedAnalysisCallback& callback) override; 32 const DelayedAnalysisCallback& callback) override;
33 void AddDownloadManager(content::DownloadManager* download_manager) override; 33 void AddDownloadManager(content::DownloadManager* download_manager) override;
34 ClientSideDetectionService* GetCsdService() override; 34 ClientSideDetectionService* GetCsdService() override;
35 DownloadProtectionService* GetDownloadService() override; 35 DownloadProtectionService* GetDownloadService() override;
36 36
37 void StartOnIOThread(
38 net::URLRequestContextGetter* url_request_context_getter,
39 const V4ProtocolConfig& v4_config) override;
40 void StopOnIOThread(bool shutdown) override;
41
37 DISALLOW_COPY_AND_ASSIGN(ServicesDelegateStub); 42 DISALLOW_COPY_AND_ASSIGN(ServicesDelegateStub);
38 }; 43 };
39 44
40 } // namespace safe_browsing 45 } // namespace safe_browsing
41 46
42 #endif // CHROME_BROWSER_SAFE_BROWSING_SERVICES_DELEGATE_STUB_H_ 47 #endif // CHROME_BROWSER_SAFE_BROWSING_SERVICES_DELEGATE_STUB_H_
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/services_delegate_impl.cc ('k') | chrome/browser/safe_browsing/services_delegate_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698