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

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

Issue 2900563002: Network service: Safe browsing check for sub-resources from renderer. (Closed)
Patch Set: . Created 3 years, 7 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
« no previous file with comments | « content/public/common/BUILD.gn ('k') | content/public/common/resource_type.typemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/resource_type.mojom
diff --git a/content/public/common/resource_type.mojom b/content/public/common/resource_type.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..98211a507a79e4614464bcfd5f4c88806bfa28d8
--- /dev/null
+++ b/content/public/common/resource_type.mojom
@@ -0,0 +1,30 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module content.mojom;
+
+// This needs to match the definition of content::ResourceType.
+enum ResourceType {
+ RESOURCE_TYPE_MAIN_FRAME = 0, // top level page
+ RESOURCE_TYPE_SUB_FRAME = 1, // frame or iframe
+ RESOURCE_TYPE_STYLESHEET = 2, // a CSS stylesheet
+ RESOURCE_TYPE_SCRIPT = 3, // an external script
+ 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.
+ RESOURCE_TYPE_MEDIA = 8, // a media resource.
+ RESOURCE_TYPE_WORKER = 9, // the main resource of a dedicated
+ // worker.
+ RESOURCE_TYPE_SHARED_WORKER = 10, // the main resource of a shared worker.
+ 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>/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/public/common/BUILD.gn ('k') | content/public/common/resource_type.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698