OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/safe_browsing_service.h" | 5 #include "chrome/browser/safe_browsing/safe_browsing_service.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 #else | 393 #else |
394 return nullptr; | 394 return nullptr; |
395 #endif | 395 #endif |
396 } | 396 } |
397 | 397 |
398 SafeBrowsingPingManager* SafeBrowsingService::ping_manager() const { | 398 SafeBrowsingPingManager* SafeBrowsingService::ping_manager() const { |
399 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 399 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
400 return ping_manager_.get(); | 400 return ping_manager_.get(); |
401 } | 401 } |
402 | 402 |
| 403 const scoped_refptr<V4LocalDatabaseManager>& |
| 404 SafeBrowsingService::v4_local_database_manager() const { |
| 405 return services_delegate_->v4_local_database_manager(); |
| 406 } |
| 407 |
403 std::unique_ptr<TrackedPreferenceValidationDelegate> | 408 std::unique_ptr<TrackedPreferenceValidationDelegate> |
404 SafeBrowsingService::CreatePreferenceValidationDelegate( | 409 SafeBrowsingService::CreatePreferenceValidationDelegate( |
405 Profile* profile) const { | 410 Profile* profile) const { |
406 return services_delegate_->CreatePreferenceValidationDelegate(profile); | 411 return services_delegate_->CreatePreferenceValidationDelegate(profile); |
407 } | 412 } |
408 | 413 |
409 void SafeBrowsingService::RegisterDelayedAnalysisCallback( | 414 void SafeBrowsingService::RegisterDelayedAnalysisCallback( |
410 const DelayedAnalysisCallback& callback) { | 415 const DelayedAnalysisCallback& callback) { |
411 services_delegate_->RegisterDelayedAnalysisCallback(callback); | 416 services_delegate_->RegisterDelayedAnalysisCallback(callback); |
412 } | 417 } |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
695 ping_manager()->ReportThreatDetails(report); | 700 ping_manager()->ReportThreatDetails(report); |
696 } | 701 } |
697 | 702 |
698 void SafeBrowsingService::ProcessResourceRequest( | 703 void SafeBrowsingService::ProcessResourceRequest( |
699 const ResourceRequestInfo& request) { | 704 const ResourceRequestInfo& request) { |
700 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 705 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
701 services_delegate_->ProcessResourceRequest(&request); | 706 services_delegate_->ProcessResourceRequest(&request); |
702 } | 707 } |
703 | 708 |
704 } // namespace safe_browsing | 709 } // namespace safe_browsing |
OLD | NEW |