| 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_THUNK_THUNK_H_ | 5 #ifndef PPAPI_THUNK_THUNK_H_ |
| 6 #define PPAPI_THUNK_THUNK_H_ | 6 #define PPAPI_THUNK_THUNK_H_ |
| 7 | 7 |
| 8 #include "ppapi/thunk/ppapi_thunk_export.h" | 8 #include "ppapi/thunk/ppapi_thunk_export.h" |
| 9 | 9 |
| 10 // Declares a getter for the interface thunk of the form: | 10 // Declares a getter for the interface thunk of the form: |
| 11 // | 11 // |
| 12 // const PPB_Foo* ppapi::thunk::GetPPB_Foo_Thunk(); | 12 // const PPB_Foo* ppapi::thunk::GetPPB_Foo_Thunk(); |
| 13 // | 13 // |
| 14 #define IFACE(api_name, interface_name, InterfaceType) \ | 14 #define IFACE(api_name, interface_name, InterfaceType) \ |
| 15 struct InterfaceType; \ | 15 struct InterfaceType; \ |
| 16 namespace ppapi { namespace thunk { \ | 16 namespace ppapi { namespace thunk { \ |
| 17 PPAPI_THUNK_EXPORT const InterfaceType* Get##InterfaceType##_Thunk(); \ | 17 PPAPI_THUNK_EXPORT const InterfaceType* Get##InterfaceType##_Thunk(); \ |
| 18 } } | 18 } } |
| 19 #define PROXIED_IFACE IFACE | 19 #define PROXIED_IFACE IFACE |
| 20 #define UNPROXIED_IFACE IFACE | 20 #define UNPROXIED_IFACE IFACE |
| 21 | 21 |
| 22 #include "ppapi/thunk/interfaces_ppb_private.h" | 22 #include "ppapi/thunk/interfaces_ppb_private.h" |
| 23 #include "ppapi/thunk/interfaces_ppb_public_stable.h" | 23 #include "ppapi/thunk/interfaces_ppb_public_stable.h" |
| 24 #include "ppapi/thunk/interfaces_ppb_public_dev.h" | 24 #include "ppapi/thunk/interfaces_ppb_public_dev.h" |
| 25 | 25 |
| 26 #undef UNPROXIED_IFACE | 26 #undef UNPROXIED_IFACE |
| 27 #undef PROXIED_IFACE | 27 #undef PROXIED_IFACE |
| 28 #undef IFACE | 28 #undef IFACE |
| 29 | 29 |
| 30 struct PPB_AudioInputTrusted_Dev; |
| 30 struct PPB_AudioTrusted; | 31 struct PPB_AudioTrusted; |
| 31 struct PPB_BrokerTrusted; | 32 struct PPB_BrokerTrusted; |
| 32 struct PPB_BufferTrusted; | 33 struct PPB_BufferTrusted; |
| 33 struct PPB_Context3DTrusted_Dev; | 34 struct PPB_Context3DTrusted_Dev; |
| 34 struct PPB_FileChooserTrusted; | 35 struct PPB_FileChooserTrusted; |
| 35 struct PPB_FileIOTrusted; | 36 struct PPB_FileIOTrusted; |
| 36 struct PPB_Flash_Clipboard; | 37 struct PPB_Flash_Clipboard; |
| 37 struct PPB_Flash_Menu; | 38 struct PPB_Flash_Menu; |
| 38 struct PPB_Flash_NetConnector; | 39 struct PPB_Flash_NetConnector; |
| 39 struct PPB_Flash_TCPSocket; | 40 struct PPB_Flash_TCPSocket; |
| 40 struct PPB_Flash_UDPSocket; | 41 struct PPB_Flash_UDPSocket; |
| 41 struct PPB_Graphics3D; | 42 struct PPB_Graphics3D; |
| 42 struct PPB_Graphics3DTrusted; | 43 struct PPB_Graphics3DTrusted; |
| 43 struct PPB_ImageDataTrusted; | 44 struct PPB_ImageDataTrusted; |
| 44 struct PPB_Instance_Private; | 45 struct PPB_Instance_Private; |
| 45 struct PPB_URLLoaderTrusted; | 46 struct PPB_URLLoaderTrusted; |
| 46 | 47 |
| 47 typedef PPB_Instance PPB_Instance_1_0; | 48 typedef PPB_Instance PPB_Instance_1_0; |
| 48 | 49 |
| 49 namespace ppapi { | 50 namespace ppapi { |
| 50 namespace thunk { | 51 namespace thunk { |
| 51 | 52 |
| 52 // Old-style thunk getters. Only put trusted/private stuff here (it hasn't | 53 // Old-style thunk getters. Only put trusted/private stuff here (it hasn't |
| 53 // yet been converted to the new system). Otherwise, add the declaration to | 54 // yet been converted to the new system). Otherwise, add the declaration to |
| 54 // the appropriate interfaces_*.h file. | 55 // the appropriate interfaces_*.h file. |
| 56 PPAPI_THUNK_EXPORT const PPB_AudioInputTrusted_Dev* |
| 57 GetPPB_AudioInputTrusted_Thunk(); |
| 55 PPAPI_THUNK_EXPORT const PPB_AudioTrusted* GetPPB_AudioTrusted_Thunk(); | 58 PPAPI_THUNK_EXPORT const PPB_AudioTrusted* GetPPB_AudioTrusted_Thunk(); |
| 56 PPAPI_THUNK_EXPORT const PPB_BrokerTrusted* GetPPB_Broker_Thunk(); | 59 PPAPI_THUNK_EXPORT const PPB_BrokerTrusted* GetPPB_Broker_Thunk(); |
| 57 PPAPI_THUNK_EXPORT const PPB_BufferTrusted* GetPPB_BufferTrusted_Thunk(); | 60 PPAPI_THUNK_EXPORT const PPB_BufferTrusted* GetPPB_BufferTrusted_Thunk(); |
| 58 PPAPI_THUNK_EXPORT const PPB_Context3DTrusted_Dev* | 61 PPAPI_THUNK_EXPORT const PPB_Context3DTrusted_Dev* |
| 59 GetPPB_Context3DTrusted_Thunk(); | 62 GetPPB_Context3DTrusted_Thunk(); |
| 60 PPAPI_THUNK_EXPORT const PPB_FileChooserTrusted* | 63 PPAPI_THUNK_EXPORT const PPB_FileChooserTrusted* |
| 61 GetPPB_FileChooser_Trusted_Thunk(); | 64 GetPPB_FileChooser_Trusted_Thunk(); |
| 62 PPAPI_THUNK_EXPORT const PPB_FileIOTrusted* GetPPB_FileIOTrusted_Thunk(); | 65 PPAPI_THUNK_EXPORT const PPB_FileIOTrusted* GetPPB_FileIOTrusted_Thunk(); |
| 63 PPAPI_THUNK_EXPORT const PPB_Flash_Clipboard* GetPPB_Flash_Clipboard_Thunk(); | 66 PPAPI_THUNK_EXPORT const PPB_Flash_Clipboard* GetPPB_Flash_Clipboard_Thunk(); |
| 64 PPAPI_THUNK_EXPORT const PPB_Flash_Menu* GetPPB_Flash_Menu_Thunk(); | 67 PPAPI_THUNK_EXPORT const PPB_Flash_Menu* GetPPB_Flash_Menu_Thunk(); |
| 65 PPAPI_THUNK_EXPORT const PPB_Flash_NetConnector* | 68 PPAPI_THUNK_EXPORT const PPB_Flash_NetConnector* |
| 66 GetPPB_Flash_NetConnector_Thunk(); | 69 GetPPB_Flash_NetConnector_Thunk(); |
| 67 PPAPI_THUNK_EXPORT const PPB_Flash_TCPSocket* GetPPB_Flash_TCPSocket_Thunk(); | 70 PPAPI_THUNK_EXPORT const PPB_Flash_TCPSocket* GetPPB_Flash_TCPSocket_Thunk(); |
| 68 PPAPI_THUNK_EXPORT const PPB_Flash_UDPSocket* GetPPB_Flash_UDPSocket_Thunk(); | 71 PPAPI_THUNK_EXPORT const PPB_Flash_UDPSocket* GetPPB_Flash_UDPSocket_Thunk(); |
| 69 PPAPI_THUNK_EXPORT const PPB_Graphics3DTrusted* | 72 PPAPI_THUNK_EXPORT const PPB_Graphics3DTrusted* |
| 70 GetPPB_Graphics3DTrusted_Thunk(); | 73 GetPPB_Graphics3DTrusted_Thunk(); |
| 71 PPAPI_THUNK_EXPORT const PPB_ImageDataTrusted* GetPPB_ImageDataTrusted_Thunk(); | 74 PPAPI_THUNK_EXPORT const PPB_ImageDataTrusted* GetPPB_ImageDataTrusted_Thunk(); |
| 72 PPAPI_THUNK_EXPORT const PPB_Instance_Private* GetPPB_Instance_Private_Thunk(); | 75 PPAPI_THUNK_EXPORT const PPB_Instance_Private* GetPPB_Instance_Private_Thunk(); |
| 73 PPAPI_THUNK_EXPORT const PPB_URLLoaderTrusted* GetPPB_URLLoaderTrusted_Thunk(); | 76 PPAPI_THUNK_EXPORT const PPB_URLLoaderTrusted* GetPPB_URLLoaderTrusted_Thunk(); |
| 74 | 77 |
| 75 } // namespace thunk | 78 } // namespace thunk |
| 76 } // namespace ppapi | 79 } // namespace ppapi |
| 77 | 80 |
| 78 #endif // PPAPI_THUNK_THUNK_H_ | 81 #endif // PPAPI_THUNK_THUNK_H_ |
| OLD | NEW |