| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 
|  | 2 // Use of this source code is governed by a BSD-style license that can be | 
|  | 3 // found in the LICENSE file. | 
|  | 4 | 
|  | 5 module content.mojom; | 
|  | 6 | 
|  | 7 // This needs to match the definition of content::ResourceType. | 
|  | 8 enum ResourceType { | 
|  | 9   RESOURCE_TYPE_MAIN_FRAME = 0,       // top level page | 
|  | 10   RESOURCE_TYPE_SUB_FRAME = 1,        // frame or iframe | 
|  | 11   RESOURCE_TYPE_STYLESHEET = 2,       // a CSS stylesheet | 
|  | 12   RESOURCE_TYPE_SCRIPT = 3,           // an external script | 
|  | 13   RESOURCE_TYPE_IMAGE = 4,            // an image (jpg/gif/png/etc) | 
|  | 14   RESOURCE_TYPE_FONT_RESOURCE = 5,    // a font | 
|  | 15   RESOURCE_TYPE_SUB_RESOURCE = 6,     // an "other" subresource. | 
|  | 16   RESOURCE_TYPE_OBJECT = 7,           // an object (or embed) tag for a plugin. | 
|  | 17   RESOURCE_TYPE_MEDIA = 8,            // a media resource. | 
|  | 18   RESOURCE_TYPE_WORKER = 9,           // the main resource of a dedicated | 
|  | 19                                       // worker. | 
|  | 20   RESOURCE_TYPE_SHARED_WORKER = 10,   // the main resource of a shared worker. | 
|  | 21   RESOURCE_TYPE_PREFETCH = 11,        // an explicitly requested prefetch | 
|  | 22   RESOURCE_TYPE_FAVICON = 12,         // a favicon | 
|  | 23   RESOURCE_TYPE_XHR = 13,             // a XMLHttpRequest | 
|  | 24   RESOURCE_TYPE_PING = 14,            // a ping request for <a ping>/sendBeacon. | 
|  | 25   RESOURCE_TYPE_SERVICE_WORKER = 15,  // the main resource of a service worker. | 
|  | 26   RESOURCE_TYPE_CSP_REPORT = 16,      // a report of Content Security Policy | 
|  | 27                                       // violations. | 
|  | 28   RESOURCE_TYPE_PLUGIN_RESOURCE = 17, // a resource that a plugin requested. | 
|  | 29   RESOURCE_TYPE_LAST_TYPE | 
|  | 30 }; | 
| OLD | NEW | 
|---|