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

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

Issue 1363613004: Implement anonymous, opt-in, collection of OS X binary integrity incidents. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
Mark Mentovai 2015/10/05 15:02:11 Is this file supposed to only be built on Mac? Nam
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_OSX_BINARY_INTEGRITY_INC IDENT_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_OSX_BINARY_INTEGRITY_INC IDENT_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_OSXBinaryIntegrityIncident;
14
15 // An incident representing binaries with invalid signatures.
16 class OSXBinaryIntegrityIncident : public Incident {
17 public:
18 explicit OSXBinaryIntegrityIncident(
19 scoped_ptr<ClientIncidentReport_IncidentData_OSXBinaryIntegrityIncident>
20 binary_integrity);
21 ~OSXBinaryIntegrityIncident() override;
22
23 // Incident methods:
24 IncidentType GetType() const override;
25 std::string GetKey() const override;
26 uint32_t ComputeDigest() const override;
27
28 private:
29 DISALLOW_COPY_AND_ASSIGN(OSXBinaryIntegrityIncident);
30 };
31
32 } // namespace safe_browsing
33
34 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_OSX_BINARY_INTEGRITY_ INCIDENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698