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" | |
10 | 9 |
11 namespace safe_browsing { | 10 namespace safe_browsing { |
12 | 11 |
13 // static | 12 // static |
14 std::unique_ptr<ServicesDelegate> ServicesDelegate::Create( | 13 std::unique_ptr<ServicesDelegate> ServicesDelegate::Create( |
15 SafeBrowsingService* safe_browsing_service) { | 14 SafeBrowsingService* safe_browsing_service) { |
16 return base::WrapUnique(new ServicesDelegateStub); | 15 return base::WrapUnique(new ServicesDelegateStub); |
17 } | 16 } |
18 | 17 |
19 // static | 18 // static |
20 std::unique_ptr<ServicesDelegate> ServicesDelegate::CreateForTest( | 19 std::unique_ptr<ServicesDelegate> ServicesDelegate::CreateForTest( |
21 SafeBrowsingService* safe_browsing_service, | 20 SafeBrowsingService* safe_browsing_service, |
22 ServicesDelegate::ServicesCreator* services_creator) { | 21 ServicesDelegate::ServicesCreator* services_creator) { |
23 NOTREACHED(); | 22 NOTREACHED(); |
24 return base::WrapUnique(new ServicesDelegateStub); | 23 return base::WrapUnique(new ServicesDelegateStub); |
25 } | 24 } |
26 | 25 |
27 ServicesDelegateStub::ServicesDelegateStub() {} | 26 ServicesDelegateStub::ServicesDelegateStub() {} |
28 | 27 |
29 ServicesDelegateStub::~ServicesDelegateStub() {} | 28 ServicesDelegateStub::~ServicesDelegateStub() {} |
30 | 29 |
31 void ServicesDelegateStub::InitializeCsdService( | 30 void ServicesDelegateStub::InitializeCsdService( |
32 net::URLRequestContextGetter* context_getter) {} | 31 net::URLRequestContextGetter* context_getter) {} |
33 | 32 |
34 const scoped_refptr<V4LocalDatabaseManager>& | |
35 ServicesDelegateStub::v4_local_database_manager() const { | |
36 return v4_local_database_manager_; | |
37 } | |
38 | |
39 void ServicesDelegateStub::Initialize() {} | 33 void ServicesDelegateStub::Initialize() {} |
40 | 34 |
41 void ServicesDelegateStub::ShutdownServices() {} | 35 void ServicesDelegateStub::ShutdownServices() {} |
42 | 36 |
43 void ServicesDelegateStub::RefreshState(bool enable) {} | 37 void ServicesDelegateStub::RefreshState(bool enable) {} |
44 | 38 |
45 void ServicesDelegateStub::ProcessResourceRequest( | 39 void ServicesDelegateStub::ProcessResourceRequest( |
46 const ResourceRequestInfo* request) {} | 40 const ResourceRequestInfo* request) {} |
47 | 41 |
48 std::unique_ptr<TrackedPreferenceValidationDelegate> | 42 std::unique_ptr<TrackedPreferenceValidationDelegate> |
(...skipping 18 matching lines...) Expand all Loading... |
67 return nullptr; | 61 return nullptr; |
68 } | 62 } |
69 | 63 |
70 void ServicesDelegateStub::StartOnIOThread( | 64 void ServicesDelegateStub::StartOnIOThread( |
71 net::URLRequestContextGetter* url_request_context_getter, | 65 net::URLRequestContextGetter* url_request_context_getter, |
72 const V4ProtocolConfig& v4_config) {} | 66 const V4ProtocolConfig& v4_config) {} |
73 | 67 |
74 void ServicesDelegateStub::StopOnIOThread(bool shutdown) {} | 68 void ServicesDelegateStub::StopOnIOThread(bool shutdown) {} |
75 | 69 |
76 } // namespace safe_browsing | 70 } // namespace safe_browsing |
OLD | NEW |