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

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

Issue 1870003002: Convert //chrome/browser/safe_browsing from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and address comments Created 4 years, 8 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_BINARY_INTEGRITY_INCIDEN T_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_INCIDEN T_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_INCIDEN T_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_INCIDEN T_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_BinaryIntegrityIncident; 17 class ClientIncidentReport_IncidentData_BinaryIntegrityIncident;
17 18
18 // An incident representing binaries with invalid signatures. 19 // An incident representing binaries with invalid signatures.
19 class BinaryIntegrityIncident : public Incident { 20 class BinaryIntegrityIncident : public Incident {
20 public: 21 public:
21 explicit BinaryIntegrityIncident( 22 explicit BinaryIntegrityIncident(
22 scoped_ptr<ClientIncidentReport_IncidentData_BinaryIntegrityIncident> 23 std::unique_ptr<ClientIncidentReport_IncidentData_BinaryIntegrityIncident>
23 binary_integrity); 24 binary_integrity);
24 ~BinaryIntegrityIncident() override; 25 ~BinaryIntegrityIncident() override;
25 26
26 // Incident methods: 27 // Incident methods:
27 IncidentType GetType() const override; 28 IncidentType GetType() const override;
28 std::string GetKey() const override; 29 std::string GetKey() const override;
29 uint32_t ComputeDigest() const override; 30 uint32_t ComputeDigest() const override;
30 31
31 private: 32 private:
32 DISALLOW_COPY_AND_ASSIGN(BinaryIntegrityIncident); 33 DISALLOW_COPY_AND_ASSIGN(BinaryIntegrityIncident);
33 }; 34 };
34 35
35 } // namespace safe_browsing 36 } // namespace safe_browsing
36 37
37 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_INCI DENT_H_ 38 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_BINARY_INTEGRITY_INCI DENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698