| OLD | NEW | 
|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/binary_integrity_analy
    zer.h" | 5 #include "chrome/browser/safe_browsing/incident_reporting/binary_integrity_analy
    zer.h" | 
| 6 | 6 | 
| 7 #include <string> | 7 #include <string> | 
| 8 | 8 | 
| 9 #include "base/bind.h" | 9 #include "base/bind.h" | 
| 10 #include "base/callback.h" | 10 #include "base/callback.h" | 
| 11 #include "base/files/file_util.h" | 11 #include "base/files/file_util.h" | 
| 12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" | 
| 13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" | 
| 14 #include "base/strings/string_util.h" | 14 #include "base/strings/string_util.h" | 
| 15 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" | 
| 16 #include "base/time/time.h" | 16 #include "base/time/time.h" | 
| 17 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" | 
| 18 #include "chrome/browser/safe_browsing/binary_feature_extractor.h" |  | 
| 19 #include "chrome/browser/safe_browsing/incident_reporting/binary_integrity_incid
    ent.h" | 18 #include "chrome/browser/safe_browsing/incident_reporting/binary_integrity_incid
    ent.h" | 
| 20 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" | 19 #include "chrome/browser/safe_browsing/incident_reporting/incident_receiver.h" | 
| 21 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 20 #include "chrome/browser/safe_browsing/safe_browsing_service.h" | 
|  | 21 #include "chrome/common/safe_browsing/binary_feature_extractor.h" | 
| 22 #include "chrome/common/safe_browsing/csd.pb.h" | 22 #include "chrome/common/safe_browsing/csd.pb.h" | 
| 23 | 23 | 
| 24 namespace safe_browsing { | 24 namespace safe_browsing { | 
| 25 | 25 | 
| 26 namespace { | 26 namespace { | 
| 27 | 27 | 
| 28 void RecordSignatureVerificationTime(size_t file_index, | 28 void RecordSignatureVerificationTime(size_t file_index, | 
| 29     const base::TimeDelta& verification_time) { | 29     const base::TimeDelta& verification_time) { | 
| 30   static const char kHistogramName[] = "SBIRS.VerifyBinaryIntegrity."; | 30   static const char kHistogramName[] = "SBIRS.VerifyBinaryIntegrity."; | 
| 31 | 31 | 
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 85   } | 85   } | 
| 86 } | 86 } | 
| 87 | 87 | 
| 88 #if !defined(OS_WIN) | 88 #if !defined(OS_WIN) | 
| 89 std::vector<base::FilePath> GetCriticalBinariesPath() { | 89 std::vector<base::FilePath> GetCriticalBinariesPath() { | 
| 90   return std::vector<base::FilePath>(); | 90   return std::vector<base::FilePath>(); | 
| 91 } | 91 } | 
| 92 #endif  // !defined(OS_WIN) | 92 #endif  // !defined(OS_WIN) | 
| 93 | 93 | 
| 94 }  // namespace safe_browsing | 94 }  // namespace safe_browsing | 
| OLD | NEW | 
|---|