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