Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / content / public / common / resource_type.h
bloba77787ccd3f3a168573234baf05ac6cb9f671acb
1 // Copyright 2014 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.
5 #ifndef CONTENT_PUBLIC_COMMON_RESOURCE_TYPE_H_
6 #define CONTENT_PUBLIC_COMMON_RESOURCE_TYPE_H_
8 #include "content/common/content_export.h"
10 namespace content {
12 // Used in histograms; explicitly assign each type and do not re-use old values.
13 enum ResourceType {
14 RESOURCE_TYPE_MAIN_FRAME = 0, // top level page
15 RESOURCE_TYPE_SUB_FRAME = 1, // frame or iframe
16 RESOURCE_TYPE_STYLESHEET = 2, // a CSS stylesheet
17 RESOURCE_TYPE_SCRIPT = 3, // an external script
18 RESOURCE_TYPE_IMAGE = 4, // an image (jpg/gif/png/etc)
19 RESOURCE_TYPE_FONT_RESOURCE = 5, // a font
20 RESOURCE_TYPE_SUB_RESOURCE = 6, // an "other" subresource.
21 RESOURCE_TYPE_OBJECT = 7, // an object (or embed) tag for a plugin,
22 // or a resource that a plugin requested.
23 RESOURCE_TYPE_MEDIA = 8, // a media resource.
24 RESOURCE_TYPE_WORKER = 9, // the main resource of a dedicated
25 // worker.
26 RESOURCE_TYPE_SHARED_WORKER = 10, // the main resource of a shared worker.
27 RESOURCE_TYPE_PREFETCH = 11, // an explicitly requested prefetch
28 RESOURCE_TYPE_FAVICON = 12, // a favicon
29 RESOURCE_TYPE_XHR = 13, // a XMLHttpRequest
30 RESOURCE_TYPE_PING = 14, // a ping request for <a ping>
31 RESOURCE_TYPE_SERVICE_WORKER = 15, // the main resource of a service worker.
32 RESOURCE_TYPE_LAST_TYPE
35 CONTENT_EXPORT bool IsResourceTypeFrame(ResourceType type);
37 } // namespace content
39 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_TYPE_H_