| 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, | 5 // From private/ppb_platform_verification_private.idl, |
| 6 // modified Fri Oct 18 15:02:09 2013. | 6 // modified Thu Oct 31 12:30:06 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/ppb_instance_api.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 #include "ppapi/thunk/resource_creation_api.h" | |
| 16 #include "ppapi/thunk/thunk.h" | |
| 17 | 15 |
| 18 namespace ppapi { | 16 namespace ppapi { |
| 19 namespace thunk { | 17 namespace thunk { |
| 20 | 18 |
| 21 namespace { | 19 namespace { |
| 22 | 20 |
| 23 PP_Resource Create(PP_Instance instance) { | 21 PP_Resource Create(PP_Instance instance) { |
| 24 VLOG(4) << "PPB_PlatformVerification_Private::Create()"; | 22 VLOG(4) << "PPB_PlatformVerification_Private::Create()"; |
| 25 EnterResourceCreation enter(instance); | 23 EnterResourceCreation enter(instance); |
| 26 if (enter.failed()) | 24 if (enter.failed()) |
| (...skipping 29 matching lines...) Expand all Loading... |
| 56 | 54 |
| 57 const PPB_PlatformVerification_Private_0_2 | 55 const PPB_PlatformVerification_Private_0_2 |
| 58 g_ppb_platformverification_private_thunk_0_2 = { | 56 g_ppb_platformverification_private_thunk_0_2 = { |
| 59 &Create, | 57 &Create, |
| 60 &IsPlatformVerification, | 58 &IsPlatformVerification, |
| 61 &ChallengePlatform | 59 &ChallengePlatform |
| 62 }; | 60 }; |
| 63 | 61 |
| 64 } // namespace | 62 } // namespace |
| 65 | 63 |
| 66 const PPB_PlatformVerification_Private_0_2* | 64 PPAPI_THUNK_EXPORT const PPB_PlatformVerification_Private_0_2* |
| 67 GetPPB_PlatformVerification_Private_0_2_Thunk() { | 65 GetPPB_PlatformVerification_Private_0_2_Thunk() { |
| 68 return &g_ppb_platformverification_private_thunk_0_2; | 66 return &g_ppb_platformverification_private_thunk_0_2; |
| 69 } | 67 } |
| 70 | 68 |
| 71 } // namespace thunk | 69 } // namespace thunk |
| 72 } // namespace ppapi | 70 } // namespace ppapi |
| OLD | NEW |