// Copyright © 2016 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. namespace CefSharp { /// /// Resource type for a request. /// public enum ResourceType { /// /// Top level page. /// MainFrame = 0, /// /// Frame or iframe. /// SubFrame, /// /// CSS stylesheet. /// Stylesheet, /// /// External script. /// Script, /// /// Image (jpg/gif/png/etc). /// Image, /// /// Font. /// FontResource, /// /// Some other subresource. This is the default type if the actual type is unknown. /// SubResource, /// /// Object (or embed) tag for a plugin, or a resource that a plugin requested. /// Object, /// /// Media resource. /// Media, /// /// Main resource of a dedicated worker. /// Worker, /// /// Main resource of a shared worker. /// SharedWorker, /// /// Explicitly requested prefetch. /// Prefetch, /// /// Favicon. /// Favicon, /// /// XMLHttpRequest. /// Xhr, /// /// A request for a ping /// Ping, /// /// Main resource of a service worker. /// ServiceWorker, /// /// A report of Content Security Policy violations. /// CspReport, /// /// A resource that a plugin requested. /// PluginResource, /// /// A main-frame service worker navigation preload request. /// NavigationPreLoadMainFrame = 19, /// /// A sub-frame service worker navigation preload request. /// NavigationPreLoadSubFrame } }