| 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 modified Fri Nov 1 16:12:12 | 5 // From private/ppb_output_protection_private.idl modified Wed Jan 27 17:10:16 |
| 6 // 2013. | 6 // 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_output_protection_private.h" | 12 #include "ppapi/c/private/ppb_output_protection_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_output_protection_api.h" | 16 #include "ppapi/thunk/ppb_output_protection_api.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 struct PP_CompletionCallback callback) { | 51 struct PP_CompletionCallback callback) { |
| 52 VLOG(4) << "PPB_OutputProtection_Private::EnableProtection()"; | 52 VLOG(4) << "PPB_OutputProtection_Private::EnableProtection()"; |
| 53 EnterResource<PPB_OutputProtection_API> enter(resource, callback, true); | 53 EnterResource<PPB_OutputProtection_API> enter(resource, callback, true); |
| 54 if (enter.failed()) | 54 if (enter.failed()) |
| 55 return enter.retval(); | 55 return enter.retval(); |
| 56 return enter.SetResult(enter.object()->EnableProtection( | 56 return enter.SetResult(enter.object()->EnableProtection( |
| 57 desired_protection_mask, enter.callback())); | 57 desired_protection_mask, enter.callback())); |
| 58 } | 58 } |
| 59 | 59 |
| 60 const PPB_OutputProtection_Private_0_1 | 60 const PPB_OutputProtection_Private_0_1 |
| 61 g_ppb_outputprotection_private_thunk_0_1 = {&Create, | 61 g_ppb_outputprotection_private_thunk_0_1 = { |
| 62 &IsOutputProtection, | 62 &Create, &IsOutputProtection, &QueryStatus, &EnableProtection}; |
| 63 &QueryStatus, | |
| 64 &EnableProtection}; | |
| 65 | 63 |
| 66 } // namespace | 64 } // namespace |
| 67 | 65 |
| 68 PPAPI_THUNK_EXPORT const PPB_OutputProtection_Private_0_1* | 66 PPAPI_THUNK_EXPORT const PPB_OutputProtection_Private_0_1* |
| 69 GetPPB_OutputProtection_Private_0_1_Thunk() { | 67 GetPPB_OutputProtection_Private_0_1_Thunk() { |
| 70 return &g_ppb_outputprotection_private_thunk_0_1; | 68 return &g_ppb_outputprotection_private_thunk_0_1; |
| 71 } | 69 } |
| 72 | 70 |
| 73 } // namespace thunk | 71 } // namespace thunk |
| 74 } // namespace ppapi | 72 } // namespace ppapi |
| OLD | NEW |