Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: ppapi/thunk/thunk.h

Issue 238923007: PPAPI: Format ppapi/thunk using clang-format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 PROXIED_IFACE(interface_name, InterfaceType) \ 15 #define PROXIED_IFACE(interface_name, InterfaceType) \
16 struct InterfaceType; \ 16 struct InterfaceType; \
17 namespace ppapi { namespace thunk { \ 17 namespace ppapi { \
18 namespace thunk { \
18 PPAPI_THUNK_EXPORT const InterfaceType* Get##InterfaceType##_Thunk(); \ 19 PPAPI_THUNK_EXPORT const InterfaceType* Get##InterfaceType##_Thunk(); \
19 } } 20 } \
21 }
20 22
21 #include "ppapi/thunk/interfaces_ppb_private.h" 23 #include "ppapi/thunk/interfaces_ppb_private.h"
22 #include "ppapi/thunk/interfaces_ppb_private_no_permissions.h" 24 #include "ppapi/thunk/interfaces_ppb_private_no_permissions.h"
23 #include "ppapi/thunk/interfaces_ppb_private_flash.h" 25 #include "ppapi/thunk/interfaces_ppb_private_flash.h"
24 #include "ppapi/thunk/interfaces_ppb_public_stable.h" 26 #include "ppapi/thunk/interfaces_ppb_public_stable.h"
25 #include "ppapi/thunk/interfaces_ppb_public_dev.h" 27 #include "ppapi/thunk/interfaces_ppb_public_dev.h"
26 #include "ppapi/thunk/interfaces_ppb_public_dev_channel.h" 28 #include "ppapi/thunk/interfaces_ppb_public_dev_channel.h"
27 29
28 #undef PROXIED_IFACE 30 #undef PROXIED_IFACE
29 31
30 namespace ppapi { 32 namespace ppapi {
31 namespace thunk { 33 namespace thunk {
32 34
33 // Old-style thunk getters. Only put trusted/private stuff here (it hasn't 35 // 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 36 // yet been converted to the new system). Otherwise, add the declaration to
35 // the appropriate interfaces_*.h file. 37 // the appropriate interfaces_*.h file.
36 PPAPI_THUNK_EXPORT const PPB_Instance_Private_0_1* 38 PPAPI_THUNK_EXPORT const PPB_Instance_Private_0_1*
37 GetPPB_Instance_Private_0_1_Thunk(); 39 GetPPB_Instance_Private_0_1_Thunk();
38 40
39 } // namespace thunk 41 } // namespace thunk
40 } // namespace ppapi 42 } // namespace ppapi
41 43
42 #endif // PPAPI_THUNK_THUNK_H_ 44 #endif // PPAPI_THUNK_THUNK_H_
OLDNEW
« ppapi/thunk/ppb_url_loader_thunk.cc ('K') | « ppapi/thunk/resource_creation_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698