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

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: Replace == with && 2x 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..b9089210b38e2f87a4629375a44b3c08aab3d6b0 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,11 @@ 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 report of Content Security Policy
+ // violations.
+ RESOURCE_TYPE_PLUGIN_RESOURCE = 17, // a resource that a plugin requested.
RESOURCE_TYPE_LAST_TYPE
};
« no previous file with comments | « content/child/web_url_request_util.cc ('k') | extensions/browser/api/web_request/web_request_api_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698