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

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

Issue 1114623002: Plugin Power Saver: Make PPS work well with prerendered pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « ppapi/c/private/ppb_testing_private.h ('k') | ppapi/proxy/ppapi_messages.h » ('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) 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) { 4136 static void Pnacl_M33_PPB_Testing_Private_PostPowerSaverStatus(PP_Instance insta nce) {
4137 const struct PPB_Testing_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_Testing_Pr ivate_1_0.real_iface; 4137 const struct PPB_Testing_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_Testing_Pr ivate_1_0.real_iface;
4138 return iface->IsPeripheral(instance); 4138 iface->PostPowerSaverStatus(instance);
4139 }
4140
4141 static void Pnacl_M33_PPB_Testing_Private_SubscribeToPowerSaverNotifications(PP_ Instance instance) {
4142 const struct PPB_Testing_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_Testing_Pr ivate_1_0.real_iface;
4143 iface->SubscribeToPowerSaverNotifications(instance);
4139 } 4144 }
4140 4145
4141 static void Pnacl_M33_PPB_Testing_Private_SimulateInputEvent(PP_Instance instanc e, PP_Resource input_event) { 4146 static void Pnacl_M33_PPB_Testing_Private_SimulateInputEvent(PP_Instance instanc e, PP_Resource input_event) {
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 iface->SimulateInputEvent(instance, input_event); 4148 iface->SimulateInputEvent(instance, input_event);
4144 } 4149 }
4145 4150
4146 static void Pnacl_M33_PPB_Testing_Private_GetDocumentURL(struct PP_Var* _struct_ result, PP_Instance instance, struct PP_URLComponents_Dev* components) { 4151 static void Pnacl_M33_PPB_Testing_Private_GetDocumentURL(struct PP_Var* _struct_ result, PP_Instance instance, struct PP_URLComponents_Dev* components) {
4147 const struct PPB_Testing_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_Testing_Pr ivate_1_0.real_iface; 4152 const struct PPB_Testing_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_Testing_Pr ivate_1_0.real_iface;
4148 *_struct_result = iface->GetDocumentURL(instance, components); 4153 *_struct_result = iface->GetDocumentURL(instance, components);
(...skipping 1477 matching lines...) Expand 10 before | Expand all | Expand 10 after
5626 .Disconnect = (void (*)(PP_Resource tcp_socket))&Pnacl_M27_PPB_TCPSocket_Pri vate_Disconnect, 5631 .Disconnect = (void (*)(PP_Resource tcp_socket))&Pnacl_M27_PPB_TCPSocket_Pri vate_Disconnect,
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 5632 .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
5628 }; 5633 };
5629 5634
5630 static const struct PPB_Testing_Private_1_0 Pnacl_Wrappers_PPB_Testing_Private_1 _0 = { 5635 static const struct PPB_Testing_Private_1_0 Pnacl_Wrappers_PPB_Testing_Private_1 _0 = {
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, 5636 .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,
5632 .RunMessageLoop = (void (*)(PP_Instance instance))&Pnacl_M33_PPB_Testing_Pri vate_RunMessageLoop, 5637 .RunMessageLoop = (void (*)(PP_Instance instance))&Pnacl_M33_PPB_Testing_Pri vate_RunMessageLoop,
5633 .QuitMessageLoop = (void (*)(PP_Instance instance))&Pnacl_M33_PPB_Testing_Pr ivate_QuitMessageLoop, 5638 .QuitMessageLoop = (void (*)(PP_Instance instance))&Pnacl_M33_PPB_Testing_Pr ivate_QuitMessageLoop,
5634 .GetLiveObjectsForInstance = (uint32_t (*)(PP_Instance instance))&Pnacl_M33_ PPB_Testing_Private_GetLiveObjectsForInstance, 5639 .GetLiveObjectsForInstance = (uint32_t (*)(PP_Instance instance))&Pnacl_M33_ PPB_Testing_Private_GetLiveObjectsForInstance,
5635 .IsOutOfProcess = (PP_Bool (*)(void))&Pnacl_M33_PPB_Testing_Private_IsOutOfP rocess, 5640 .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, 5641 .PostPowerSaverStatus = (void (*)(PP_Instance instance))&Pnacl_M33_PPB_Testi ng_Private_PostPowerSaverStatus,
5642 .SubscribeToPowerSaverNotifications = (void (*)(PP_Instance instance))&Pnacl _M33_PPB_Testing_Private_SubscribeToPowerSaverNotifications,
5637 .SimulateInputEvent = (void (*)(PP_Instance instance, PP_Resource input_even t))&Pnacl_M33_PPB_Testing_Private_SimulateInputEvent, 5643 .SimulateInputEvent = (void (*)(PP_Instance instance, PP_Resource input_even t))&Pnacl_M33_PPB_Testing_Private_SimulateInputEvent,
5638 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp onents_Dev* components))&Pnacl_M33_PPB_Testing_Private_GetDocumentURL, 5644 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp onents_Dev* components))&Pnacl_M33_PPB_Testing_Private_GetDocumentURL,
5639 .GetLiveVars = (uint32_t (*)(struct PP_Var live_vars[], uint32_t array_size) )&Pnacl_M33_PPB_Testing_Private_GetLiveVars, 5645 .GetLiveVars = (uint32_t (*)(struct PP_Var live_vars[], uint32_t array_size) )&Pnacl_M33_PPB_Testing_Private_GetLiveVars,
5640 .SetMinimumArrayBufferSizeForShmem = (void (*)(PP_Instance instance, uint32_ t threshold))&Pnacl_M33_PPB_Testing_Private_SetMinimumArrayBufferSizeForShmem, 5646 .SetMinimumArrayBufferSizeForShmem = (void (*)(PP_Instance instance, uint32_ t threshold))&Pnacl_M33_PPB_Testing_Private_SetMinimumArrayBufferSizeForShmem,
5641 .RunV8GC = (void (*)(PP_Instance instance))&Pnacl_M33_PPB_Testing_Private_Ru nV8GC 5647 .RunV8GC = (void (*)(PP_Instance instance))&Pnacl_M33_PPB_Testing_Private_Ru nV8GC
5642 }; 5648 };
5643 5649
5644 static const struct PPB_UDPSocket_Private_0_2 Pnacl_Wrappers_PPB_UDPSocket_Priva te_0_2 = { 5650 static const struct PPB_UDPSocket_Private_0_2 Pnacl_Wrappers_PPB_UDPSocket_Priva te_0_2 = {
5645 .Create = (PP_Resource (*)(PP_Instance instance_id))&Pnacl_M17_PPB_UDPSocket _Private_Create, 5651 .Create = (PP_Resource (*)(PP_Instance instance_id))&Pnacl_M17_PPB_UDPSocket _Private_Create,
5646 .IsUDPSocket = (PP_Bool (*)(PP_Resource resource_id))&Pnacl_M17_PPB_UDPSocke t_Private_IsUDPSocket, 5652 .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
6573 6579
6574 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */ 6580 /* Initialize the real_iface if it hasn't been. The wrapper depends on it. */
6575 if (wrapper->real_iface == NULL) { 6581 if (wrapper->real_iface == NULL) {
6576 const void *iface = (*__real_PPPGetInterface)(name); 6582 const void *iface = (*__real_PPPGetInterface)(name);
6577 if (NULL == iface) return NULL; 6583 if (NULL == iface) return NULL;
6578 wrapper->real_iface = iface; 6584 wrapper->real_iface = iface;
6579 } 6585 }
6580 6586
6581 return wrapper->wrapped_iface; 6587 return wrapper->wrapped_iface;
6582 } 6588 }
OLDNEW
« no previous file with comments | « ppapi/c/private/ppb_testing_private.h ('k') | ppapi/proxy/ppapi_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698