| OLD | NEW |
| 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 modified Fri Nov 1 | 5 // From private/ppb_platform_verification_private.idl modified Wed Jan 27 |
| 6 // 16:12:12 2013. | 6 // 17:10:16 2016. |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "ppapi/c/pp_completion_callback.h" | 10 #include "ppapi/c/pp_completion_callback.h" |
| 11 #include "ppapi/c/pp_errors.h" | 11 #include "ppapi/c/pp_errors.h" |
| 12 #include "ppapi/c/private/ppb_platform_verification_private.h" | 12 #include "ppapi/c/private/ppb_platform_verification_private.h" |
| 13 #include "ppapi/shared_impl/tracked_callback.h" | 13 #include "ppapi/shared_impl/tracked_callback.h" |
| 14 #include "ppapi/thunk/enter.h" | 14 #include "ppapi/thunk/enter.h" |
| 15 #include "ppapi/thunk/ppapi_thunk_export.h" | 15 #include "ppapi/thunk/ppapi_thunk_export.h" |
| 16 #include "ppapi/thunk/ppb_platform_verification_api.h" | 16 #include "ppapi/thunk/ppb_platform_verification_api.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 44 VLOG(4) << "PPB_PlatformVerification_Private::ChallengePlatform()"; | 44 VLOG(4) << "PPB_PlatformVerification_Private::ChallengePlatform()"; |
| 45 EnterResource<PPB_PlatformVerification_API> enter(instance, callback, true); | 45 EnterResource<PPB_PlatformVerification_API> enter(instance, callback, true); |
| 46 if (enter.failed()) | 46 if (enter.failed()) |
| 47 return enter.retval(); | 47 return enter.retval(); |
| 48 return enter.SetResult(enter.object()->ChallengePlatform( | 48 return enter.SetResult(enter.object()->ChallengePlatform( |
| 49 service_id, challenge, signed_data, signed_data_signature, | 49 service_id, challenge, signed_data, signed_data_signature, |
| 50 platform_key_certificate, enter.callback())); | 50 platform_key_certificate, enter.callback())); |
| 51 } | 51 } |
| 52 | 52 |
| 53 const PPB_PlatformVerification_Private_0_2 | 53 const PPB_PlatformVerification_Private_0_2 |
| 54 g_ppb_platformverification_private_thunk_0_2 = {&Create, | 54 g_ppb_platformverification_private_thunk_0_2 = { |
| 55 &IsPlatformVerification, | 55 &Create, &IsPlatformVerification, &ChallengePlatform}; |
| 56 &ChallengePlatform}; | |
| 57 | 56 |
| 58 } // namespace | 57 } // namespace |
| 59 | 58 |
| 60 PPAPI_THUNK_EXPORT const PPB_PlatformVerification_Private_0_2* | 59 PPAPI_THUNK_EXPORT const PPB_PlatformVerification_Private_0_2* |
| 61 GetPPB_PlatformVerification_Private_0_2_Thunk() { | 60 GetPPB_PlatformVerification_Private_0_2_Thunk() { |
| 62 return &g_ppb_platformverification_private_thunk_0_2; | 61 return &g_ppb_platformverification_private_thunk_0_2; |
| 63 } | 62 } |
| 64 | 63 |
| 65 } // namespace thunk | 64 } // namespace thunk |
| 66 } // namespace ppapi | 65 } // namespace ppapi |
| OLD | NEW |