| 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_output_protection_private.idl, | 5 // From private/ppb_output_protection_private.idl, |
| 6 // modified Thu Aug 29 13:39:04 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_output_protection_private.h" | 10 #include "ppapi/c/private/ppb_output_protection_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_output_protection_api.h" | 14 #include "ppapi/thunk/ppb_output_protection_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_OutputProtection_Private::Create()"; | 22 VLOG(4) << "PPB_OutputProtection_Private::Create()"; |
| 25 EnterResourceCreation enter(instance); | 23 EnterResourceCreation enter(instance); |
| 26 if (enter.failed()) | 24 if (enter.failed()) |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 const PPB_OutputProtection_Private_0_1 | 60 const PPB_OutputProtection_Private_0_1 |
| 63 g_ppb_outputprotection_private_thunk_0_1 = { | 61 g_ppb_outputprotection_private_thunk_0_1 = { |
| 64 &Create, | 62 &Create, |
| 65 &IsOutputProtection, | 63 &IsOutputProtection, |
| 66 &QueryStatus, | 64 &QueryStatus, |
| 67 &EnableProtection | 65 &EnableProtection |
| 68 }; | 66 }; |
| 69 | 67 |
| 70 } // namespace | 68 } // namespace |
| 71 | 69 |
| 72 const PPB_OutputProtection_Private_0_1* | 70 PPAPI_THUNK_EXPORT const PPB_OutputProtection_Private_0_1* |
| 73 GetPPB_OutputProtection_Private_0_1_Thunk() { | 71 GetPPB_OutputProtection_Private_0_1_Thunk() { |
| 74 return &g_ppb_outputprotection_private_thunk_0_1; | 72 return &g_ppb_outputprotection_private_thunk_0_1; |
| 75 } | 73 } |
| 76 | 74 |
| 77 } // namespace thunk | 75 } // namespace thunk |
| 78 } // namespace ppapi | 76 } // namespace ppapi |
| OLD | NEW |