Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: ppapi/thunk/ppb_output_protection_private_thunk.cc

Issue 1778683003: Ran ppapi/generators/generator.py (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 Tue Mar 25 14:43:09
6 // 2013. 6 // 2014.
7
8 #include <stdint.h>
9 7
10 #include "ppapi/c/pp_completion_callback.h" 8 #include "ppapi/c/pp_completion_callback.h"
11 #include "ppapi/c/pp_errors.h" 9 #include "ppapi/c/pp_errors.h"
12 #include "ppapi/c/private/ppb_output_protection_private.h" 10 #include "ppapi/c/private/ppb_output_protection_private.h"
13 #include "ppapi/shared_impl/tracked_callback.h" 11 #include "ppapi/shared_impl/tracked_callback.h"
14 #include "ppapi/thunk/enter.h" 12 #include "ppapi/thunk/enter.h"
15 #include "ppapi/thunk/ppapi_thunk_export.h" 13 #include "ppapi/thunk/ppapi_thunk_export.h"
16 #include "ppapi/thunk/ppb_output_protection_api.h" 14 #include "ppapi/thunk/ppb_output_protection_api.h"
17 15
18 namespace ppapi { 16 namespace ppapi {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 struct PP_CompletionCallback callback) { 49 struct PP_CompletionCallback callback) {
52 VLOG(4) << "PPB_OutputProtection_Private::EnableProtection()"; 50 VLOG(4) << "PPB_OutputProtection_Private::EnableProtection()";
53 EnterResource<PPB_OutputProtection_API> enter(resource, callback, true); 51 EnterResource<PPB_OutputProtection_API> enter(resource, callback, true);
54 if (enter.failed()) 52 if (enter.failed())
55 return enter.retval(); 53 return enter.retval();
56 return enter.SetResult(enter.object()->EnableProtection( 54 return enter.SetResult(enter.object()->EnableProtection(
57 desired_protection_mask, enter.callback())); 55 desired_protection_mask, enter.callback()));
58 } 56 }
59 57
60 const PPB_OutputProtection_Private_0_1 58 const PPB_OutputProtection_Private_0_1
61 g_ppb_outputprotection_private_thunk_0_1 = {&Create, 59 g_ppb_outputprotection_private_thunk_0_1 = {
62 &IsOutputProtection, 60 &Create, &IsOutputProtection, &QueryStatus, &EnableProtection};
63 &QueryStatus,
64 &EnableProtection};
65 61
66 } // namespace 62 } // namespace
67 63
68 PPAPI_THUNK_EXPORT const PPB_OutputProtection_Private_0_1* 64 PPAPI_THUNK_EXPORT const PPB_OutputProtection_Private_0_1*
69 GetPPB_OutputProtection_Private_0_1_Thunk() { 65 GetPPB_OutputProtection_Private_0_1_Thunk() {
70 return &g_ppb_outputprotection_private_thunk_0_1; 66 return &g_ppb_outputprotection_private_thunk_0_1;
71 } 67 }
72 68
73 } // namespace thunk 69 } // namespace thunk
74 } // namespace ppapi 70 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/thunk/ppb_network_proxy_thunk.cc ('k') | ppapi/thunk/ppb_platform_verification_private_thunk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698