| 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/incident_reporting/module_load_analyzer.h
" | 5 #include "chrome/browser/safe_browsing/incident_reporting/module_load_analyzer.h
" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/file_version_info.h" | 10 #include "base/file_version_info.h" |
| 11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 12 #include "base/i18n/case_conversion.h" | 12 #include "base/i18n/case_conversion.h" |
| 13 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
| 15 #include "base/metrics/histogram_macros.h" | 15 #include "base/metrics/histogram_macros.h" |
| 16 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
| 17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
| 18 #include "base/threading/sequenced_worker_pool.h" | 18 #include "base/threading/sequenced_worker_pool.h" |
| 19 #include "chrome/browser/install_verification/win/module_info.h" | 19 #include "chrome/browser/install_verification/win/module_info.h" |
| 20 #include "chrome/browser/install_verification/win/module_verification_common.h" | 20 #include "chrome/browser/install_verification/win/module_verification_common.h" |
| 21 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" | 21 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" |
| 22 #include "chrome/browser/safe_browsing/incident_reporting/suspicious_module_inci
dent.h" | 22 #include "chrome/browser/safe_browsing/incident_reporting/suspicious_module_inci
dent.h" |
| 23 #include "chrome/browser/safe_browsing/path_sanitizer.h" | 23 #include "chrome/browser/safe_browsing/path_sanitizer.h" |
| 24 #include "chrome/common/safe_browsing/binary_feature_extractor.h" | 24 #include "chrome/common/safe_browsing/binary_feature_extractor.h" |
| 25 #include "components/safe_browsing/csd.pb.h" | 25 #include "chrome/common/safe_browsing/csd.pb.h" |
| 26 #include "content/public/browser/browser_thread.h" | 26 #include "content/public/browser/browser_thread.h" |
| 27 | 27 |
| 28 #if defined(SAFE_BROWSING_DB_LOCAL) | 28 #if defined(SAFE_BROWSING_DB_LOCAL) |
| 29 #include "chrome/browser/safe_browsing/local_database_manager.h" | 29 #include "chrome/browser/safe_browsing/local_database_manager.h" |
| 30 #elif defined(SAFE_BROWSING_DB_REMOTE) | 30 #elif defined(SAFE_BROWSING_DB_REMOTE) |
| 31 #include "chrome/browser/safe_browsing/remote_database_manager.h" | 31 #include "chrome/browser/safe_browsing/remote_database_manager.h" |
| 32 #endif | 32 #endif |
| 33 | 33 |
| 34 namespace safe_browsing { | 34 namespace safe_browsing { |
| 35 | 35 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 // PostTaskAndReply doesn't work here because we're in a sequenced blocking | 133 // PostTaskAndReply doesn't work here because we're in a sequenced blocking |
| 134 // thread pool. | 134 // thread pool. |
| 135 content::BrowserThread::PostTask( | 135 content::BrowserThread::PostTask( |
| 136 content::BrowserThread::IO, FROM_HERE, | 136 content::BrowserThread::IO, FROM_HERE, |
| 137 base::Bind(&CheckModuleWhitelistOnIOThread, database_manager, | 137 base::Bind(&CheckModuleWhitelistOnIOThread, database_manager, |
| 138 base::Passed(std::move(incident_receiver)), | 138 base::Passed(std::move(incident_receiver)), |
| 139 base::Passed(std::move(module_info_set)))); | 139 base::Passed(std::move(module_info_set)))); |
| 140 } | 140 } |
| 141 | 141 |
| 142 } // namespace safe_browsing | 142 } // namespace safe_browsing |
| OLD | NEW |