OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WEBKIT_GLUE_RESOURCE_TYPE_H__ | 5 #ifndef WEBKIT_GLUE_RESOURCE_TYPE_H__ |
6 #define WEBKIT_GLUE_RESOURCE_TYPE_H__ | 6 #define WEBKIT_GLUE_RESOURCE_TYPE_H__ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURLRequest.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURLReques
t.h" |
10 #include "webkit/glue/webkit_glue_export.h" | 10 #include "webkit/glue/webkit_glue_export.h" |
11 | 11 |
12 class ResourceType { | 12 class ResourceType { |
13 public: | 13 public: |
14 enum Type { | 14 enum Type { |
15 MAIN_FRAME = 0, // top level page | 15 MAIN_FRAME = 0, // top level page |
16 SUB_FRAME, // frame or iframe | 16 SUB_FRAME, // frame or iframe |
17 STYLESHEET, // a CSS stylesheet | 17 STYLESHEET, // a CSS stylesheet |
18 SCRIPT, // an external script | 18 SCRIPT, // an external script |
19 IMAGE, // an image (jpg/gif/png/etc) | 19 IMAGE, // an image (jpg/gif/png/etc) |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 type == WORKER || | 60 type == WORKER || |
61 type == XHR; | 61 type == XHR; |
62 } | 62 } |
63 | 63 |
64 private: | 64 private: |
65 // Don't instantiate this class. | 65 // Don't instantiate this class. |
66 ResourceType(); | 66 ResourceType(); |
67 ~ResourceType(); | 67 ~ResourceType(); |
68 }; | 68 }; |
69 #endif // WEBKIT_GLUE_RESOURCE_TYPE_H__ | 69 #endif // WEBKIT_GLUE_RESOURCE_TYPE_H__ |
OLD | NEW |