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 Fri Jun 13 10:40:42 |
6 // 2013. | 6 // 2014. |
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/ppapi_thunk_export.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 | 15 |
16 namespace ppapi { | 16 namespace ppapi { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 struct PP_CompletionCallback callback) { | 49 struct PP_CompletionCallback callback) { |
50 VLOG(4) << "PPB_OutputProtection_Private::EnableProtection()"; | 50 VLOG(4) << "PPB_OutputProtection_Private::EnableProtection()"; |
51 EnterResource<PPB_OutputProtection_API> enter(resource, callback, true); | 51 EnterResource<PPB_OutputProtection_API> enter(resource, callback, true); |
52 if (enter.failed()) | 52 if (enter.failed()) |
53 return enter.retval(); | 53 return enter.retval(); |
54 return enter.SetResult(enter.object()->EnableProtection( | 54 return enter.SetResult(enter.object()->EnableProtection( |
55 desired_protection_mask, enter.callback())); | 55 desired_protection_mask, enter.callback())); |
56 } | 56 } |
57 | 57 |
58 const PPB_OutputProtection_Private_0_1 | 58 const PPB_OutputProtection_Private_0_1 |
59 g_ppb_outputprotection_private_thunk_0_1 = {&Create, | 59 g_ppb_outputprotection_private_thunk_0_1 = { |
60 &IsOutputProtection, | 60 &Create, &IsOutputProtection, &QueryStatus, &EnableProtection}; |
61 &QueryStatus, | |
62 &EnableProtection}; | |
63 | 61 |
64 } // namespace | 62 } // namespace |
65 | 63 |
66 PPAPI_THUNK_EXPORT const PPB_OutputProtection_Private_0_1* | 64 PPAPI_THUNK_EXPORT const PPB_OutputProtection_Private_0_1* |
67 GetPPB_OutputProtection_Private_0_1_Thunk() { | 65 GetPPB_OutputProtection_Private_0_1_Thunk() { |
68 return &g_ppb_outputprotection_private_thunk_0_1; | 66 return &g_ppb_outputprotection_private_thunk_0_1; |
69 } | 67 } |
70 | 68 |
71 } // namespace thunk | 69 } // namespace thunk |
72 } // namespace ppapi | 70 } // namespace ppapi |
OLD | NEW |