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

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

Issue 131403004: [Retry] PPAPI: Add new PPB_FileRef.MakeDirectory to support exclusive operation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 11 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/cpp/file_ref.cc ('k') | ppapi/proxy/file_ref_resource.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) 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/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_alarms_dev.h" 10 #include "ppapi/c/dev/ppb_alarms_dev.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } 138 }
139 139
140 /* BEGIN Declarations for all Wrapper Infos */ 140 /* BEGIN Declarations for all Wrapper Infos */
141 141
142 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Console_1_0; 142 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Console_1_0;
143 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Core_1_0; 143 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Core_1_0;
144 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_0; 144 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_0;
145 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_1; 145 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileIO_1_1;
146 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_0; 146 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_0;
147 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_1; 147 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_1;
148 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_2;
148 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileSystem_1_0; 149 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileSystem_1_0;
149 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_0; 150 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_0;
150 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_1; 151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_1;
151 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3D_1_0; 152 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics3D_1_0;
152 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_HostResolver_1_0; 153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_HostResolver_1_0;
153 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0; 154 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0;
154 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1; 155 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1;
155 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0; 156 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0;
156 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0; 157 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0;
157 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0; 158 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0;
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 return iface->Query(file_ref, info, *callback); 525 return iface->Query(file_ref, info, *callback);
525 } 526 }
526 527
527 static int32_t Pnacl_M28_PPB_FileRef_ReadDirectoryEntries(PP_Resource file_ref, struct PP_ArrayOutput* output, struct PP_CompletionCallback* callback) { 528 static int32_t Pnacl_M28_PPB_FileRef_ReadDirectoryEntries(PP_Resource file_ref, struct PP_ArrayOutput* output, struct PP_CompletionCallback* callback) {
528 const struct PPB_FileRef_1_1 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_1.real_i face; 529 const struct PPB_FileRef_1_1 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_1.real_i face;
529 return iface->ReadDirectoryEntries(file_ref, *output, *callback); 530 return iface->ReadDirectoryEntries(file_ref, *output, *callback);
530 } 531 }
531 532
532 /* End wrapper methods for PPB_FileRef_1_1 */ 533 /* End wrapper methods for PPB_FileRef_1_1 */
533 534
535 /* Begin wrapper methods for PPB_FileRef_1_2 */
536
537 static PP_Resource Pnacl_M34_PPB_FileRef_Create(PP_Resource file_system, const c har* path) {
538 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
539 return iface->Create(file_system, path);
540 }
541
542 static PP_Bool Pnacl_M34_PPB_FileRef_IsFileRef(PP_Resource resource) {
543 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
544 return iface->IsFileRef(resource);
545 }
546
547 static PP_FileSystemType Pnacl_M34_PPB_FileRef_GetFileSystemType(PP_Resource fil e_ref) {
548 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
549 return iface->GetFileSystemType(file_ref);
550 }
551
552 static void Pnacl_M34_PPB_FileRef_GetName(struct PP_Var* _struct_result, PP_Reso urce file_ref) {
553 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
554 *_struct_result = iface->GetName(file_ref);
555 }
556
557 static void Pnacl_M34_PPB_FileRef_GetPath(struct PP_Var* _struct_result, PP_Reso urce file_ref) {
558 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
559 *_struct_result = iface->GetPath(file_ref);
560 }
561
562 static PP_Resource Pnacl_M34_PPB_FileRef_GetParent(PP_Resource file_ref) {
563 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
564 return iface->GetParent(file_ref);
565 }
566
567 static int32_t Pnacl_M34_PPB_FileRef_MakeDirectory(PP_Resource directory_ref, in t32_t make_directory_flags, struct PP_CompletionCallback* callback) {
568 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
569 return iface->MakeDirectory(directory_ref, make_directory_flags, *callback);
570 }
571
572 static int32_t Pnacl_M34_PPB_FileRef_Touch(PP_Resource file_ref, PP_Time last_ac cess_time, PP_Time last_modified_time, struct PP_CompletionCallback* callback) {
573 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
574 return iface->Touch(file_ref, last_access_time, last_modified_time, *callback) ;
575 }
576
577 static int32_t Pnacl_M34_PPB_FileRef_Delete(PP_Resource file_ref, struct PP_Comp letionCallback* callback) {
578 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
579 return iface->Delete(file_ref, *callback);
580 }
581
582 static int32_t Pnacl_M34_PPB_FileRef_Rename(PP_Resource file_ref, PP_Resource ne w_file_ref, struct PP_CompletionCallback* callback) {
583 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
584 return iface->Rename(file_ref, new_file_ref, *callback);
585 }
586
587 static int32_t Pnacl_M34_PPB_FileRef_Query(PP_Resource file_ref, struct PP_FileI nfo* info, struct PP_CompletionCallback* callback) {
588 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
589 return iface->Query(file_ref, info, *callback);
590 }
591
592 static int32_t Pnacl_M34_PPB_FileRef_ReadDirectoryEntries(PP_Resource file_ref, struct PP_ArrayOutput* output, struct PP_CompletionCallback* callback) {
593 const struct PPB_FileRef_1_2 *iface = Pnacl_WrapperInfo_PPB_FileRef_1_2.real_i face;
594 return iface->ReadDirectoryEntries(file_ref, *output, *callback);
595 }
596
597 /* End wrapper methods for PPB_FileRef_1_2 */
598
534 /* Begin wrapper methods for PPB_FileSystem_1_0 */ 599 /* Begin wrapper methods for PPB_FileSystem_1_0 */
535 600
536 static PP_Resource Pnacl_M14_PPB_FileSystem_Create(PP_Instance instance, PP_File SystemType type) { 601 static PP_Resource Pnacl_M14_PPB_FileSystem_Create(PP_Instance instance, PP_File SystemType type) {
537 const struct PPB_FileSystem_1_0 *iface = Pnacl_WrapperInfo_PPB_FileSystem_1_0. real_iface; 602 const struct PPB_FileSystem_1_0 *iface = Pnacl_WrapperInfo_PPB_FileSystem_1_0. real_iface;
538 return iface->Create(instance, type); 603 return iface->Create(instance, type);
539 } 604 }
540 605
541 static PP_Bool Pnacl_M14_PPB_FileSystem_IsFileSystem(PP_Resource resource) { 606 static PP_Bool Pnacl_M14_PPB_FileSystem_IsFileSystem(PP_Resource resource) {
542 const struct PPB_FileSystem_1_0 *iface = Pnacl_WrapperInfo_PPB_FileSystem_1_0. real_iface; 607 const struct PPB_FileSystem_1_0 *iface = Pnacl_WrapperInfo_PPB_FileSystem_1_0. real_iface;
543 return iface->IsFileSystem(resource); 608 return iface->IsFileSystem(resource);
(...skipping 3592 matching lines...) Expand 10 before | Expand all | Expand 10 after
4136 .GetPath = (struct PP_Var (*)(PP_Resource file_ref))&Pnacl_M28_PPB_FileRef_G etPath, 4201 .GetPath = (struct PP_Var (*)(PP_Resource file_ref))&Pnacl_M28_PPB_FileRef_G etPath,
4137 .GetParent = (PP_Resource (*)(PP_Resource file_ref))&Pnacl_M28_PPB_FileRef_G etParent, 4202 .GetParent = (PP_Resource (*)(PP_Resource file_ref))&Pnacl_M28_PPB_FileRef_G etParent,
4138 .MakeDirectory = (int32_t (*)(PP_Resource directory_ref, PP_Bool make_ancest ors, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_MakeDirectory , 4203 .MakeDirectory = (int32_t (*)(PP_Resource directory_ref, PP_Bool make_ancest ors, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_MakeDirectory ,
4139 .Touch = (int32_t (*)(PP_Resource file_ref, PP_Time last_access_time, PP_Tim e last_modified_time, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_File Ref_Touch, 4204 .Touch = (int32_t (*)(PP_Resource file_ref, PP_Time last_access_time, PP_Tim e last_modified_time, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_File Ref_Touch,
4140 .Delete = (int32_t (*)(PP_Resource file_ref, struct PP_CompletionCallback ca llback))&Pnacl_M28_PPB_FileRef_Delete, 4205 .Delete = (int32_t (*)(PP_Resource file_ref, struct PP_CompletionCallback ca llback))&Pnacl_M28_PPB_FileRef_Delete,
4141 .Rename = (int32_t (*)(PP_Resource file_ref, PP_Resource new_file_ref, struc t PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_Rename, 4206 .Rename = (int32_t (*)(PP_Resource file_ref, PP_Resource new_file_ref, struc t PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_Rename,
4142 .Query = (int32_t (*)(PP_Resource file_ref, struct PP_FileInfo* info, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_Query, 4207 .Query = (int32_t (*)(PP_Resource file_ref, struct PP_FileInfo* info, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_Query,
4143 .ReadDirectoryEntries = (int32_t (*)(PP_Resource file_ref, struct PP_ArrayOu tput output, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_ReadD irectoryEntries 4208 .ReadDirectoryEntries = (int32_t (*)(PP_Resource file_ref, struct PP_ArrayOu tput output, struct PP_CompletionCallback callback))&Pnacl_M28_PPB_FileRef_ReadD irectoryEntries
4144 }; 4209 };
4145 4210
4211 static struct PPB_FileRef_1_2 Pnacl_Wrappers_PPB_FileRef_1_2 = {
4212 .Create = (PP_Resource (*)(PP_Resource file_system, const char* path))&Pnacl _M34_PPB_FileRef_Create,
4213 .IsFileRef = (PP_Bool (*)(PP_Resource resource))&Pnacl_M34_PPB_FileRef_IsFil eRef,
4214 .GetFileSystemType = (PP_FileSystemType (*)(PP_Resource file_ref))&Pnacl_M34 _PPB_FileRef_GetFileSystemType,
4215 .GetName = (struct PP_Var (*)(PP_Resource file_ref))&Pnacl_M34_PPB_FileRef_G etName,
4216 .GetPath = (struct PP_Var (*)(PP_Resource file_ref))&Pnacl_M34_PPB_FileRef_G etPath,
4217 .GetParent = (PP_Resource (*)(PP_Resource file_ref))&Pnacl_M34_PPB_FileRef_G etParent,
4218 .MakeDirectory = (int32_t (*)(PP_Resource directory_ref, int32_t make_direct ory_flags, struct PP_CompletionCallback callback))&Pnacl_M34_PPB_FileRef_MakeDir ectory,
4219 .Touch = (int32_t (*)(PP_Resource file_ref, PP_Time last_access_time, PP_Tim e last_modified_time, struct PP_CompletionCallback callback))&Pnacl_M34_PPB_File Ref_Touch,
4220 .Delete = (int32_t (*)(PP_Resource file_ref, struct PP_CompletionCallback ca llback))&Pnacl_M34_PPB_FileRef_Delete,
4221 .Rename = (int32_t (*)(PP_Resource file_ref, PP_Resource new_file_ref, struc t PP_CompletionCallback callback))&Pnacl_M34_PPB_FileRef_Rename,
4222 .Query = (int32_t (*)(PP_Resource file_ref, struct PP_FileInfo* info, struct PP_CompletionCallback callback))&Pnacl_M34_PPB_FileRef_Query,
4223 .ReadDirectoryEntries = (int32_t (*)(PP_Resource file_ref, struct PP_ArrayOu tput output, struct PP_CompletionCallback callback))&Pnacl_M34_PPB_FileRef_ReadD irectoryEntries
4224 };
4225
4146 static struct PPB_FileSystem_1_0 Pnacl_Wrappers_PPB_FileSystem_1_0 = { 4226 static struct PPB_FileSystem_1_0 Pnacl_Wrappers_PPB_FileSystem_1_0 = {
4147 .Create = (PP_Resource (*)(PP_Instance instance, PP_FileSystemType type))&Pn acl_M14_PPB_FileSystem_Create, 4227 .Create = (PP_Resource (*)(PP_Instance instance, PP_FileSystemType type))&Pn acl_M14_PPB_FileSystem_Create,
4148 .IsFileSystem = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_FileSystem _IsFileSystem, 4228 .IsFileSystem = (PP_Bool (*)(PP_Resource resource))&Pnacl_M14_PPB_FileSystem _IsFileSystem,
4149 .Open = (int32_t (*)(PP_Resource file_system, int64_t expected_size, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_FileSystem_Open, 4229 .Open = (int32_t (*)(PP_Resource file_system, int64_t expected_size, struct PP_CompletionCallback callback))&Pnacl_M14_PPB_FileSystem_Open,
4150 .GetType = (PP_FileSystemType (*)(PP_Resource file_system))&Pnacl_M14_PPB_Fi leSystem_GetType 4230 .GetType = (PP_FileSystemType (*)(PP_Resource file_system))&Pnacl_M14_PPB_Fi leSystem_GetType
4151 }; 4231 };
4152 4232
4153 /* Not generating wrapper interface for PPB_Fullscreen_1_0 */ 4233 /* Not generating wrapper interface for PPB_Fullscreen_1_0 */
4154 4234
4155 /* Not generating wrapper interface for PPB_Gamepad_1_0 */ 4235 /* Not generating wrapper interface for PPB_Gamepad_1_0 */
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after
5168 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileRef_1_0, 5248 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileRef_1_0,
5169 .real_iface = NULL 5249 .real_iface = NULL
5170 }; 5250 };
5171 5251
5172 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_1 = { 5252 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_1 = {
5173 .iface_macro = PPB_FILEREF_INTERFACE_1_1, 5253 .iface_macro = PPB_FILEREF_INTERFACE_1_1,
5174 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileRef_1_1, 5254 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileRef_1_1,
5175 .real_iface = NULL 5255 .real_iface = NULL
5176 }; 5256 };
5177 5257
5258 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileRef_1_2 = {
5259 .iface_macro = PPB_FILEREF_INTERFACE_1_2,
5260 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileRef_1_2,
5261 .real_iface = NULL
5262 };
5263
5178 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileSystem_1_0 = { 5264 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_FileSystem_1_0 = {
5179 .iface_macro = PPB_FILESYSTEM_INTERFACE_1_0, 5265 .iface_macro = PPB_FILESYSTEM_INTERFACE_1_0,
5180 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileSystem_1_0, 5266 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_FileSystem_1_0,
5181 .real_iface = NULL 5267 .real_iface = NULL
5182 }; 5268 };
5183 5269
5184 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_0 = { 5270 static struct __PnaclWrapperInfo Pnacl_WrapperInfo_PPB_Graphics2D_1_0 = {
5185 .iface_macro = PPB_GRAPHICS_2D_INTERFACE_1_0, 5271 .iface_macro = PPB_GRAPHICS_2D_INTERFACE_1_0,
5186 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Graphics2D_1_0, 5272 .wrapped_iface = (void *) &Pnacl_Wrappers_PPB_Graphics2D_1_0,
5187 .real_iface = NULL 5273 .real_iface = NULL
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
5745 .real_iface = NULL 5831 .real_iface = NULL
5746 }; 5832 };
5747 5833
5748 static struct __PnaclWrapperInfo *s_ppb_wrappers[] = { 5834 static struct __PnaclWrapperInfo *s_ppb_wrappers[] = {
5749 &Pnacl_WrapperInfo_PPB_Console_1_0, 5835 &Pnacl_WrapperInfo_PPB_Console_1_0,
5750 &Pnacl_WrapperInfo_PPB_Core_1_0, 5836 &Pnacl_WrapperInfo_PPB_Core_1_0,
5751 &Pnacl_WrapperInfo_PPB_FileIO_1_0, 5837 &Pnacl_WrapperInfo_PPB_FileIO_1_0,
5752 &Pnacl_WrapperInfo_PPB_FileIO_1_1, 5838 &Pnacl_WrapperInfo_PPB_FileIO_1_1,
5753 &Pnacl_WrapperInfo_PPB_FileRef_1_0, 5839 &Pnacl_WrapperInfo_PPB_FileRef_1_0,
5754 &Pnacl_WrapperInfo_PPB_FileRef_1_1, 5840 &Pnacl_WrapperInfo_PPB_FileRef_1_1,
5841 &Pnacl_WrapperInfo_PPB_FileRef_1_2,
5755 &Pnacl_WrapperInfo_PPB_FileSystem_1_0, 5842 &Pnacl_WrapperInfo_PPB_FileSystem_1_0,
5756 &Pnacl_WrapperInfo_PPB_Graphics2D_1_0, 5843 &Pnacl_WrapperInfo_PPB_Graphics2D_1_0,
5757 &Pnacl_WrapperInfo_PPB_Graphics2D_1_1, 5844 &Pnacl_WrapperInfo_PPB_Graphics2D_1_1,
5758 &Pnacl_WrapperInfo_PPB_Graphics3D_1_0, 5845 &Pnacl_WrapperInfo_PPB_Graphics3D_1_0,
5759 &Pnacl_WrapperInfo_PPB_HostResolver_1_0, 5846 &Pnacl_WrapperInfo_PPB_HostResolver_1_0,
5760 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0, 5847 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_0,
5761 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1, 5848 &Pnacl_WrapperInfo_PPB_MouseInputEvent_1_1,
5762 &Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0, 5849 &Pnacl_WrapperInfo_PPB_WheelInputEvent_1_0,
5763 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0, 5850 &Pnacl_WrapperInfo_PPB_KeyboardInputEvent_1_0,
5764 &Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0, 5851 &Pnacl_WrapperInfo_PPB_TouchInputEvent_1_0,
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
5923 if (NULL == iface) return NULL; 6010 if (NULL == iface) return NULL;
5924 wrapper->real_iface = iface; 6011 wrapper->real_iface = iface;
5925 } 6012 }
5926 6013
5927 if (wrapper->wrapped_iface) { 6014 if (wrapper->wrapped_iface) {
5928 return wrapper->wrapped_iface; 6015 return wrapper->wrapped_iface;
5929 } else { 6016 } else {
5930 return wrapper->real_iface; 6017 return wrapper->real_iface;
5931 } 6018 }
5932 } 6019 }
OLDNEW
« no previous file with comments | « ppapi/cpp/file_ref.cc ('k') | ppapi/proxy/file_ref_resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698