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

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

Issue 23458015: Handle cache-control:no-store header in PNaCl translation cache (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix iterator use Created 7 years, 3 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/native_client/src/trusted/plugin/pnacl_coordinator.cc ('k') | no next file » | 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) 2013 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 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 5
6 /* NOTE: this is auto-generated from IDL */ 6 /* NOTE: this is auto-generated from IDL */
7 #include "ppapi/generators/pnacl_shim.h" 7 #include "ppapi/generators/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 2830 matching lines...) Expand 10 before | Expand all | Expand 10 after
2841 static PP_FileHandle Pnacl_M25_PPB_NaCl_Private_GetReadonlyPnaclFd(const char* f ilename) { 2841 static PP_FileHandle Pnacl_M25_PPB_NaCl_Private_GetReadonlyPnaclFd(const char* f ilename) {
2842 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 2842 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
2843 return iface->GetReadonlyPnaclFd(filename); 2843 return iface->GetReadonlyPnaclFd(filename);
2844 } 2844 }
2845 2845
2846 static PP_FileHandle Pnacl_M25_PPB_NaCl_Private_CreateTemporaryFile(PP_Instance instance) { 2846 static PP_FileHandle Pnacl_M25_PPB_NaCl_Private_CreateTemporaryFile(PP_Instance instance) {
2847 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 2847 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
2848 return iface->CreateTemporaryFile(instance); 2848 return iface->CreateTemporaryFile(instance);
2849 } 2849 }
2850 2850
2851 static int32_t Pnacl_M25_PPB_NaCl_Private_GetNexeFd(PP_Instance instance, const char* pexe_url, uint32_t abi_version, uint32_t opt_level, const char* last_modif ied, const char* etag, PP_Bool* is_hit, PP_FileHandle* nexe_handle, struct PP_Co mpletionCallback* callback) { 2851 static int32_t Pnacl_M25_PPB_NaCl_Private_GetNexeFd(PP_Instance instance, const char* pexe_url, uint32_t abi_version, uint32_t opt_level, const char* last_modif ied, const char* etag, PP_Bool has_no_store_header, PP_Bool* is_hit, PP_FileHand le* nexe_handle, struct PP_CompletionCallback* callback) {
2852 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 2852 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
2853 return iface->GetNexeFd(instance, pexe_url, abi_version, opt_level, last_modif ied, etag, is_hit, nexe_handle, *callback); 2853 return iface->GetNexeFd(instance, pexe_url, abi_version, opt_level, last_modif ied, etag, has_no_store_header, is_hit, nexe_handle, *callback);
2854 } 2854 }
2855 2855
2856 static void Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished(PP_Instance ins tance, PP_Bool success) { 2856 static void Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished(PP_Instance ins tance, PP_Bool success) {
2857 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 2857 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
2858 iface->ReportTranslationFinished(instance, success); 2858 iface->ReportTranslationFinished(instance, success);
2859 } 2859 }
2860 2860
2861 static PP_Bool Pnacl_M25_PPB_NaCl_Private_IsOffTheRecord(void) { 2861 static PP_Bool Pnacl_M25_PPB_NaCl_Private_IsOffTheRecord(void) {
2862 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface; 2862 const struct PPB_NaCl_Private_1_0 *iface = Pnacl_WrapperInfo_PPB_NaCl_Private_ 1_0.real_iface;
2863 return iface->IsOffTheRecord(); 2863 return iface->IsOffTheRecord();
(...skipping 1813 matching lines...) Expand 10 before | Expand all | Expand 10 after
4677 4677
4678 struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = { 4678 struct PPB_NaCl_Private_1_0 Pnacl_Wrappers_PPB_NaCl_Private_1_0 = {
4679 .LaunchSelLdr = (PP_ExternalPluginResult (*)(PP_Instance instance, const cha r* alleged_url, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool enable_ppapi_dev, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exception_handling, PP_Bool enab le_crash_throttling, void* imc_handle, struct PP_Var* error_message))&Pnacl_M25_ PPB_NaCl_Private_LaunchSelLdr, 4679 .LaunchSelLdr = (PP_ExternalPluginResult (*)(PP_Instance instance, const cha r* alleged_url, PP_Bool uses_irt, PP_Bool uses_ppapi, PP_Bool enable_ppapi_dev, PP_Bool enable_dyncode_syscalls, PP_Bool enable_exception_handling, PP_Bool enab le_crash_throttling, void* imc_handle, struct PP_Var* error_message))&Pnacl_M25_ PPB_NaCl_Private_LaunchSelLdr,
4680 .StartPpapiProxy = (PP_ExternalPluginResult (*)(PP_Instance instance))&Pnacl _M25_PPB_NaCl_Private_StartPpapiProxy, 4680 .StartPpapiProxy = (PP_ExternalPluginResult (*)(PP_Instance instance))&Pnacl _M25_PPB_NaCl_Private_StartPpapiProxy,
4681 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD, 4681 .UrandomFD = (int32_t (*)(void))&Pnacl_M25_PPB_NaCl_Private_UrandomFD,
4682 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar e3DInterfacesDisabled, 4682 .Are3DInterfacesDisabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_Ar e3DInterfacesDisabled,
4683 .BrokerDuplicateHandle = (int32_t (*)(PP_FileHandle source_handle, uint32_t process_id, PP_FileHandle* target_handle, uint32_t desired_access, uint32_t opti ons))&Pnacl_M25_PPB_NaCl_Private_BrokerDuplicateHandle, 4683 .BrokerDuplicateHandle = (int32_t (*)(PP_FileHandle source_handle, uint32_t process_id, PP_FileHandle* target_handle, uint32_t desired_access, uint32_t opti ons))&Pnacl_M25_PPB_NaCl_Private_BrokerDuplicateHandle,
4684 .EnsurePnaclInstalled = (int32_t (*)(PP_Instance instance, struct PP_Complet ionCallback callback))&Pnacl_M25_PPB_NaCl_Private_EnsurePnaclInstalled, 4684 .EnsurePnaclInstalled = (int32_t (*)(PP_Instance instance, struct PP_Complet ionCallback callback))&Pnacl_M25_PPB_NaCl_Private_EnsurePnaclInstalled,
4685 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M25_PP B_NaCl_Private_GetReadonlyPnaclFd, 4685 .GetReadonlyPnaclFd = (PP_FileHandle (*)(const char* filename))&Pnacl_M25_PP B_NaCl_Private_GetReadonlyPnaclFd,
4686 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile, 4686 .CreateTemporaryFile = (PP_FileHandle (*)(PP_Instance instance))&Pnacl_M25_P PB_NaCl_Private_CreateTemporaryFile,
4687 .GetNexeFd = (int32_t (*)(PP_Instance instance, const char* pexe_url, uint32 _t abi_version, uint32_t opt_level, const char* last_modified, const char* etag, PP_Bool* is_hit, PP_FileHandle* nexe_handle, struct PP_CompletionCallback callb ack))&Pnacl_M25_PPB_NaCl_Private_GetNexeFd, 4687 .GetNexeFd = (int32_t (*)(PP_Instance instance, const char* pexe_url, uint32 _t abi_version, uint32_t opt_level, const char* last_modified, const char* etag, PP_Bool has_no_store_header, PP_Bool* is_hit, PP_FileHandle* nexe_handle, struc t PP_CompletionCallback callback))&Pnacl_M25_PPB_NaCl_Private_GetNexeFd,
4688 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success ))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished, 4688 .ReportTranslationFinished = (void (*)(PP_Instance instance, PP_Bool success ))&Pnacl_M25_PPB_NaCl_Private_ReportTranslationFinished,
4689 .IsOffTheRecord = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsOffTheRec ord, 4689 .IsOffTheRecord = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsOffTheRec ord,
4690 .IsPnaclEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsPnaclEnab led, 4690 .IsPnaclEnabled = (PP_Bool (*)(void))&Pnacl_M25_PPB_NaCl_Private_IsPnaclEnab led,
4691 .ReportNaClError = (PP_ExternalPluginResult (*)(PP_Instance instance, PP_NaC lError message_id))&Pnacl_M25_PPB_NaCl_Private_ReportNaClError, 4691 .ReportNaClError = (PP_ExternalPluginResult (*)(PP_Instance instance, PP_NaC lError message_id))&Pnacl_M25_PPB_NaCl_Private_ReportNaClError,
4692 .OpenNaClExecutable = (PP_FileHandle (*)(PP_Instance instance, const char* f ile_url, uint64_t* file_token_lo, uint64_t* file_token_hi))&Pnacl_M25_PPB_NaCl_P rivate_OpenNaClExecutable 4692 .OpenNaClExecutable = (PP_FileHandle (*)(PP_Instance instance, const char* f ile_url, uint64_t* file_token_lo, uint64_t* file_token_hi))&Pnacl_M25_PPB_NaCl_P rivate_OpenNaClExecutable
4693 }; 4693 };
4694 4694
4695 struct PPB_NetAddress_Private_0_1 Pnacl_Wrappers_PPB_NetAddress_Private_0_1 = { 4695 struct PPB_NetAddress_Private_0_1 Pnacl_Wrappers_PPB_NetAddress_Private_0_1 = {
4696 .AreEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, const st ruct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreEqual, 4696 .AreEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, const st ruct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreEqual,
4697 .AreHostsEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, con st struct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreHos tsEqual, 4697 .AreHostsEqual = (PP_Bool (*)(const struct PP_NetAddress_Private* addr1, con st struct PP_NetAddress_Private* addr2))&Pnacl_M17_PPB_NetAddress_Private_AreHos tsEqual,
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after
5698 if (NULL == iface) return NULL; 5698 if (NULL == iface) return NULL;
5699 wrapper->real_iface = iface; 5699 wrapper->real_iface = iface;
5700 } 5700 }
5701 5701
5702 if (wrapper->wrapped_iface) { 5702 if (wrapper->wrapped_iface) {
5703 return wrapper->wrapped_iface; 5703 return wrapper->wrapped_iface;
5704 } else { 5704 } else {
5705 return wrapper->real_iface; 5705 return wrapper->real_iface;
5706 } 5706 }
5707 } 5707 }
OLDNEW
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698