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

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

Issue 1088763002: Plugin Power Saver: Add comprehensive browser tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0260-plugins-overhaul-prerender-tests
Patch Set: Created 5 years, 8 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 (c) 2015 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2015 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 4115 matching lines...) Expand 10 before | Expand all | Expand 10 after
4126 static uint32_t Pnacl_M33_PPB_Testing_Private_GetLiveObjectsForInstance(PP_Insta nce instance) { 4126 static uint32_t Pnacl_M33_PPB_Testing_Private_GetLiveObjectsForInstance(PP_Insta nce instance) {
4127 const struct PPB_Testing_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_Testing_Pr ivate_1_0.real_iface; 4127 const struct PPB_Testing_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_Testing_Pr ivate_1_0.real_iface;
4128 return iface->GetLiveObjectsForInstance(instance); 4128 return iface->GetLiveObjectsForInstance(instance);
4129 } 4129 }
4130 4130
4131 static PP_Bool Pnacl_M33_PPB_Testing_Private_IsOutOfProcess(void) { 4131 static PP_Bool Pnacl_M33_PPB_Testing_Private_IsOutOfProcess(void) {
4132 const struct PPB_Testing_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_Testing_Pr ivate_1_0.real_iface; 4132 const struct PPB_Testing_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_Testing_Pr ivate_1_0.real_iface;
4133 return iface->IsOutOfProcess(); 4133 return iface->IsOutOfProcess();
4134 } 4134 }
4135 4135
4136 static PP_Bool Pnacl_M33_PPB_Testing_Private_IsPeripheral(PP_Instance instance) {
4137 const struct PPB_Testing_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_Testing_Pr ivate_1_0.real_iface;
4138 return iface->IsPeripheral(instance);
4139 }
4140
4136 static void Pnacl_M33_PPB_Testing_Private_SimulateInputEvent(PP_Instance instanc e, PP_Resource input_event) { 4141 static void Pnacl_M33_PPB_Testing_Private_SimulateInputEvent(PP_Instance instanc e, PP_Resource input_event) {
4137 const struct PPB_Testing_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_Testing_Pr ivate_1_0.real_iface; 4142 const struct PPB_Testing_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_Testing_Pr ivate_1_0.real_iface;
4138 iface->SimulateInputEvent(instance, input_event); 4143 iface->SimulateInputEvent(instance, input_event);
4139 } 4144 }
4140 4145
4141 static void Pnacl_M33_PPB_Testing_Private_GetDocumentURL(struct PP_Var* _struct_ result, PP_Instance instance, struct PP_URLComponents_Dev* components) { 4146 static void Pnacl_M33_PPB_Testing_Private_GetDocumentURL(struct PP_Var* _struct_ result, PP_Instance instance, struct PP_URLComponents_Dev* components) {
4142 const struct PPB_Testing_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_Testing_Pr ivate_1_0.real_iface; 4147 const struct PPB_Testing_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_Testing_Pr ivate_1_0.real_iface;
4143 *_struct_result = iface->GetDocumentURL(instance, components); 4148 *_struct_result = iface->GetDocumentURL(instance, components);
4144 } 4149 }
4145 4150
(...skipping 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after
5621 .Disconnect = (void (*)(PP_Resource tcp_socket))&Pnacl_M27_PPB_TCPSocket_Pri vate_Disconnect, 5626 .Disconnect = (void (*)(PP_Resource tcp_socket))&Pnacl_M27_PPB_TCPSocket_Pri vate_Disconnect,
5622 .SetOption = (int32_t (*)(PP_Resource tcp_socket, PP_TCPSocketOption_Private name, struct PP_Var value, struct PP_CompletionCallback callback))&Pnacl_M27_PP B_TCPSocket_Private_SetOption 5627 .SetOption = (int32_t (*)(PP_Resource tcp_socket, PP_TCPSocketOption_Private name, struct PP_Var value, struct PP_CompletionCallback callback))&Pnacl_M27_PP B_TCPSocket_Private_SetOption
5623 }; 5628 };
5624 5629
5625 static const struct PPB_Testing_Private_1_0 Pnacl_Wrappers_PPB_Testing_Private_1 _0 = { 5630 static const struct PPB_Testing_Private_1_0 Pnacl_Wrappers_PPB_Testing_Private_1 _0 = {
5626 .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, 5631 .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,
5627 .RunMessageLoop = (void (*)(PP_Instance instance))&Pnacl_M33_PPB_Testing_Pri vate_RunMessageLoop, 5632 .RunMessageLoop = (void (*)(PP_Instance instance))&Pnacl_M33_PPB_Testing_Pri vate_RunMessageLoop,
5628 .QuitMessageLoop = (void (*)(PP_Instance instance))&Pnacl_M33_PPB_Testing_Pr ivate_QuitMessageLoop, 5633 .QuitMessageLoop = (void (*)(PP_Instance instance))&Pnacl_M33_PPB_Testing_Pr ivate_QuitMessageLoop,
5629 .GetLiveObjectsForInstance = (uint32_t (*)(PP_Instance instance))&Pnacl_M33_ PPB_Testing_Private_GetLiveObjectsForInstance, 5634 .GetLiveObjectsForInstance = (uint32_t (*)(PP_Instance instance))&Pnacl_M33_ PPB_Testing_Private_GetLiveObjectsForInstance,
5630 .IsOutOfProcess = (PP_Bool (*)(void))&Pnacl_M33_PPB_Testing_Private_IsOutOfP rocess, 5635 .IsOutOfProcess = (PP_Bool (*)(void))&Pnacl_M33_PPB_Testing_Private_IsOutOfP rocess,
5636 .IsPeripheral = (PP_Bool (*)(PP_Instance instance))&Pnacl_M33_PPB_Testing_Pr ivate_IsPeripheral,
5631 .SimulateInputEvent = (void (*)(PP_Instance instance, PP_Resource input_even t))&Pnacl_M33_PPB_Testing_Private_SimulateInputEvent, 5637 .SimulateInputEvent = (void (*)(PP_Instance instance, PP_Resource input_even t))&Pnacl_M33_PPB_Testing_Private_SimulateInputEvent,
5632 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp onents_Dev* components))&Pnacl_M33_PPB_Testing_Private_GetDocumentURL, 5638 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp onents_Dev* components))&Pnacl_M33_PPB_Testing_Private_GetDocumentURL,
5633 .GetLiveVars = (uint32_t (*)(struct PP_Var live_vars[], uint32_t array_size) )&Pnacl_M33_PPB_Testing_Private_GetLiveVars, 5639 .GetLiveVars = (uint32_t (*)(struct PP_Var live_vars[], uint32_t array_size) )&Pnacl_M33_PPB_Testing_Private_GetLiveVars,
5634 .SetMinimumArrayBufferSizeForShmem = (void (*)(PP_Instance instance, uint32_ t threshold))&Pnacl_M33_PPB_Testing_Private_SetMinimumArrayBufferSizeForShmem, 5640 .SetMinimumArrayBufferSizeForShmem = (void (*)(PP_Instance instance, uint32_ t threshold))&Pnacl_M33_PPB_Testing_Private_SetMinimumArrayBufferSizeForShmem,
5635 .RunV8GC = (void (*)(PP_Instance instance))&Pnacl_M33_PPB_Testing_Private_Ru nV8GC 5641 .RunV8GC = (void (*)(PP_Instance instance))&Pnacl_M33_PPB_Testing_Private_Ru nV8GC
5636 }; 5642 };
5637 5643
5638 static const struct PPB_UDPSocket_Private_0_2 Pnacl_Wrappers_PPB_UDPSocket_Priva te_0_2 = { 5644 static const struct PPB_UDPSocket_Private_0_2 Pnacl_Wrappers_PPB_UDPSocket_Priva te_0_2 = {
5639 .Create = (PP_Resource (*)(PP_Instance instance_id))&Pnacl_M17_PPB_UDPSocket _Private_Create, 5645 .Create = (PP_Resource (*)(PP_Instance instance_id))&Pnacl_M17_PPB_UDPSocket _Private_Create,
5640 .IsUDPSocket = (PP_Bool (*)(PP_Resource resource_id))&Pnacl_M17_PPB_UDPSocke t_Private_IsUDPSocket, 5646 .IsUDPSocket = (PP_Bool (*)(PP_Resource resource_id))&Pnacl_M17_PPB_UDPSocke t_Private_IsUDPSocket,
(...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
6567 6573
6568 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6574 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6569 if (wrapper->real_iface == NULL) { 6575 if (wrapper->real_iface == NULL) {
6570 const void *iface = (*__real_PPPGetInterface)(name); 6576 const void *iface = (*__real_PPPGetInterface)(name);
6571 if (NULL == iface) return NULL; 6577 if (NULL == iface) return NULL;
6572 wrapper->real_iface = iface; 6578 wrapper->real_iface = iface;
6573 } 6579 }
6574 6580
6575 return wrapper->wrapped_iface; 6581 return wrapper->wrapped_iface;
6576 } 6582 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698