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 #include "ppapi/shared_impl/resource_object_base.h" | 13 #include "ppapi/shared_impl/resource_object_base.h" |
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_PLUGIN_RESOURCES(F) \ | 16 #define FOR_ALL_PLUGIN_RESOURCES(F) \ |
17 F(Audio) \ | 17 F(Audio) \ |
18 F(AudioConfig) \ | 18 F(AudioConfig) \ |
19 F(Broker) \ | 19 F(Broker) \ |
20 F(Buffer) \ | 20 F(Buffer) \ |
21 F(Context3D) \ | 21 F(Context3D) \ |
22 F(FileChooser) \ | 22 F(FileChooser) \ |
23 F(FileRef) \ | 23 F(FileRef) \ |
24 F(FileSystem) \ | 24 F(FileSystem) \ |
25 F(FlashMenu) \ | 25 F(FlashMenu) \ |
26 F(FlashNetConnector) \ | 26 F(FlashNetConnector) \ |
27 F(Font) \ | 27 F(Font) \ |
28 F(Graphics2D) \ | 28 F(Graphics2D) \ |
29 F(Graphics3D) \ | |
30 F(ImageData) \ | 29 F(ImageData) \ |
31 F(MockResource) \ | 30 F(MockResource) \ |
32 F(PrivateFontFile) \ | 31 F(PrivateFontFile) \ |
33 F(Surface3D) \ | 32 F(Surface3D) \ |
34 F(URLLoader) \ | 33 F(URLLoader) \ |
35 F(URLRequestInfo)\ | 34 F(URLRequestInfo)\ |
36 F(URLResponseInfo) | 35 F(URLResponseInfo) |
37 | 36 |
38 namespace pp { | 37 namespace pp { |
39 namespace proxy { | 38 namespace proxy { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 template <> inline Type* PluginResource::Cast<Type>() { \ | 88 template <> inline Type* PluginResource::Cast<Type>() { \ |
90 return As##Type(); \ | 89 return As##Type(); \ |
91 } | 90 } |
92 FOR_ALL_PLUGIN_RESOURCES(DEFINE_RESOURCE_CAST) | 91 FOR_ALL_PLUGIN_RESOURCES(DEFINE_RESOURCE_CAST) |
93 #undef DEFINE_RESOURCE_CAST | 92 #undef DEFINE_RESOURCE_CAST |
94 | 93 |
95 } // namespace proxy | 94 } // namespace proxy |
96 } // namespace pp | 95 } // namespace pp |
97 | 96 |
98 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_H_ | 97 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_H_ |
OLD | NEW |