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

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

Issue 1643573002: Add a ModuleLoadAnalyzer which checks modules against a whitelist (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase-update'd Created 4 years, 10 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 2016 The Chromium Authors. All rights reserved.
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_SUSPICIOUS_MODULE_INCIDE NT_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_SUSPICIOUS_MODULE_INCIDE NT_H_
7
8 #include <stdint.h>
9
10 #include "base/macros.h"
11 #include "base/memory/scoped_ptr.h"
12 #include "chrome/browser/safe_browsing/incident_reporting/incident.h"
13
14 namespace safe_browsing {
15
16 class ClientIncidentReport_IncidentData_SuspiciousModuleIncident;
17
18 // An incident representing a module loaded in Chrome that wasn't in the module
19 // whitelist.
20 class SuspiciousModuleIncident : public Incident {
21 public:
22 explicit SuspiciousModuleIncident(
23 scoped_ptr<ClientIncidentReport_IncidentData_SuspiciousModuleIncident>
24 suspicious_modules);
25 ~SuspiciousModuleIncident() override;
26
27 // Incident methods:
28 IncidentType GetType() const override;
29 std::string GetKey() const override;
30 uint32_t ComputeDigest() const override;
31 MinimumProfileConsent GetMinimumProfileConsent() const override;
32
33 private:
34 DISALLOW_COPY_AND_ASSIGN(SuspiciousModuleIncident);
35 };
36
37 } // namespace safe_browsing
38
39 #endif // CHROME_BROWSER_SAFE_BROWSING_INCIDENT_REPORTING_SUSPICIOUS_MODULE_INC IDENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698