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 PPAPI_PROXY_PLUGIN_RESOURCE_H_ | 5 #ifndef PPAPI_PROXY_PLUGIN_RESOURCE_H_ |
6 #define PPAPI_PROXY_PLUGIN_RESOURCE_H_ | 6 #define PPAPI_PROXY_PLUGIN_RESOURCE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
10 #include "ppapi/proxy/host_resource.h" | 10 #include "ppapi/proxy/host_resource.h" |
11 #include "ppapi/proxy/plugin_dispatcher.h" | 11 #include "ppapi/proxy/plugin_dispatcher.h" |
12 #include "ppapi/proxy/plugin_resource_tracker.h" | 12 #include "ppapi/proxy/plugin_resource_tracker.h" |
13 | 13 |
14 // If you inherit from resource, make sure you add the class name here. | 14 // If you inherit from resource, make sure you add the class name here. |
15 #define FOR_ALL_PLUGIN_RESOURCES(F) \ | 15 #define FOR_ALL_PLUGIN_RESOURCES(F) \ |
16 F(Audio) \ | 16 F(Audio) \ |
17 F(AudioConfig) \ | 17 F(AudioConfig) \ |
18 F(Buffer) \ | 18 F(Buffer) \ |
19 F(Context3D) \ | 19 F(Context3D) \ |
| 20 F(FileChooser) \ |
| 21 F(FileRef) \ |
20 F(FlashMenu) \ | 22 F(FlashMenu) \ |
21 F(Font) \ | 23 F(Font) \ |
22 F(Graphics2D) \ | 24 F(Graphics2D) \ |
23 F(ImageData) \ | 25 F(ImageData) \ |
24 F(MockResource) \ | 26 F(MockResource) \ |
25 F(PrivateFontFile) \ | 27 F(PrivateFontFile) \ |
26 F(Surface3D) \ | 28 F(Surface3D) \ |
27 F(URLLoader) \ | 29 F(URLLoader) \ |
28 F(URLRequestInfo)\ | 30 F(URLRequestInfo)\ |
29 F(URLResponseInfo) | 31 F(URLResponseInfo) |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 template <> inline Type* PluginResource::Cast<Type>() { \ | 82 template <> inline Type* PluginResource::Cast<Type>() { \ |
81 return As##Type(); \ | 83 return As##Type(); \ |
82 } | 84 } |
83 FOR_ALL_PLUGIN_RESOURCES(DEFINE_RESOURCE_CAST) | 85 FOR_ALL_PLUGIN_RESOURCES(DEFINE_RESOURCE_CAST) |
84 #undef DEFINE_RESOURCE_CAST | 86 #undef DEFINE_RESOURCE_CAST |
85 | 87 |
86 } // namespace proxy | 88 } // namespace proxy |
87 } // namespace pp | 89 } // namespace pp |
88 | 90 |
89 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_H_ | 91 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_H_ |
OLD | NEW |