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 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_INCIDEN
T_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_INCIDEN
T_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_INCIDEN
T_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_INCIDEN
T_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include "base/macros.h" |
8 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/safe_browsing/incident_reporting/incident.h" | 12 #include "chrome/browser/safe_browsing/incident_reporting/incident.h" |
10 | 13 |
11 namespace safe_browsing { | 14 namespace safe_browsing { |
12 | 15 |
13 class ClientIncidentReport_IncidentData_BinaryIntegrityIncident; | 16 class ClientIncidentReport_IncidentData_BinaryIntegrityIncident; |
14 | 17 |
15 // An incident representing binaries with invalid signatures. | 18 // An incident representing binaries with invalid signatures. |
16 class BinaryIntegrityIncident : public Incident { | 19 class BinaryIntegrityIncident : public Incident { |
17 public: | 20 public: |
18 explicit BinaryIntegrityIncident( | 21 explicit BinaryIntegrityIncident( |
19 scoped_ptr<ClientIncidentReport_IncidentData_BinaryIntegrityIncident> | 22 scoped_ptr<ClientIncidentReport_IncidentData_BinaryIntegrityIncident> |
20 binary_integrity); | 23 binary_integrity); |
21 ~BinaryIntegrityIncident() override; | 24 ~BinaryIntegrityIncident() override; |
22 | 25 |
23 // Incident methods: | 26 // Incident methods: |
24 IncidentType GetType() const override; | 27 IncidentType GetType() const override; |
25 std::string GetKey() const override; | 28 std::string GetKey() const override; |
26 uint32_t ComputeDigest() const override; | 29 uint32_t ComputeDigest() const override; |
27 | 30 |
28 private: | 31 private: |
29 DISALLOW_COPY_AND_ASSIGN(BinaryIntegrityIncident); | 32 DISALLOW_COPY_AND_ASSIGN(BinaryIntegrityIncident); |
30 }; | 33 }; |
31 | 34 |
32 } // namespace safe_browsing | 35 } // namespace safe_browsing |
33 | 36 |
34 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_INCI
DENT_H_ | 37 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_INCI
DENT_H_ |
OLD | NEW |