| OLD | NEW |
| 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 #include "chrome/browser/safe_browsing/services_delegate_stub.h" | 5 #include "chrome/browser/safe_browsing/services_delegate_stub.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "components/safe_browsing_db/v4_local_database_manager.h" | 9 #include "components/safe_browsing_db/v4_local_database_manager.h" |
| 10 #include "services/preferences/public/interfaces/tracked_preference_validation_d
elegate.mojom.h" |
| 10 | 11 |
| 11 namespace safe_browsing { | 12 namespace safe_browsing { |
| 12 | 13 |
| 13 // static | 14 // static |
| 14 std::unique_ptr<ServicesDelegate> ServicesDelegate::Create( | 15 std::unique_ptr<ServicesDelegate> ServicesDelegate::Create( |
| 15 SafeBrowsingService* safe_browsing_service) { | 16 SafeBrowsingService* safe_browsing_service) { |
| 16 return base::WrapUnique(new ServicesDelegateStub); | 17 return base::WrapUnique(new ServicesDelegateStub); |
| 17 } | 18 } |
| 18 | 19 |
| 19 // static | 20 // static |
| (...skipping 18 matching lines...) Expand all Loading... |
| 38 | 39 |
| 39 void ServicesDelegateStub::Initialize(bool v4_enabled) {} | 40 void ServicesDelegateStub::Initialize(bool v4_enabled) {} |
| 40 | 41 |
| 41 void ServicesDelegateStub::ShutdownServices() {} | 42 void ServicesDelegateStub::ShutdownServices() {} |
| 42 | 43 |
| 43 void ServicesDelegateStub::RefreshState(bool enable) {} | 44 void ServicesDelegateStub::RefreshState(bool enable) {} |
| 44 | 45 |
| 45 void ServicesDelegateStub::ProcessResourceRequest( | 46 void ServicesDelegateStub::ProcessResourceRequest( |
| 46 const ResourceRequestInfo* request) {} | 47 const ResourceRequestInfo* request) {} |
| 47 | 48 |
| 48 std::unique_ptr<TrackedPreferenceValidationDelegate> | 49 std::unique_ptr<prefs::mojom::TrackedPreferenceValidationDelegate> |
| 49 ServicesDelegateStub::CreatePreferenceValidationDelegate(Profile* profile) { | 50 ServicesDelegateStub::CreatePreferenceValidationDelegate(Profile* profile) { |
| 50 return std::unique_ptr<TrackedPreferenceValidationDelegate>(); | 51 return nullptr; |
| 51 } | 52 } |
| 52 | 53 |
| 53 void ServicesDelegateStub::RegisterDelayedAnalysisCallback( | 54 void ServicesDelegateStub::RegisterDelayedAnalysisCallback( |
| 54 const DelayedAnalysisCallback& callback) {} | 55 const DelayedAnalysisCallback& callback) {} |
| 55 | 56 |
| 56 void ServicesDelegateStub::AddDownloadManager( | 57 void ServicesDelegateStub::AddDownloadManager( |
| 57 content::DownloadManager* download_manager) {} | 58 content::DownloadManager* download_manager) {} |
| 58 | 59 |
| 59 ClientSideDetectionService* ServicesDelegateStub::GetCsdService() { | 60 ClientSideDetectionService* ServicesDelegateStub::GetCsdService() { |
| 60 return nullptr; | 61 return nullptr; |
| 61 } | 62 } |
| 62 | 63 |
| 63 DownloadProtectionService* ServicesDelegateStub::GetDownloadService() { | 64 DownloadProtectionService* ServicesDelegateStub::GetDownloadService() { |
| 64 return nullptr; | 65 return nullptr; |
| 65 } | 66 } |
| 66 | 67 |
| 67 void ServicesDelegateStub::StartOnIOThread( | 68 void ServicesDelegateStub::StartOnIOThread( |
| 68 net::URLRequestContextGetter* url_request_context_getter, | 69 net::URLRequestContextGetter* url_request_context_getter, |
| 69 const V4ProtocolConfig& v4_config) {} | 70 const V4ProtocolConfig& v4_config) {} |
| 70 | 71 |
| 71 void ServicesDelegateStub::StopOnIOThread(bool shutdown) {} | 72 void ServicesDelegateStub::StopOnIOThread(bool shutdown) {} |
| 72 | 73 |
| 73 } // namespace safe_browsing | 74 } // namespace safe_browsing |
| OLD | NEW |