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

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

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

Powered by Google App Engine
This is Rietveld 408576698