blob: 6d3c442343a49bf4e6b28cd6bd4083697d31be4b [file] [log] [blame]
// 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 {
kMainFrame = 0, // top level page
kSubFrame = 1, // frame or iframe
kStylesheet = 2, // a CSS stylesheet
kScript = 3, // an external script
kImage = 4, // an image (jpg/gif/png/etc)
kFontResource = 5, // a font
kSubResource = 6, // an "other" subresource.
kObject = 7, // an object (or embed) tag for a plugin.
kMedia = 8, // a media resource.
kWorker = 9, // the main resource of a dedicated worker.
kSharedWorker = 10, // the main resource of a shared worker.
kPrefetch = 11, // an explicitly requested prefetch
kFavicon = 12, // a favicon
kXhr = 13, // a XMLHttpRequest
kPing = 14, // a ping request for <a ping>/sendBeacon.
kServiceWorker = 15, // the main resource of a service worker.
kCspReport = 16, // a report of Content Security Policy violations.
kPluginResource = 17, // a resource that a plugin requested.
kNavigationPreload = 18, // a service worker navigation preload request.
};