| 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_SCRIPT_REQUEST_INCIDENT_
H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_RESOURCE_REQUEST_INCIDEN
T_H_ |
| 6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_SCRIPT_REQUEST_INCIDENT_
H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_RESOURCE_REQUEST_INCIDEN
T_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "chrome/browser/safe_browsing/incident_reporting/incident.h" | 9 #include "chrome/browser/safe_browsing/incident_reporting/incident.h" |
| 10 | 10 |
| 11 namespace safe_browsing { | 11 namespace safe_browsing { |
| 12 | 12 |
| 13 class ClientIncidentReport_IncidentData_ScriptRequestIncident; | 13 class ClientIncidentReport_IncidentData_ResourceRequestIncident; |
| 14 | 14 |
| 15 // Represents a suspicious script detection incident. | 15 // Represents a suspicious script detection incident. |
| 16 class ScriptRequestIncident : public Incident { | 16 class ResourceRequestIncident : public Incident { |
| 17 public: | 17 public: |
| 18 explicit ScriptRequestIncident( | 18 explicit ResourceRequestIncident( |
| 19 scoped_ptr<ClientIncidentReport_IncidentData_ScriptRequestIncident> | 19 scoped_ptr<ClientIncidentReport_IncidentData_ResourceRequestIncident> |
| 20 script_detection_incident); | 20 script_detection_incident); |
| 21 ~ScriptRequestIncident() override; | 21 ~ResourceRequestIncident() override; |
| 22 | 22 |
| 23 // Incident methods: | 23 // Incident methods: |
| 24 IncidentType GetType() const override; | 24 IncidentType GetType() const override; |
| 25 std::string GetKey() const override; | 25 std::string GetKey() const override; |
| 26 uint32_t ComputeDigest() const override; | 26 uint32_t ComputeDigest() const override; |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(ScriptRequestIncident); | 29 DISALLOW_COPY_AND_ASSIGN(ResourceRequestIncident); |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 } // namespace safe_browsing | 32 } // namespace safe_browsing |
| 33 | 33 |
| 34 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_SCRIPT_REQUEST_INCIDE
NT_H_ | 34 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_RESOURCE_REQUEST_INCI
DENT_H_ |
| OLD | NEW |