OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/c/private/ppb_instance_private.h" | 8 #include "ppapi/c/private/ppb_instance_private.h" |
9 #include "ppapi/thunk/ppapi_thunk_export.h" | 9 #include "ppapi/thunk/ppapi_thunk_export.h" |
10 | 10 |
11 // Declares a getter for the interface thunk of the form: | 11 // Declares a getter for the interface thunk of the form: |
12 // | 12 // |
13 // const PPB_Foo* ppapi::thunk::GetPPB_Foo_Thunk(); | 13 // const PPB_Foo* ppapi::thunk::GetPPB_Foo_Thunk(); |
14 // | 14 // |
15 #define IFACE(interface_name, InterfaceType) \ | 15 #define IFACE(interface_name, InterfaceType) \ |
16 struct InterfaceType; \ | 16 struct InterfaceType; \ |
17 namespace ppapi { namespace thunk { \ | 17 namespace ppapi { namespace thunk { \ |
18 PPAPI_THUNK_EXPORT const InterfaceType* Get##InterfaceType##_Thunk(); \ | 18 PPAPI_THUNK_EXPORT const InterfaceType* Get##InterfaceType##_Thunk(); \ |
19 } } | 19 } } |
20 #define PROXIED_IFACE IFACE | 20 #define PROXIED_IFACE IFACE |
21 #define UNPROXIED_IFACE IFACE | 21 #define UNPROXIED_IFACE IFACE |
22 | 22 |
23 #include "ppapi/thunk/interfaces_ppb_private.h" | 23 #include "ppapi/thunk/interfaces_ppb_private.h" |
24 #include "ppapi/thunk/interfaces_ppb_private_no_permissions.h" | 24 #include "ppapi/thunk/interfaces_ppb_private_no_permissions.h" |
25 #include "ppapi/thunk/interfaces_ppb_private_flash.h" | 25 #include "ppapi/thunk/interfaces_ppb_private_flash.h" |
26 #include "ppapi/thunk/interfaces_ppb_public_stable.h" | 26 #include "ppapi/thunk/interfaces_ppb_public_stable.h" |
27 #include "ppapi/thunk/interfaces_ppb_public_dev.h" | 27 #include "ppapi/thunk/interfaces_ppb_public_dev.h" |
| 28 #include "ppapi/thunk/interfaces_ppb_public_dev_channel.h" |
28 | 29 |
29 #undef UNPROXIED_IFACE | 30 #undef UNPROXIED_IFACE |
30 #undef PROXIED_IFACE | 31 #undef PROXIED_IFACE |
31 #undef IFACE | 32 #undef IFACE |
32 | 33 |
33 namespace ppapi { | 34 namespace ppapi { |
34 namespace thunk { | 35 namespace thunk { |
35 | 36 |
36 // Old-style thunk getters. Only put trusted/private stuff here (it hasn't | 37 // Old-style thunk getters. Only put trusted/private stuff here (it hasn't |
37 // yet been converted to the new system). Otherwise, add the declaration to | 38 // yet been converted to the new system). Otherwise, add the declaration to |
38 // the appropriate interfaces_*.h file. | 39 // the appropriate interfaces_*.h file. |
39 PPAPI_THUNK_EXPORT const PPB_Instance_Private_0_1* | 40 PPAPI_THUNK_EXPORT const PPB_Instance_Private_0_1* |
40 GetPPB_Instance_Private_0_1_Thunk(); | 41 GetPPB_Instance_Private_0_1_Thunk(); |
41 | 42 |
42 } // namespace thunk | 43 } // namespace thunk |
43 } // namespace ppapi | 44 } // namespace ppapi |
44 | 45 |
45 #endif // PPAPI_THUNK_THUNK_H_ | 46 #endif // PPAPI_THUNK_THUNK_H_ |
OLD | NEW |