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 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/proxy/plugin_dispatcher.h" | 9 #include "ppapi/proxy/plugin_dispatcher.h" |
10 #include "ppapi/proxy/plugin_resource_tracker.h" | 10 #include "ppapi/proxy/plugin_resource_tracker.h" |
11 | 11 |
12 // If you inherit from resource, make sure you add the class name here. | 12 // If you inherit from resource, make sure you add the class name here. |
13 #define FOR_ALL_RESOURCES(F) \ | 13 #define FOR_ALL_RESOURCES(F) \ |
| 14 F(Audio) \ |
| 15 F(AudioConfig) \ |
14 F(Buffer) \ | 16 F(Buffer) \ |
15 F(Font) \ | 17 F(Font) \ |
16 F(Graphics2D) \ | 18 F(Graphics2D) \ |
17 F(ImageData) \ | 19 F(ImageData) \ |
18 F(PrivateFontFile) \ | 20 F(PrivateFontFile) \ |
19 F(URLLoader) \ | 21 F(URLLoader) \ |
20 F(URLRequestInfo)\ | 22 F(URLRequestInfo)\ |
21 F(URLResponseInfo) | 23 F(URLResponseInfo) |
22 | 24 |
23 namespace pp { | 25 namespace pp { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 template <> inline Type* PluginResource::Cast<Type>() { \ | 62 template <> inline Type* PluginResource::Cast<Type>() { \ |
61 return As##Type(); \ | 63 return As##Type(); \ |
62 } | 64 } |
63 FOR_ALL_RESOURCES(DEFINE_RESOURCE_CAST) | 65 FOR_ALL_RESOURCES(DEFINE_RESOURCE_CAST) |
64 #undef DEFINE_RESOURCE_CAST | 66 #undef DEFINE_RESOURCE_CAST |
65 | 67 |
66 } // namespace proxy | 68 } // namespace proxy |
67 } // namespace pp | 69 } // namespace pp |
68 | 70 |
69 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_H_ | 71 #endif // PPAPI_PROXY_PLUGIN_RESOURCE_H_ |
OLD | NEW |