| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_FILE_H_ | 5 #ifndef PPAPI_C_PRIVATE_PPB_FLASH_FILE_H_ |
| 6 #define PPAPI_C_PRIVATE_PPB_FLASH_FILE_H_ | 6 #define PPAPI_C_PRIVATE_PPB_FLASH_FILE_H_ |
| 7 | 7 |
| 8 #ifdef _WIN32 | 8 #ifdef _WIN32 |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 #endif | 10 #endif |
| 11 | 11 |
| 12 #include "ppapi/c/pp_bool.h" | 12 #include "ppapi/c/pp_bool.h" |
| 13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
| 14 #include "ppapi/c/pp_resource.h" | 14 #include "ppapi/c/pp_resource.h" |
| 15 | 15 #include "ppapi/c/private/pp_file_handle.h" |
| 16 #ifdef _WIN32 | |
| 17 typedef HANDLE PP_FileHandle; | |
| 18 static const PP_FileHandle PP_kInvalidFileHandle = NULL; | |
| 19 #else | |
| 20 typedef int PP_FileHandle; | |
| 21 static const PP_FileHandle PP_kInvalidFileHandle = -1; | |
| 22 #endif | |
| 23 | 16 |
| 24 struct PP_FileInfo; | 17 struct PP_FileInfo; |
| 25 | 18 |
| 26 struct PP_DirEntry_Dev { | 19 struct PP_DirEntry_Dev { |
| 27 const char* name; | 20 const char* name; |
| 28 PP_Bool is_dir; | 21 PP_Bool is_dir; |
| 29 }; | 22 }; |
| 30 | 23 |
| 31 struct PP_DirContents_Dev { | 24 struct PP_DirContents_Dev { |
| 32 int32_t count; | 25 int32_t count; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 // (except in taking FileRefs instead of paths, of course). We omit the | 141 // (except in taking FileRefs instead of paths, of course). We omit the |
| 149 // functionality which we do not provide for FileRefs. | 142 // functionality which we do not provide for FileRefs. |
| 150 int32_t (*OpenFile)(PP_Resource file_ref_id, | 143 int32_t (*OpenFile)(PP_Resource file_ref_id, |
| 151 int32_t mode, | 144 int32_t mode, |
| 152 PP_FileHandle* file); | 145 PP_FileHandle* file); |
| 153 int32_t (*QueryFile)(PP_Resource file_ref_id, | 146 int32_t (*QueryFile)(PP_Resource file_ref_id, |
| 154 struct PP_FileInfo* info); | 147 struct PP_FileInfo* info); |
| 155 }; | 148 }; |
| 156 | 149 |
| 157 #endif // PPAPI_C_PRIVATE_PPB_FLASH_FILE_H_ | 150 #endif // PPAPI_C_PRIVATE_PPB_FLASH_FILE_H_ |
| OLD | NEW |