Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(960)

Side by Side Diff: chrome/browser/safe_browsing/incident_reporting/resource_request_incident.h

Issue 1548133002: Switch to standard integer types in chrome/browser/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_RESOURCE_REQUEST_INCIDEN T_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_RESOURCE_REQUEST_INCIDEN T_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_RESOURCE_REQUEST_INCIDEN T_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_RESOURCE_REQUEST_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_ResourceRequestIncident; 16 class ClientIncidentReport_IncidentData_ResourceRequestIncident;
14 17
15 // Represents a suspicious script detection incident. 18 // Represents a suspicious script detection incident.
16 class ResourceRequestIncident : public Incident { 19 class ResourceRequestIncident : public Incident {
17 public: 20 public:
18 explicit ResourceRequestIncident( 21 explicit ResourceRequestIncident(
19 scoped_ptr<ClientIncidentReport_IncidentData_ResourceRequestIncident> 22 scoped_ptr<ClientIncidentReport_IncidentData_ResourceRequestIncident>
20 script_detection_incident); 23 script_detection_incident);
21 ~ResourceRequestIncident() override; 24 ~ResourceRequestIncident() 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(ResourceRequestIncident); 32 DISALLOW_COPY_AND_ASSIGN(ResourceRequestIncident);
30 }; 33 };
31 34
32 } // namespace safe_browsing 35 } // namespace safe_browsing
33 36
34 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_RESOURCE_REQUEST_INCI DENT_H_ 37 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_RESOURCE_REQUEST_INCI DENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698