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_PLUGINS_PPAPI_RESOURCE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_RESOURCE_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_RESOURCE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_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/plugins/ppapi/resource_tracker.h" | 11 #include "webkit/plugins/ppapi/resource_tracker.h" |
12 | 12 |
13 namespace webkit { | 13 namespace webkit { |
14 namespace ppapi { | 14 namespace ppapi { |
15 | 15 |
16 // If you inherit from resource, make sure you add the class name here. | 16 // If you inherit from resource, make sure you add the class name here. |
17 #define FOR_ALL_RESOURCES(F) \ | 17 #define FOR_ALL_RESOURCES(F) \ |
18 F(MockResource) \ | 18 F(MockResource) \ |
19 F(ObjectVar) \ | 19 F(ObjectVar) \ |
20 F(PPB_AudioConfig_Impl) \ | 20 F(PPB_AudioConfig_Impl) \ |
21 F(PPB_Audio_Impl) \ | 21 F(PPB_Audio_Impl) \ |
22 F(PPB_Buffer_Impl) \ | 22 F(PPB_Buffer_Impl) \ |
| 23 F(PPB_Context3D_Impl) \ |
23 F(PPB_DirectoryReader_Impl) \ | 24 F(PPB_DirectoryReader_Impl) \ |
24 F(PPB_FileChooser_Impl) \ | 25 F(PPB_FileChooser_Impl) \ |
25 F(PPB_FileIO_Impl) \ | 26 F(PPB_FileIO_Impl) \ |
26 F(PPB_FileRef_Impl) \ | 27 F(PPB_FileRef_Impl) \ |
27 F(PPB_FileSystem_Impl) \ | 28 F(PPB_FileSystem_Impl) \ |
28 F(PPB_Font_Impl) \ | 29 F(PPB_Font_Impl) \ |
29 F(PPB_Graphics2D_Impl) \ | 30 F(PPB_Graphics2D_Impl) \ |
30 F(PPB_Graphics3D_Impl) \ | 31 F(PPB_Graphics3D_Impl) \ |
31 F(PPB_ImageData_Impl) \ | 32 F(PPB_ImageData_Impl) \ |
32 F(PPB_Scrollbar_Impl) \ | 33 F(PPB_Scrollbar_Impl) \ |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 return As##Type(); \ | 133 return As##Type(); \ |
133 } | 134 } |
134 | 135 |
135 FOR_ALL_RESOURCES(DEFINE_RESOURCE_CAST) | 136 FOR_ALL_RESOURCES(DEFINE_RESOURCE_CAST) |
136 #undef DEFINE_RESOURCE_CAST | 137 #undef DEFINE_RESOURCE_CAST |
137 | 138 |
138 } // namespace ppapi | 139 } // namespace ppapi |
139 } // namespace webkit | 140 } // namespace webkit |
140 | 141 |
141 #endif // WEBKIT_PLUGINS_PPAPI_RESOURCE_H_ | 142 #endif // WEBKIT_PLUGINS_PPAPI_RESOURCE_H_ |
OLD | NEW |