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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/incident_reporting/incident.h
diff --git a/chrome/browser/safe_browsing/incident_reporting/incident.h b/chrome/browser/safe_browsing/incident_reporting/incident.h
index 2fa84c9cfb8bf8fef20a249baaae7c2b50c50518..761816d636d86e28a4af694724e159ec09b69778 100644
--- a/chrome/browser/safe_browsing/incident_reporting/incident.h
+++ b/chrome/browser/safe_browsing/incident_reporting/incident.h
@@ -27,8 +27,16 @@ enum class IncidentType : int32_t {
OMNIBOX_INTERACTION = 4,
VARIATIONS_SEED_SIGNATURE = 5,
RESOURCE_REQUEST = 6,
+ SUSPICIOUS_MODULE = 7,
// Values for new incident types go here.
- NUM_TYPES = 7
+ NUM_TYPES = 8
+};
+
+// The level of consent required by the incident to be associated with a
+// profile.
+enum class MinimumProfileConsent {
+ SAFE_BROWSING_ENABLED = 0,
+ SAFE_BROWSING_EXTENDED_REPORTING_ENABLED = 1,
};
// An abstract incident. Subclasses provide type-specific functionality to
@@ -51,6 +59,10 @@ class Incident {
// Returns the incident's payload.
virtual scoped_ptr<ClientIncidentReport_IncidentData> TakePayload();
+ // Returns the minimum level of consent required for reporting of the
+ // incident.
+ virtual MinimumProfileConsent GetMinimumProfileConsent() const;
+
protected:
// Constructs the payload with an empty protobuf, setting its incident time to
// the current time.

Powered by Google App Engine
This is Rietveld 408576698