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

Side by Side Diff: ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c

Issue 400823004: gin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/c/private/ppb_testing_private.h ('k') | ppapi/proxy/ppb_testing_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2014 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 5
6 /* NOTE: this is auto-generated from IDL */ 6 /* NOTE: this is auto-generated from IDL */
7 #include "ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.h" 7 #include "ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.h"
8 8
9 #include "ppapi/c/ppb.h" 9 #include "ppapi/c/ppb.h"
10 #include "ppapi/c/dev/ppb_audio_input_dev.h" 10 #include "ppapi/c/dev/ppb_audio_input_dev.h"
(...skipping 3971 matching lines...) Expand 10 before | Expand all | Expand 10 after
3982 static uint32_t Pnacl_M33_PPB_Testing_Private_GetLiveVars(struct PP_Var live_var s[], uint32_t array_size) { 3982 static uint32_t Pnacl_M33_PPB_Testing_Private_GetLiveVars(struct PP_Var live_var s[], uint32_t array_size) {
3983 const struct PPB_Testing_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_Testing_Pr ivate_1_0.real_iface; 3983 const struct PPB_Testing_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_Testing_Pr ivate_1_0.real_iface;
3984 return iface->GetLiveVars(live_vars, array_size); 3984 return iface->GetLiveVars(live_vars, array_size);
3985 } 3985 }
3986 3986
3987 static void Pnacl_M33_PPB_Testing_Private_SetMinimumArrayBufferSizeForShmem(PP_I nstance instance, uint32_t threshold) { 3987 static void Pnacl_M33_PPB_Testing_Private_SetMinimumArrayBufferSizeForShmem(PP_I nstance instance, uint32_t threshold) {
3988 const struct PPB_Testing_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_Testing_Pr ivate_1_0.real_iface; 3988 const struct PPB_Testing_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_Testing_Pr ivate_1_0.real_iface;
3989 iface->SetMinimumArrayBufferSizeForShmem(instance, threshold); 3989 iface->SetMinimumArrayBufferSizeForShmem(instance, threshold);
3990 } 3990 }
3991 3991
3992 static void Pnacl_M33_PPB_Testing_Private_RunV8GC(PP_Instance instance) {
3993 const struct PPB_Testing_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_Testing_Pr ivate_1_0.real_iface;
3994 iface->RunV8GC(instance);
3995 }
3996
3992 /* End wrapper methods for PPB_Testing_Private_1_0 */ 3997 /* End wrapper methods for PPB_Testing_Private_1_0 */
3993 3998
3994 /* Begin wrapper methods for PPB_UDPSocket_Private_0_2 */ 3999 /* Begin wrapper methods for PPB_UDPSocket_Private_0_2 */
3995 4000
3996 static PP_Resource Pnacl_M17_PPB_UDPSocket_Private_Create(PP_Instance instance_i d) { 4001 static PP_Resource Pnacl_M17_PPB_UDPSocket_Private_Create(PP_Instance instance_i d) {
3997 const struct PPB_UDPSocket_Private_0_2 *iface = Pnacl_WrapperInfo_PPB_UDPSocke t_Private_0_2.real_iface; 4002 const struct PPB_UDPSocket_Private_0_2 *iface = Pnacl_WrapperInfo_PPB_UDPSocke t_Private_0_2.real_iface;
3998 return iface->Create(instance_id); 4003 return iface->Create(instance_id);
3999 } 4004 }
4000 4005
4001 static PP_Bool Pnacl_M17_PPB_UDPSocket_Private_IsUDPSocket(PP_Resource resource_ id) { 4006 static PP_Bool Pnacl_M17_PPB_UDPSocket_Private_IsUDPSocket(PP_Resource resource_ id) {
(...skipping 1380 matching lines...) Expand 10 before | Expand all | Expand 10 after
5382 5387
5383 static const struct PPB_Testing_Private_1_0 Pnacl_Wrappers_PPB_Testing_Private_1 _0 = { 5388 static const struct PPB_Testing_Private_1_0 Pnacl_Wrappers_PPB_Testing_Private_1 _0 = {
5384 .ReadImageData = (PP_Bool (*)(PP_Resource device_context_2d, PP_Resource ima ge, const struct PP_Point* top_left))&Pnacl_M33_PPB_Testing_Private_ReadImageDat a, 5389 .ReadImageData = (PP_Bool (*)(PP_Resource device_context_2d, PP_Resource ima ge, const struct PP_Point* top_left))&Pnacl_M33_PPB_Testing_Private_ReadImageDat a,
5385 .RunMessageLoop = (void (*)(PP_Instance instance))&Pnacl_M33_PPB_Testing_Pri vate_RunMessageLoop, 5390 .RunMessageLoop = (void (*)(PP_Instance instance))&Pnacl_M33_PPB_Testing_Pri vate_RunMessageLoop,
5386 .QuitMessageLoop = (void (*)(PP_Instance instance))&Pnacl_M33_PPB_Testing_Pr ivate_QuitMessageLoop, 5391 .QuitMessageLoop = (void (*)(PP_Instance instance))&Pnacl_M33_PPB_Testing_Pr ivate_QuitMessageLoop,
5387 .GetLiveObjectsForInstance = (uint32_t (*)(PP_Instance instance))&Pnacl_M33_ PPB_Testing_Private_GetLiveObjectsForInstance, 5392 .GetLiveObjectsForInstance = (uint32_t (*)(PP_Instance instance))&Pnacl_M33_ PPB_Testing_Private_GetLiveObjectsForInstance,
5388 .IsOutOfProcess = (PP_Bool (*)(void))&Pnacl_M33_PPB_Testing_Private_IsOutOfP rocess, 5393 .IsOutOfProcess = (PP_Bool (*)(void))&Pnacl_M33_PPB_Testing_Private_IsOutOfP rocess,
5389 .SimulateInputEvent = (void (*)(PP_Instance instance, PP_Resource input_even t))&Pnacl_M33_PPB_Testing_Private_SimulateInputEvent, 5394 .SimulateInputEvent = (void (*)(PP_Instance instance, PP_Resource input_even t))&Pnacl_M33_PPB_Testing_Private_SimulateInputEvent,
5390 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp onents_Dev* components))&Pnacl_M33_PPB_Testing_Private_GetDocumentURL, 5395 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp onents_Dev* components))&Pnacl_M33_PPB_Testing_Private_GetDocumentURL,
5391 .GetLiveVars = (uint32_t (*)(struct PP_Var live_vars[], uint32_t array_size) )&Pnacl_M33_PPB_Testing_Private_GetLiveVars, 5396 .GetLiveVars = (uint32_t (*)(struct PP_Var live_vars[], uint32_t array_size) )&Pnacl_M33_PPB_Testing_Private_GetLiveVars,
5392 .SetMinimumArrayBufferSizeForShmem = (void (*)(PP_Instance instance, uint32_ t threshold))&Pnacl_M33_PPB_Testing_Private_SetMinimumArrayBufferSizeForShmem 5397 .SetMinimumArrayBufferSizeForShmem = (void (*)(PP_Instance instance, uint32_ t threshold))&Pnacl_M33_PPB_Testing_Private_SetMinimumArrayBufferSizeForShmem,
5398 .RunV8GC = (void (*)(PP_Instance instance))&Pnacl_M33_PPB_Testing_Private_Ru nV8GC
5393 }; 5399 };
5394 5400
5395 static const struct PPB_UDPSocket_Private_0_2 Pnacl_Wrappers_PPB_UDPSocket_Priva te_0_2 = { 5401 static const struct PPB_UDPSocket_Private_0_2 Pnacl_Wrappers_PPB_UDPSocket_Priva te_0_2 = {
5396 .Create = (PP_Resource (*)(PP_Instance instance_id))&Pnacl_M17_PPB_UDPSocket _Private_Create, 5402 .Create = (PP_Resource (*)(PP_Instance instance_id))&Pnacl_M17_PPB_UDPSocket _Private_Create,
5397 .IsUDPSocket = (PP_Bool (*)(PP_Resource resource_id))&Pnacl_M17_PPB_UDPSocke t_Private_IsUDPSocket, 5403 .IsUDPSocket = (PP_Bool (*)(PP_Resource resource_id))&Pnacl_M17_PPB_UDPSocke t_Private_IsUDPSocket,
5398 .Bind = (int32_t (*)(PP_Resource udp_socket, const struct PP_NetAddress_Priv ate* addr, struct PP_CompletionCallback callback))&Pnacl_M17_PPB_UDPSocket_Priva te_Bind, 5404 .Bind = (int32_t (*)(PP_Resource udp_socket, const struct PP_NetAddress_Priv ate* addr, struct PP_CompletionCallback callback))&Pnacl_M17_PPB_UDPSocket_Priva te_Bind,
5399 .RecvFrom = (int32_t (*)(PP_Resource udp_socket, char* buffer, int32_t num_b ytes, struct PP_CompletionCallback callback))&Pnacl_M17_PPB_UDPSocket_Private_Re cvFrom, 5405 .RecvFrom = (int32_t (*)(PP_Resource udp_socket, char* buffer, int32_t num_b ytes, struct PP_CompletionCallback callback))&Pnacl_M17_PPB_UDPSocket_Private_Re cvFrom,
5400 .GetRecvFromAddress = (PP_Bool (*)(PP_Resource udp_socket, struct PP_NetAddr ess_Private* addr))&Pnacl_M17_PPB_UDPSocket_Private_GetRecvFromAddress, 5406 .GetRecvFromAddress = (PP_Bool (*)(PP_Resource udp_socket, struct PP_NetAddr ess_Private* addr))&Pnacl_M17_PPB_UDPSocket_Private_GetRecvFromAddress,
5401 .SendTo = (int32_t (*)(PP_Resource udp_socket, const char* buffer, int32_t n um_bytes, const struct PP_NetAddress_Private* addr, struct PP_CompletionCallback callback))&Pnacl_M17_PPB_UDPSocket_Private_SendTo, 5407 .SendTo = (int32_t (*)(PP_Resource udp_socket, const char* buffer, int32_t n um_bytes, const struct PP_NetAddress_Private* addr, struct PP_CompletionCallback callback))&Pnacl_M17_PPB_UDPSocket_Private_SendTo,
5402 .Close = (void (*)(PP_Resource udp_socket))&Pnacl_M17_PPB_UDPSocket_Private_ Close 5408 .Close = (void (*)(PP_Resource udp_socket))&Pnacl_M17_PPB_UDPSocket_Private_ Close
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after
6292 6298
6293 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6299 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6294 if (wrapper->real_iface == NULL) { 6300 if (wrapper->real_iface == NULL) {
6295 const void *iface = (*__real_PPPGetInterface)(name); 6301 const void *iface = (*__real_PPPGetInterface)(name);
6296 if (NULL == iface) return NULL; 6302 if (NULL == iface) return NULL;
6297 wrapper->real_iface = iface; 6303 wrapper->real_iface = iface;
6298 } 6304 }
6299 6305
6300 return wrapper->wrapped_iface; 6306 return wrapper->wrapped_iface;
6301 } 6307 }
OLDNEW
« no previous file with comments | « ppapi/c/private/ppb_testing_private.h ('k') | ppapi/proxy/ppb_testing_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698