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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc

Issue 1515703005: WebRequest API: add more resource types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments (creis, mattm, battre) Created 5 years 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/off_domain_inclusion_detector.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc b/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc
index 98f29d450acecb21efcf739b213a3687e21cfda0..82ed2cd2477380fa5e028c115b484c8bc1402a82 100644
--- a/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/off_domain_inclusion_detector.cc
@@ -145,6 +145,7 @@ bool OffDomainInclusionDetector::ShouldAnalyzeRequest(
case content::RESOURCE_TYPE_OBJECT:
case content::RESOURCE_TYPE_MEDIA:
case content::RESOURCE_TYPE_XHR:
+ case content::RESOURCE_TYPE_PLUGIN_RESOURCE:
// Types above are to be analyzed for off-domain inclusion if they are
// loaded as part of the main frame.
return request_info->IsMainFrame();
@@ -154,6 +155,7 @@ bool OffDomainInclusionDetector::ShouldAnalyzeRequest(
case content::RESOURCE_TYPE_FAVICON:
case content::RESOURCE_TYPE_PING:
case content::RESOURCE_TYPE_SERVICE_WORKER:
+ case content::RESOURCE_TYPE_CSP_REPORT:
// Types above are not to be analyzed for off-domain inclusion.
return false;
case content::RESOURCE_TYPE_LAST_TYPE:

Powered by Google App Engine
This is Rietveld 408576698