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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_service.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: Only enable for extended reporting AND feature flag. Add unit test. 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/safe_browsing_service.h
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.h b/chrome/browser/safe_browsing/safe_browsing_service.h
index c1e4979eb5ededf2a8804acd2af6885de41bd5f3..0396f563e363b1d226ce81e483df371e48cd35de 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.h
+++ b/chrome/browser/safe_browsing/safe_browsing_service.h
@@ -63,6 +63,7 @@ class SafeBrowsingURLRequestContextGetter;
class IncidentReportingService;
class OffDomainInclusionDetector;
class ResourceRequestDetector;
+class ModuleLoadAnalyzer;
#endif
// Construction needs to happen on the main thread.
@@ -148,6 +149,8 @@ class SafeBrowsingService
// |callback| will be dropped if the service is not applicable for the
// process.
void RegisterDelayedAnalysisCallback(const DelayedAnalysisCallback& callback);
+ void RegisterExtendedReportingOnlyDelayedAnalysisCallback(
+ const DelayedAnalysisCallback& callback);
#endif
// Adds |download_manager| to the set monitored by safe browsing.
@@ -309,6 +312,8 @@ class SafeBrowsingService
#if defined(FULL_SAFE_BROWSING)
scoped_ptr<ResourceRequestDetector> resource_request_detector_;
+
+ scoped_ptr<ModuleLoadAnalyzer> module_load_analyzer_;
#endif
DISALLOW_COPY_AND_ASSIGN(SafeBrowsingService);

Powered by Google App Engine
This is Rietveld 408576698