summaryrefslogtreecommitdiffstats
path: root/webkit/glue/resource_type.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/glue/resource_type.h')
-rw-r--r--webkit/glue/resource_type.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/webkit/glue/resource_type.h b/webkit/glue/resource_type.h
index 1d8e22b..98091b6 100644
--- a/webkit/glue/resource_type.h
+++ b/webkit/glue/resource_type.h
@@ -15,10 +15,13 @@ class ResourceType {
SUB_RESOURCE, // a resource like images, js, css
OBJECT, // an object (or embed) tag for a plugin,
// or a resource that a plugin requested.
+ MEDIA, // a media resource.
+ LAST_TYPE // Place holder so we don't need to change ValidType
+ // everytime.
};
static bool ValidType(int32 type) {
- return type >= MAIN_FRAME && type <= OBJECT;
+ return type >= MAIN_FRAME && type < LAST_TYPE;
}
static Type FromInt(int32 type) {