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

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

Issue 2719833002: Convert TrackedPreferenceValidationDelegate into a mojo interface. (Closed)
Patch Set: Created 3 years, 9 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 const scoped_refptr<SafeBrowsingDatabaseManager>& v4_local_database_manager() 21 const scoped_refptr<SafeBrowsingDatabaseManager>& v4_local_database_manager()
22 const override; 22 const override;
23 void Initialize(bool v4_enabled = false) override; 23 void Initialize(bool v4_enabled = false) override;
24 void InitializeCsdService( 24 void InitializeCsdService(
25 net::URLRequestContextGetter* context_getter) override; 25 net::URLRequestContextGetter* context_getter) override;
26 void ShutdownServices() override; 26 void ShutdownServices() override;
27 void RefreshState(bool enable) override; 27 void RefreshState(bool enable) override;
28 void ProcessResourceRequest(const ResourceRequestInfo* request) override; 28 void ProcessResourceRequest(const ResourceRequestInfo* request) override;
29 std::unique_ptr<TrackedPreferenceValidationDelegate> 29 std::unique_ptr<prefs::mojom::TrackedPreferenceValidationDelegate>
30 CreatePreferenceValidationDelegate(Profile* profile) override; 30 CreatePreferenceValidationDelegate(Profile* profile) override;
31 void RegisterDelayedAnalysisCallback( 31 void RegisterDelayedAnalysisCallback(
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( 37 void StartOnIOThread(
38 net::URLRequestContextGetter* url_request_context_getter, 38 net::URLRequestContextGetter* url_request_context_getter,
39 const V4ProtocolConfig& v4_config) override; 39 const V4ProtocolConfig& v4_config) override;
40 void StopOnIOThread(bool shutdown) override; 40 void StopOnIOThread(bool shutdown) override;
41 41
42 scoped_refptr<SafeBrowsingDatabaseManager> v4_local_database_manager_; 42 scoped_refptr<SafeBrowsingDatabaseManager> v4_local_database_manager_;
43 43
44 DISALLOW_COPY_AND_ASSIGN(ServicesDelegateStub); 44 DISALLOW_COPY_AND_ASSIGN(ServicesDelegateStub);
45 }; 45 };
46 46
47 } // namespace safe_browsing 47 } // namespace safe_browsing
48 48
49 #endif // CHROME_BROWSER_SAFE_BROWSING_SERVICES_DELEGATE_STUB_H_ 49 #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