Fix Up SingletonHwnd Observer Lifetime Issues
[chromium-blink-merge.git] / ppapi / thunk / thunk.h
blob3d4a77f3f77ba3aa69c419c135d3ad4836a32f21
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
3 // found in the LICENSE file.
5 #ifndef PPAPI_THUNK_THUNK_H_
6 #define PPAPI_THUNK_THUNK_H_
8 #include "ppapi/c/private/ppb_instance_private.h"
9 #include "ppapi/thunk/ppapi_thunk_export.h"
11 // Declares a getter for the interface thunk of the form:
13 // const PPB_Foo* ppapi::thunk::GetPPB_Foo_Thunk();
15 #define PROXIED_IFACE(interface_name, InterfaceType) \
16 struct InterfaceType; \
17 namespace ppapi { namespace thunk { \
18 PPAPI_THUNK_EXPORT const InterfaceType* Get##InterfaceType##_Thunk(); \
19 } }
21 #include "ppapi/thunk/interfaces_ppb_private.h"
22 #include "ppapi/thunk/interfaces_ppb_private_no_permissions.h"
23 #include "ppapi/thunk/interfaces_ppb_private_flash.h"
24 #include "ppapi/thunk/interfaces_ppb_public_stable.h"
25 #include "ppapi/thunk/interfaces_ppb_public_dev.h"
26 #include "ppapi/thunk/interfaces_ppb_public_dev_channel.h"
28 #undef PROXIED_IFACE
30 namespace ppapi {
31 namespace thunk {
33 // Old-style thunk getters. Only put trusted/private stuff here (it hasn't
34 // yet been converted to the new system). Otherwise, add the declaration to
35 // the appropriate interfaces_*.h file.
36 PPAPI_THUNK_EXPORT const PPB_Instance_Private_0_1*
37 GetPPB_Instance_Private_0_1_Thunk();
39 } // namespace thunk
40 } // namespace ppapi
42 #endif // PPAPI_THUNK_THUNK_H_