Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / safe_browsing / incident_reporting / binary_integrity_incident.h
blobd30ab41b077667ab8e8ebefa884040f088768a21
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_INCIDENT_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_INCIDENT_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/safe_browsing/incident_reporting/incident.h"
11 namespace safe_browsing {
13 class ClientIncidentReport_IncidentData_BinaryIntegrityIncident;
15 // An incident representing binaries with invalid signatures.
16 class BinaryIntegrityIncident : public Incident {
17 public:
18 explicit BinaryIntegrityIncident(
19 scoped_ptr<ClientIncidentReport_IncidentData_BinaryIntegrityIncident>
20 binary_integrity);
21 ~BinaryIntegrityIncident() override;
23 // Incident methods:
24 IncidentType GetType() const override;
25 std::string GetKey() const override;
26 uint32_t ComputeDigest() const override;
28 private:
29 DISALLOW_COPY_AND_ASSIGN(BinaryIntegrityIncident);
32 } // namespace safe_browsing
34 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_INCIDENT_H_