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

Side by Side Diff: ppapi/thunk/ppb_platform_verification_private_thunk.cc

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, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // From private/ppb_platform_verification_private.idl, 5 // From private/ppb_platform_verification_private.idl modified Fri Nov 1
6 // modified Thu Oct 31 12:30:06 2013. 6 // 16:12:12 2013.
7 7
8 #include "ppapi/c/pp_completion_callback.h" 8 #include "ppapi/c/pp_completion_callback.h"
9 #include "ppapi/c/pp_errors.h" 9 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/c/private/ppb_platform_verification_private.h" 10 #include "ppapi/c/private/ppb_platform_verification_private.h"
11 #include "ppapi/shared_impl/tracked_callback.h" 11 #include "ppapi/shared_impl/tracked_callback.h"
12 #include "ppapi/thunk/enter.h" 12 #include "ppapi/thunk/enter.h"
13 #include "ppapi/thunk/ppapi_thunk_export.h" 13 #include "ppapi/thunk/ppapi_thunk_export.h"
14 #include "ppapi/thunk/ppb_platform_verification_api.h" 14 #include "ppapi/thunk/ppb_platform_verification_api.h"
15 15
16 namespace ppapi { 16 namespace ppapi {
(...skipping 20 matching lines...) Expand all
37 struct PP_Var challenge, 37 struct PP_Var challenge,
38 struct PP_Var* signed_data, 38 struct PP_Var* signed_data,
39 struct PP_Var* signed_data_signature, 39 struct PP_Var* signed_data_signature,
40 struct PP_Var* platform_key_certificate, 40 struct PP_Var* platform_key_certificate,
41 struct PP_CompletionCallback callback) { 41 struct PP_CompletionCallback callback) {
42 VLOG(4) << "PPB_PlatformVerification_Private::ChallengePlatform()"; 42 VLOG(4) << "PPB_PlatformVerification_Private::ChallengePlatform()";
43 EnterResource<PPB_PlatformVerification_API> enter(instance, callback, true); 43 EnterResource<PPB_PlatformVerification_API> enter(instance, callback, true);
44 if (enter.failed()) 44 if (enter.failed())
45 return enter.retval(); 45 return enter.retval();
46 return enter.SetResult(enter.object()->ChallengePlatform( 46 return enter.SetResult(enter.object()->ChallengePlatform(
47 service_id, 47 service_id, challenge, signed_data, signed_data_signature,
48 challenge, 48 platform_key_certificate, enter.callback()));
49 signed_data,
50 signed_data_signature,
51 platform_key_certificate,
52 enter.callback()));
53 } 49 }
54 50
55 const PPB_PlatformVerification_Private_0_2 51 const PPB_PlatformVerification_Private_0_2
56 g_ppb_platformverification_private_thunk_0_2 = { 52 g_ppb_platformverification_private_thunk_0_2 = {&Create,
57 &Create, 53 &IsPlatformVerification,
58 &IsPlatformVerification, 54 &ChallengePlatform};
59 &ChallengePlatform
60 };
61 55
62 } // namespace 56 } // namespace
63 57
64 PPAPI_THUNK_EXPORT const PPB_PlatformVerification_Private_0_2* 58 PPAPI_THUNK_EXPORT const PPB_PlatformVerification_Private_0_2*
65 GetPPB_PlatformVerification_Private_0_2_Thunk() { 59 GetPPB_PlatformVerification_Private_0_2_Thunk() {
66 return &g_ppb_platformverification_private_thunk_0_2; 60 return &g_ppb_platformverification_private_thunk_0_2;
67 } 61 }
68 62
69 } // namespace thunk 63 } // namespace thunk
70 } // namespace ppapi 64 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_output_protection_private_thunk.cc ('k') | ppapi/thunk/ppb_printing_dev_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698