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

Side by Side Diff: chrome/browser/safe_browsing/services_delegate_stub.h

Issue 2377273004: Reland: Start checking URLs using PVer4. Verdict not returned to client yet. (Closed)
Patch Set: Remove #DEBUG -- it enables these features on Android :-( Created 4 years, 2 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 class V4LocalDatabaseManager;
14
13 // Dummy ServicesDelegate implementation. Create via ServicesDelegate::Create(). 15 // Dummy ServicesDelegate implementation. Create via ServicesDelegate::Create().
14 class ServicesDelegateStub : public ServicesDelegate { 16 class ServicesDelegateStub : public ServicesDelegate {
15 public: 17 public:
16 ServicesDelegateStub(); 18 ServicesDelegateStub();
17 ~ServicesDelegateStub() override; 19 ~ServicesDelegateStub() override;
18 20
19 private: 21 private:
20 // ServicesDelegate: 22 // ServicesDelegate:
23 const scoped_refptr<V4LocalDatabaseManager>& v4_local_database_manager()
24 const override;
21 void Initialize() override; 25 void Initialize() override;
22 void InitializeCsdService( 26 void InitializeCsdService(
23 net::URLRequestContextGetter* context_getter) override; 27 net::URLRequestContextGetter* context_getter) override;
24 void ShutdownServices() override; 28 void ShutdownServices() override;
25 void RefreshState(bool enable) override; 29 void RefreshState(bool enable) override;
26 void ProcessResourceRequest(const ResourceRequestInfo* request) override; 30 void ProcessResourceRequest(const ResourceRequestInfo* request) override;
27 std::unique_ptr<TrackedPreferenceValidationDelegate> 31 std::unique_ptr<TrackedPreferenceValidationDelegate>
28 CreatePreferenceValidationDelegate(Profile* profile) override; 32 CreatePreferenceValidationDelegate(Profile* profile) override;
29 void RegisterDelayedAnalysisCallback( 33 void RegisterDelayedAnalysisCallback(
30 const DelayedAnalysisCallback& callback) override; 34 const DelayedAnalysisCallback& callback) override;
31 void RegisterExtendedReportingOnlyDelayedAnalysisCallback( 35 void RegisterExtendedReportingOnlyDelayedAnalysisCallback(
32 const DelayedAnalysisCallback& callback) override; 36 const DelayedAnalysisCallback& callback) override;
33 void AddDownloadManager(content::DownloadManager* download_manager) override; 37 void AddDownloadManager(content::DownloadManager* download_manager) override;
34 ClientSideDetectionService* GetCsdService() override; 38 ClientSideDetectionService* GetCsdService() override;
35 DownloadProtectionService* GetDownloadService() override; 39 DownloadProtectionService* GetDownloadService() override;
36 40
37 void StartOnIOThread( 41 void StartOnIOThread(
38 net::URLRequestContextGetter* url_request_context_getter, 42 net::URLRequestContextGetter* url_request_context_getter,
39 const V4ProtocolConfig& v4_config) override; 43 const V4ProtocolConfig& v4_config) override;
40 void StopOnIOThread(bool shutdown) override; 44 void StopOnIOThread(bool shutdown) override;
41 45
46 scoped_refptr<V4LocalDatabaseManager> v4_local_database_manager_;
47
42 DISALLOW_COPY_AND_ASSIGN(ServicesDelegateStub); 48 DISALLOW_COPY_AND_ASSIGN(ServicesDelegateStub);
43 }; 49 };
44 50
45 } // namespace safe_browsing 51 } // namespace safe_browsing
46 52
47 #endif // CHROME_BROWSER_SAFE_BROWSING_SERVICES_DELEGATE_STUB_H_ 53 #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