| 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(Broker) \ | 
| 18   F(Buffer) \ | 19   F(Buffer) \ | 
| 19   F(Context3D) \ | 20   F(Context3D) \ | 
| 20   F(FileChooser) \ | 21   F(FileChooser) \ | 
| 21   F(FileRef) \ | 22   F(FileRef) \ | 
| 22   F(FileSystem) \ | 23   F(FileSystem) \ | 
| 23   F(FlashMenu) \ | 24   F(FlashMenu) \ | 
| 24   F(FlashNetConnector) \ | 25   F(FlashNetConnector) \ | 
| 25   F(Font) \ | 26   F(Font) \ | 
| 26   F(Graphics2D) \ | 27   F(Graphics2D) \ | 
| 27   F(ImageData) \ | 28   F(ImageData) \ | 
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 84   template <> inline Type* PluginResource::Cast<Type>() {  \ | 85   template <> inline Type* PluginResource::Cast<Type>() {  \ | 
| 85       return As##Type();                             \ | 86       return As##Type();                             \ | 
| 86   } | 87   } | 
| 87 FOR_ALL_PLUGIN_RESOURCES(DEFINE_RESOURCE_CAST) | 88 FOR_ALL_PLUGIN_RESOURCES(DEFINE_RESOURCE_CAST) | 
| 88 #undef DEFINE_RESOURCE_CAST | 89 #undef DEFINE_RESOURCE_CAST | 
| 89 | 90 | 
| 90 }  // namespace proxy | 91 }  // namespace proxy | 
| 91 }  // namespace pp | 92 }  // namespace pp | 
| 92 | 93 | 
| 93 #endif  // PPAPI_PROXY_PLUGIN_RESOURCE_H_ | 94 #endif  // PPAPI_PROXY_PLUGIN_RESOURCE_H_ | 
| OLD | NEW | 
|---|