| 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" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 F(Font) \ | 27 F(Font) \ |
| 28 F(Graphics2D) \ | 28 F(Graphics2D) \ |
| 29 F(Graphics3D) \ | 29 F(Graphics3D) \ |
| 30 F(ImageData) \ | 30 F(ImageData) \ |
| 31 F(MockResource) \ | 31 F(MockResource) \ |
| 32 F(PrivateFontFile) \ | 32 F(PrivateFontFile) \ |
| 33 F(Surface3D) \ | 33 F(Surface3D) \ |
| 34 F(URLLoader) \ | 34 F(URLLoader) \ |
| 35 F(URLRequestInfo) \ | 35 F(URLRequestInfo) \ |
| 36 F(URLResponseInfo) \ | 36 F(URLResponseInfo) \ |
| 37 F(VideoCapture) \ |
| 37 F(VideoDecoder) | 38 F(VideoDecoder) |
| 38 | 39 |
| 39 namespace pp { | 40 namespace pp { |
| 40 namespace proxy { | 41 namespace proxy { |
| 41 | 42 |
| 42 // Forward declaration of Resource classes. | 43 // Forward declaration of Resource classes. |
| 43 #define DECLARE_RESOURCE_CLASS(RESOURCE) class RESOURCE; | 44 #define DECLARE_RESOURCE_CLASS(RESOURCE) class RESOURCE; |
| 44 FOR_ALL_PLUGIN_RESOURCES(DECLARE_RESOURCE_CLASS) | 45 FOR_ALL_PLUGIN_RESOURCES(DECLARE_RESOURCE_CLASS) |
| 45 #undef DECLARE_RESOURCE_CLASS | 46 #undef DECLARE_RESOURCE_CLASS |
| 46 | 47 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 template <> inline Type* PluginResource::Cast<Type>() { \ | 91 template <> inline Type* PluginResource::Cast<Type>() { \ |
| 91 return As##Type(); \ | 92 return As##Type(); \ |
| 92 } | 93 } |
| 93 FOR_ALL_PLUGIN_RESOURCES(DEFINE_RESOURCE_CAST) | 94 FOR_ALL_PLUGIN_RESOURCES(DEFINE_RESOURCE_CAST) |
| 94 #undef DEFINE_RESOURCE_CAST | 95 #undef DEFINE_RESOURCE_CAST |
| 95 | 96 |
| 96 } // namespace proxy | 97 } // namespace proxy |
| 97 } // namespace pp | 98 } // namespace pp |
| 98 | 99 |
| 99 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_H_ | 100 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_H_ |
| OLD | NEW |