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

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

Issue 23444004: Add GetPluginRefererURL to PPB_URLUtil_Dev interface to get the 'Referer' HTTP header value that wa… (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: 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
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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6; 176 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6;
177 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Font_Dev_0_6; 177 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Font_Dev_0_6;
178 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1; 178 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1;
179 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2; 179 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2;
180 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_7; 180 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Printing_Dev_0_7;
181 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_9; 181 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_9;
182 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_91; 182 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_91;
183 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_92; 183 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Testing_Dev_0_92;
184 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TrueTypeFont_Dev_0_1; 184 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TrueTypeFont_Dev_0_1;
185 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6; 185 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6;
186 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_7;
186 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2; 187 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2;
187 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3; 188 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3;
188 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16; 189 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16;
189 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Selection_Dev_0_3; 190 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPP_Selection_Dev_0_3;
190 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_ 0_6; 191 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_ 0_6;
191 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Ext_CrxFileSystem_Private _0_1; 192 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Ext_CrxFileSystem_Private _0_1;
192 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_Private_0_1; 193 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_Private_0_1;
193 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1; 194 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1;
194 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_4; 195 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_4;
195 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_5; 196 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Flash_12_5;
(...skipping 1861 matching lines...) Expand 10 before | Expand all | Expand 10 after
2057 *_struct_result = iface->GetDocumentURL(instance, components); 2058 *_struct_result = iface->GetDocumentURL(instance, components);
2058 } 2059 }
2059 2060
2060 static void Pnacl_M17_PPB_URLUtil_Dev_GetPluginInstanceURL(struct PP_Var* _struc t_result, PP_Instance instance, struct PP_URLComponents_Dev* components) { 2061 static void Pnacl_M17_PPB_URLUtil_Dev_GetPluginInstanceURL(struct PP_Var* _struc t_result, PP_Instance instance, struct PP_URLComponents_Dev* components) {
2061 const struct PPB_URLUtil_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_ 6.real_iface; 2062 const struct PPB_URLUtil_Dev_0_6 *iface = Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_ 6.real_iface;
2062 *_struct_result = iface->GetPluginInstanceURL(instance, components); 2063 *_struct_result = iface->GetPluginInstanceURL(instance, components);
2063 } 2064 }
2064 2065
2065 /* End wrapper methods for PPB_URLUtil_Dev_0_6 */ 2066 /* End wrapper methods for PPB_URLUtil_Dev_0_6 */
2066 2067
2068 /* Begin wrapper methods for PPB_URLUtil_Dev_0_7 */
2069
2070 static void Pnacl_M31_PPB_URLUtil_Dev_Canonicalize(struct PP_Var* _struct_result , struct PP_Var* url, struct PP_URLComponents_Dev* components) {
2071 const struct PPB_URLUtil_Dev_0_7 *iface = Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_ 7.real_iface;
2072 *_struct_result = iface->Canonicalize(*url, components);
2073 }
2074
2075 static void Pnacl_M31_PPB_URLUtil_Dev_ResolveRelativeToURL(struct PP_Var* _struc t_result, struct PP_Var* base_url, struct PP_Var* relative_string, struct PP_URL Components_Dev* components) {
2076 const struct PPB_URLUtil_Dev_0_7 *iface = Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_ 7.real_iface;
2077 *_struct_result = iface->ResolveRelativeToURL(*base_url, *relative_string, com ponents);
2078 }
2079
2080 static void Pnacl_M31_PPB_URLUtil_Dev_ResolveRelativeToDocument(struct PP_Var* _ struct_result, PP_Instance instance, struct PP_Var* relative_string, struct PP_U RLComponents_Dev* components) {
2081 const struct PPB_URLUtil_Dev_0_7 *iface = Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_ 7.real_iface;
2082 *_struct_result = iface->ResolveRelativeToDocument(instance, *relative_string, components);
2083 }
2084
2085 static PP_Bool Pnacl_M31_PPB_URLUtil_Dev_IsSameSecurityOrigin(struct PP_Var* url _a, struct PP_Var* url_b) {
2086 const struct PPB_URLUtil_Dev_0_7 *iface = Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_ 7.real_iface;
2087 return iface->IsSameSecurityOrigin(*url_a, *url_b);
2088 }
2089
2090 static PP_Bool Pnacl_M31_PPB_URLUtil_Dev_DocumentCanRequest(PP_Instance instance , struct PP_Var* url) {
2091 const struct PPB_URLUtil_Dev_0_7 *iface = Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_ 7.real_iface;
2092 return iface->DocumentCanRequest(instance, *url);
2093 }
2094
2095 static PP_Bool Pnacl_M31_PPB_URLUtil_Dev_DocumentCanAccessDocument(PP_Instance a ctive, PP_Instance target) {
2096 const struct PPB_URLUtil_Dev_0_7 *iface = Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_ 7.real_iface;
2097 return iface->DocumentCanAccessDocument(active, target);
2098 }
2099
2100 static void Pnacl_M31_PPB_URLUtil_Dev_GetDocumentURL(struct PP_Var* _struct_resu lt, PP_Instance instance, struct PP_URLComponents_Dev* components) {
2101 const struct PPB_URLUtil_Dev_0_7 *iface = Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_ 7.real_iface;
2102 *_struct_result = iface->GetDocumentURL(instance, components);
2103 }
2104
2105 static void Pnacl_M31_PPB_URLUtil_Dev_GetPluginInstanceURL(struct PP_Var* _struc t_result, PP_Instance instance, struct PP_URLComponents_Dev* components) {
2106 const struct PPB_URLUtil_Dev_0_7 *iface = Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_ 7.real_iface;
2107 *_struct_result = iface->GetPluginInstanceURL(instance, components);
2108 }
2109
2110 static void Pnacl_M31_PPB_URLUtil_Dev_GetPluginReferrerURL(struct PP_Var* _struc t_result, PP_Instance instance, struct PP_URLComponents_Dev* components) {
2111 const struct PPB_URLUtil_Dev_0_7 *iface = Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_ 7.real_iface;
2112 *_struct_result = iface->GetPluginReferrerURL(instance, components);
2113 }
2114
2115 /* End wrapper methods for PPB_URLUtil_Dev_0_7 */
2116
2067 /* Begin wrapper methods for PPB_VideoCapture_Dev_0_2 */ 2117 /* Begin wrapper methods for PPB_VideoCapture_Dev_0_2 */
2068 2118
2069 static PP_Resource Pnacl_M19_PPB_VideoCapture_Dev_Create(PP_Instance instance) { 2119 static PP_Resource Pnacl_M19_PPB_VideoCapture_Dev_Create(PP_Instance instance) {
2070 const struct PPB_VideoCapture_Dev_0_2 *iface = Pnacl_WrapperInfo_PPB_VideoCapt ure_Dev_0_2.real_iface; 2120 const struct PPB_VideoCapture_Dev_0_2 *iface = Pnacl_WrapperInfo_PPB_VideoCapt ure_Dev_0_2.real_iface;
2071 return iface->Create(instance); 2121 return iface->Create(instance);
2072 } 2122 }
2073 2123
2074 static PP_Bool Pnacl_M19_PPB_VideoCapture_Dev_IsVideoCapture(PP_Resource video_c apture) { 2124 static PP_Bool Pnacl_M19_PPB_VideoCapture_Dev_IsVideoCapture(PP_Resource video_c apture) {
2075 const struct PPB_VideoCapture_Dev_0_2 *iface = Pnacl_WrapperInfo_PPB_VideoCapt ure_Dev_0_2.real_iface; 2125 const struct PPB_VideoCapture_Dev_0_2 *iface = Pnacl_WrapperInfo_PPB_VideoCapt ure_Dev_0_2.real_iface;
2076 return iface->IsVideoCapture(video_capture); 2126 return iface->IsVideoCapture(video_capture);
(...skipping 2344 matching lines...) Expand 10 before | Expand all | Expand 10 after
4421 .Canonicalize = (struct PP_Var (*)(struct PP_Var url, struct PP_URLComponent s_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_Canonicalize, 4471 .Canonicalize = (struct PP_Var (*)(struct PP_Var url, struct PP_URLComponent s_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_Canonicalize,
4422 .ResolveRelativeToURL = (struct PP_Var (*)(struct PP_Var base_url, struct PP _Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M17_PPB_UR LUtil_Dev_ResolveRelativeToURL, 4472 .ResolveRelativeToURL = (struct PP_Var (*)(struct PP_Var base_url, struct PP _Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M17_PPB_UR LUtil_Dev_ResolveRelativeToURL,
4423 .ResolveRelativeToDocument = (struct PP_Var (*)(PP_Instance instance, struct PP_Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M17_PPB _URLUtil_Dev_ResolveRelativeToDocument, 4473 .ResolveRelativeToDocument = (struct PP_Var (*)(PP_Instance instance, struct PP_Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M17_PPB _URLUtil_Dev_ResolveRelativeToDocument,
4424 .IsSameSecurityOrigin = (PP_Bool (*)(struct PP_Var url_a, struct PP_Var url_ b))&Pnacl_M17_PPB_URLUtil_Dev_IsSameSecurityOrigin, 4474 .IsSameSecurityOrigin = (PP_Bool (*)(struct PP_Var url_a, struct PP_Var url_ b))&Pnacl_M17_PPB_URLUtil_Dev_IsSameSecurityOrigin,
4425 .DocumentCanRequest = (PP_Bool (*)(PP_Instance instance, struct PP_Var url)) &Pnacl_M17_PPB_URLUtil_Dev_DocumentCanRequest, 4475 .DocumentCanRequest = (PP_Bool (*)(PP_Instance instance, struct PP_Var url)) &Pnacl_M17_PPB_URLUtil_Dev_DocumentCanRequest,
4426 .DocumentCanAccessDocument = (PP_Bool (*)(PP_Instance active, PP_Instance ta rget))&Pnacl_M17_PPB_URLUtil_Dev_DocumentCanAccessDocument, 4476 .DocumentCanAccessDocument = (PP_Bool (*)(PP_Instance active, PP_Instance ta rget))&Pnacl_M17_PPB_URLUtil_Dev_DocumentCanAccessDocument,
4427 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp onents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetDocumentURL, 4477 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp onents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetDocumentURL,
4428 .GetPluginInstanceURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U RLComponents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetPluginInstanceURL 4478 .GetPluginInstanceURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U RLComponents_Dev* components))&Pnacl_M17_PPB_URLUtil_Dev_GetPluginInstanceURL
4429 }; 4479 };
4430 4480
4481 struct PPB_URLUtil_Dev_0_7 Pnacl_Wrappers_PPB_URLUtil_Dev_0_7 = {
4482 .Canonicalize = (struct PP_Var (*)(struct PP_Var url, struct PP_URLComponent s_Dev* components))&Pnacl_M31_PPB_URLUtil_Dev_Canonicalize,
4483 .ResolveRelativeToURL = (struct PP_Var (*)(struct PP_Var base_url, struct PP _Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M31_PPB_UR LUtil_Dev_ResolveRelativeToURL,
4484 .ResolveRelativeToDocument = (struct PP_Var (*)(PP_Instance instance, struct PP_Var relative_string, struct PP_URLComponents_Dev* components))&Pnacl_M31_PPB _URLUtil_Dev_ResolveRelativeToDocument,
4485 .IsSameSecurityOrigin = (PP_Bool (*)(struct PP_Var url_a, struct PP_Var url_ b))&Pnacl_M31_PPB_URLUtil_Dev_IsSameSecurityOrigin,
4486 .DocumentCanRequest = (PP_Bool (*)(PP_Instance instance, struct PP_Var url)) &Pnacl_M31_PPB_URLUtil_Dev_DocumentCanRequest,
4487 .DocumentCanAccessDocument = (PP_Bool (*)(PP_Instance active, PP_Instance ta rget))&Pnacl_M31_PPB_URLUtil_Dev_DocumentCanAccessDocument,
4488 .GetDocumentURL = (struct PP_Var (*)(PP_Instance instance, struct PP_URLComp onents_Dev* components))&Pnacl_M31_PPB_URLUtil_Dev_GetDocumentURL,
4489 .GetPluginInstanceURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U RLComponents_Dev* components))&Pnacl_M31_PPB_URLUtil_Dev_GetPluginInstanceURL,
4490 .GetPluginReferrerURL = (struct PP_Var (*)(PP_Instance instance, struct PP_U RLComponents_Dev* components))&Pnacl_M31_PPB_URLUtil_Dev_GetPluginReferrerURL
4491 };
4492
4431 struct PPB_VideoCapture_Dev_0_2 Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2 = { 4493 struct PPB_VideoCapture_Dev_0_2 Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2 = {
4432 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M19_PPB_VideoCapture _Dev_Create, 4494 .Create = (PP_Resource (*)(PP_Instance instance))&Pnacl_M19_PPB_VideoCapture _Dev_Create,
4433 .IsVideoCapture = (PP_Bool (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Vid eoCapture_Dev_IsVideoCapture, 4495 .IsVideoCapture = (PP_Bool (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Vid eoCapture_Dev_IsVideoCapture,
4434 .EnumerateDevices = (int32_t (*)(PP_Resource video_capture, PP_Resource* dev ices, struct PP_CompletionCallback callback))&Pnacl_M19_PPB_VideoCapture_Dev_Enu merateDevices, 4496 .EnumerateDevices = (int32_t (*)(PP_Resource video_capture, PP_Resource* dev ices, struct PP_CompletionCallback callback))&Pnacl_M19_PPB_VideoCapture_Dev_Enu merateDevices,
4435 .Open = (int32_t (*)(PP_Resource video_capture, PP_Resource device_ref, cons t struct PP_VideoCaptureDeviceInfo_Dev* requested_info, uint32_t buffer_count, s truct PP_CompletionCallback callback))&Pnacl_M19_PPB_VideoCapture_Dev_Open, 4497 .Open = (int32_t (*)(PP_Resource video_capture, PP_Resource device_ref, cons t struct PP_VideoCaptureDeviceInfo_Dev* requested_info, uint32_t buffer_count, s truct PP_CompletionCallback callback))&Pnacl_M19_PPB_VideoCapture_Dev_Open,
4436 .StartCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Video Capture_Dev_StartCapture, 4498 .StartCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_Video Capture_Dev_StartCapture,
4437 .ReuseBuffer = (int32_t (*)(PP_Resource video_capture, uint32_t buffer))&Pna cl_M19_PPB_VideoCapture_Dev_ReuseBuffer, 4499 .ReuseBuffer = (int32_t (*)(PP_Resource video_capture, uint32_t buffer))&Pna cl_M19_PPB_VideoCapture_Dev_ReuseBuffer,
4438 .StopCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoC apture_Dev_StopCapture, 4500 .StopCapture = (int32_t (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoC apture_Dev_StopCapture,
4439 .Close = (void (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoCapture_De v_Close 4501 .Close = (void (*)(PP_Resource video_capture))&Pnacl_M19_PPB_VideoCapture_De v_Close
4440 }; 4502 };
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
5216 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_TrueTypeFont_Dev_0_1, 5278 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_TrueTypeFont_Dev_0_1,
5217 .real_iface = NULL 5279 .real_iface = NULL
5218 }; 5280 };
5219 5281
5220 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6 = { 5282 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6 = {
5221 .iface_macro = PPB_URLUTIL_DEV_INTERFACE_0_6, 5283 .iface_macro = PPB_URLUTIL_DEV_INTERFACE_0_6,
5222 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_6, 5284 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_6,
5223 .real_iface = NULL 5285 .real_iface = NULL
5224 }; 5286 };
5225 5287
5288 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_7 = {
5289 .iface_macro = PPB_URLUTIL_DEV_INTERFACE_0_7,
5290 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_URLUtil_Dev_0_7,
5291 .real_iface = NULL
5292 };
5293
5226 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2 = { 5294 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2 = {
5227 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_2, 5295 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_2,
5228 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2, 5296 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoCapture_Dev_0_2,
5229 .real_iface = NULL 5297 .real_iface = NULL
5230 }; 5298 };
5231 5299
5232 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3 = { 5300 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3 = {
5233 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_3, 5301 .iface_macro = PPB_VIDEOCAPTURE_DEV_INTERFACE_0_3,
5234 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoCapture_Dev_0_3, 5302 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_VideoCapture_Dev_0_3,
5235 .real_iface = NULL 5303 .real_iface = NULL
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
5530 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6, 5598 &Pnacl_WrapperInfo_PPB_FileChooser_Dev_0_6,
5531 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6, 5599 &Pnacl_WrapperInfo_PPB_Font_Dev_0_6,
5532 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1, 5600 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_1,
5533 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2, 5601 &Pnacl_WrapperInfo_PPB_IMEInputEvent_Dev_0_2,
5534 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7, 5602 &Pnacl_WrapperInfo_PPB_Printing_Dev_0_7,
5535 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_9, 5603 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_9,
5536 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_91, 5604 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_91,
5537 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_92, 5605 &Pnacl_WrapperInfo_PPB_Testing_Dev_0_92,
5538 &Pnacl_WrapperInfo_PPB_TrueTypeFont_Dev_0_1, 5606 &Pnacl_WrapperInfo_PPB_TrueTypeFont_Dev_0_1,
5539 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6, 5607 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_6,
5608 &Pnacl_WrapperInfo_PPB_URLUtil_Dev_0_7,
5540 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2, 5609 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_2,
5541 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3, 5610 &Pnacl_WrapperInfo_PPB_VideoCapture_Dev_0_3,
5542 &Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16, 5611 &Pnacl_WrapperInfo_PPB_VideoDecoder_Dev_0_16,
5543 &Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_6, 5612 &Pnacl_WrapperInfo_PPB_ContentDecryptor_Private_0_6,
5544 &Pnacl_WrapperInfo_PPB_Ext_CrxFileSystem_Private_0_1, 5613 &Pnacl_WrapperInfo_PPB_Ext_CrxFileSystem_Private_0_1,
5545 &Pnacl_WrapperInfo_PPB_FileIO_Private_0_1, 5614 &Pnacl_WrapperInfo_PPB_FileIO_Private_0_1,
5546 &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1, 5615 &Pnacl_WrapperInfo_PPB_FileRefPrivate_0_1,
5547 &Pnacl_WrapperInfo_PPB_Flash_12_4, 5616 &Pnacl_WrapperInfo_PPB_Flash_12_4,
5548 &Pnacl_WrapperInfo_PPB_Flash_12_5, 5617 &Pnacl_WrapperInfo_PPB_Flash_12_5,
5549 &Pnacl_WrapperInfo_PPB_Flash_12_6, 5618 &Pnacl_WrapperInfo_PPB_Flash_12_6,
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
5658 if (NULL == iface) return NULL; 5727 if (NULL == iface) return NULL;
5659 wrapper->real_iface = iface; 5728 wrapper->real_iface = iface;
5660 } 5729 }
5661 5730
5662 if (wrapper->wrapped_iface) { 5731 if (wrapper->wrapped_iface) {
5663 return wrapper->wrapped_iface; 5732 return wrapper->wrapped_iface;
5664 } else { 5733 } else {
5665 return wrapper->real_iface; 5734 return wrapper->real_iface;
5666 } 5735 }
5667 } 5736 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698