| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/safe_browsing/safe_browsing_service.h" | 5 #include "ios/chrome/browser/safe_browsing/safe_browsing_service.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
| 14 #include "base/macros.h" |
| 14 #include "base/metrics/histogram_macros.h" | 15 #include "base/metrics/histogram_macros.h" |
| 15 #include "base/path_service.h" | 16 #include "base/path_service.h" |
| 16 #include "base/prefs/pref_change_registrar.h" | 17 #include "base/prefs/pref_change_registrar.h" |
| 17 #include "base/prefs/pref_service.h" | 18 #include "base/prefs/pref_service.h" |
| 18 #include "base/stl_util.h" | 19 #include "base/stl_util.h" |
| 19 #include "base/strings/string_util.h" | 20 #include "base/strings/string_util.h" |
| 20 #include "base/threading/thread.h" | 21 #include "base/threading/thread.h" |
| 21 #include "base/threading/thread_restrictions.h" | 22 #include "base/threading/thread_restrictions.h" |
| 22 #include "ios/chrome/browser/application_context.h" | 23 #include "ios/chrome/browser/application_context.h" |
| 23 #include "ios/chrome/browser/chrome_paths.h" | 24 #include "ios/chrome/browser/chrome_paths.h" |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 } | 426 } |
| 426 | 427 |
| 427 void SafeBrowsingService::OnSendDownloadRecoveryReport( | 428 void SafeBrowsingService::OnSendDownloadRecoveryReport( |
| 428 const std::string& report) { | 429 const std::string& report) { |
| 429 DCHECK_CURRENTLY_ON_WEB_THREAD(web::WebThread::IO); | 430 DCHECK_CURRENTLY_ON_WEB_THREAD(web::WebThread::IO); |
| 430 if (ping_manager()) | 431 if (ping_manager()) |
| 431 ping_manager()->ReportThreatDetails(report); | 432 ping_manager()->ReportThreatDetails(report); |
| 432 } | 433 } |
| 433 | 434 |
| 434 } // namespace safe_browsing | 435 } // namespace safe_browsing |
| OLD | NEW |