| 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/binary_integrity_incident_handlers.h" | 5 #include "chrome/browser/safe_browsing/incident_reporting/binary_integrity_incid
ent_handlers.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/safe_browsing/incident_handler_util.h" | 8 #include "chrome/browser/safe_browsing/incident_reporting/incident_handler_util.
h" |
| 9 #include "chrome/common/safe_browsing/csd.pb.h" | 9 #include "chrome/common/safe_browsing/csd.pb.h" |
| 10 | 10 |
| 11 namespace safe_browsing { | 11 namespace safe_browsing { |
| 12 | 12 |
| 13 std::string GetBinaryIntegrityIncidentKey( | 13 std::string GetBinaryIntegrityIncidentKey( |
| 14 const ClientIncidentReport_IncidentData& incident_data) { | 14 const ClientIncidentReport_IncidentData& incident_data) { |
| 15 DCHECK(incident_data.has_binary_integrity()); | 15 DCHECK(incident_data.has_binary_integrity()); |
| 16 DCHECK(incident_data.binary_integrity().has_file_basename()); | 16 DCHECK(incident_data.binary_integrity().has_file_basename()); |
| 17 return incident_data.binary_integrity().file_basename(); | 17 return incident_data.binary_integrity().file_basename(); |
| 18 } | 18 } |
| 19 | 19 |
| 20 uint32_t GetBinaryIntegrityIncidentDigest( | 20 uint32_t GetBinaryIntegrityIncidentDigest( |
| 21 const ClientIncidentReport_IncidentData& incident_data) { | 21 const ClientIncidentReport_IncidentData& incident_data) { |
| 22 DCHECK(incident_data.has_binary_integrity()); | 22 DCHECK(incident_data.has_binary_integrity()); |
| 23 return HashMessage(incident_data.binary_integrity()); | 23 return HashMessage(incident_data.binary_integrity()); |
| 24 } | 24 } |
| 25 | 25 |
| 26 } // namespace safe_browsing | 26 } // namespace safe_browsing |
| OLD | NEW |