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

Unified Diff: content/public/common/resource_type.h

Issue 1515703005: WebRequest API: add more resource types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: content/public/common/resource_type.h
diff --git a/content/public/common/resource_type.h b/content/public/common/resource_type.h
index a77787ccd3f3a168573234baf05ac6cb9f671acb..ed70039c2f4e0023056e963bc312f35616e416da 100644
--- a/content/public/common/resource_type.h
+++ b/content/public/common/resource_type.h
@@ -18,8 +18,7 @@ enum ResourceType {
RESOURCE_TYPE_IMAGE = 4, // an image (jpg/gif/png/etc)
RESOURCE_TYPE_FONT_RESOURCE = 5, // a font
RESOURCE_TYPE_SUB_RESOURCE = 6, // an "other" subresource.
- RESOURCE_TYPE_OBJECT = 7, // an object (or embed) tag for a plugin,
- // or a resource that a plugin requested.
+ RESOURCE_TYPE_OBJECT = 7, // an object (or embed) tag for a plugin.
RESOURCE_TYPE_MEDIA = 8, // a media resource.
RESOURCE_TYPE_WORKER = 9, // the main resource of a dedicated
// worker.
@@ -27,8 +26,10 @@ enum ResourceType {
RESOURCE_TYPE_PREFETCH = 11, // an explicitly requested prefetch
RESOURCE_TYPE_FAVICON = 12, // a favicon
RESOURCE_TYPE_XHR = 13, // a XMLHttpRequest
- RESOURCE_TYPE_PING = 14, // a ping request for <a ping>
+ RESOURCE_TYPE_PING = 14, // a ping request for <a ping>/sendBeacon.
RESOURCE_TYPE_SERVICE_WORKER = 15, // the main resource of a service worker.
+ RESOURCE_TYPE_CSP_REPORT = 16, // a CSP report
Charlie Reis 2015/12/14 20:53:23 nit: Add period to be self-consistent.
battre 2015/12/15 12:53:09 How about explaining the abbreviation in the comme
robwu 2015/12/15 13:17:25 Done.
robwu 2015/12/15 13:17:25 Done.
+ RESOURCE_TYPE_PLUGIN_RESOURCE = 17, // a resource that a plugin requested.
mattm 2015/12/15 00:40:37 Update ContentResourceType in histograms.xml
robwu 2015/12/15 13:17:25 Done.
RESOURCE_TYPE_LAST_TYPE
};

Powered by Google App Engine
This is Rietveld 408576698