OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_PLUGINS_PEPPER_RESOURCE_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_RESOURCE_H_ |
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_RESOURCE_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_RESOURCE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/ref_counted.h" | 9 #include "base/ref_counted.h" |
10 #include "ppapi/c/pp_resource.h" | 10 #include "ppapi/c/pp_resource.h" |
11 #include "webkit/glue/plugins/pepper_resource_tracker.h" | 11 #include "webkit/glue/plugins/pepper_resource_tracker.h" |
12 | 12 |
13 namespace pepper { | 13 namespace pepper { |
14 | 14 |
15 // If you inherit from resource, make sure you add the class name here. | 15 // If you inherit from resource, make sure you add the class name here. |
16 #define FOR_ALL_RESOURCES(F) \ | 16 #define FOR_ALL_RESOURCES(F) \ |
17 F(Audio) \ | 17 F(Audio) \ |
18 F(AudioConfig) \ | 18 F(AudioConfig) \ |
19 F(Buffer) \ | 19 F(Buffer) \ |
20 F(DirectoryReader) \ | 20 F(DirectoryReader) \ |
21 F(FileChooser) \ | 21 F(FileChooser) \ |
22 F(FileIO) \ | 22 F(FileIO) \ |
23 F(FileRef) \ | 23 F(FileRef) \ |
24 F(FileSystem) \ | 24 F(FileSystem) \ |
25 F(Font) \ | 25 F(Font) \ |
26 F(Graphics2D) \ | 26 F(Graphics2D) \ |
27 F(Graphics3D) \ | 27 F(Graphics3D) \ |
28 F(ImageData) \ | 28 F(ImageData) \ |
| 29 F(MockResource) \ |
29 F(ObjectVar) \ | 30 F(ObjectVar) \ |
30 F(PluginModule) \ | 31 F(PluginModule) \ |
31 F(PrivateFontFile) \ | 32 F(PrivateFontFile) \ |
32 F(Scrollbar) \ | 33 F(Scrollbar) \ |
33 F(StringVar) \ | 34 F(StringVar) \ |
34 F(Transport) \ | 35 F(Transport) \ |
35 F(URLLoader) \ | 36 F(URLLoader) \ |
36 F(URLRequestInfo) \ | 37 F(URLRequestInfo) \ |
37 F(URLResponseInfo) \ | 38 F(URLResponseInfo) \ |
38 F(Var) \ | 39 F(Var) \ |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 return As##Type(); \ | 132 return As##Type(); \ |
132 } | 133 } |
133 | 134 |
134 FOR_ALL_RESOURCES(DEFINE_RESOURCE_CAST) | 135 FOR_ALL_RESOURCES(DEFINE_RESOURCE_CAST) |
135 #undef DEFINE_RESOURCE_CAST | 136 #undef DEFINE_RESOURCE_CAST |
136 | 137 |
137 #undef FOR_ALL_RESOURCES | 138 #undef FOR_ALL_RESOURCES |
138 } // namespace pepper | 139 } // namespace pepper |
139 | 140 |
140 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_RESOURCE_H_ | 141 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_RESOURCE_H_ |
OLD | NEW |