| OLD | NEW |
| (Empty) | |
| 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_VARIATIONS_SEED_SIGNATUR
E_INCIDENT_H_ |
| 6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_VARIATIONS_SEED_SIGNATUR
E_INCIDENT_H_ |
| 7 |
| 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "chrome/browser/safe_browsing/incident_reporting/incident.h" |
| 10 |
| 11 namespace safe_browsing { |
| 12 |
| 13 class ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident; |
| 14 |
| 15 // An incident representing an invalid variations seed signature. |
| 16 class VariationsSeedSignatureIncident : public Incident { |
| 17 public: |
| 18 explicit VariationsSeedSignatureIncident(scoped_ptr< |
| 19 ClientIncidentReport_IncidentData_VariationsSeedSignatureIncident> |
| 20 variations_seed_signature); |
| 21 ~VariationsSeedSignatureIncident() override; |
| 22 |
| 23 // Incident: |
| 24 |
| 25 // Returns IncidentType::VARIATIONS_SEED_SIGNATURE. |
| 26 IncidentType GetType() const override; |
| 27 |
| 28 // Returns a constant. |
| 29 std::string GetKey() const override; |
| 30 |
| 31 // Returns a digest computed over the payload. |
| 32 uint32_t ComputeDigest() const override; |
| 33 |
| 34 private: |
| 35 DISALLOW_COPY_AND_ASSIGN(VariationsSeedSignatureIncident); |
| 36 }; |
| 37 |
| 38 } // namespace safe_browsing |
| 39 |
| 40 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_VARIATIONS_SEED_SIGNA
TURE_INCIDENT_H_ |
| OLD | NEW |