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 | |
9 #include <windows.h> | |
10 #endif | |
11 | |
12 #include "ppapi/c/pp_bool.h" | 8 #include "ppapi/c/pp_bool.h" |
13 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
14 #include "ppapi/c/pp_resource.h" | 10 #include "ppapi/c/pp_resource.h" |
15 | 11 #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 | 12 |
24 struct PP_FileInfo; | 13 struct PP_FileInfo; |
25 | 14 |
26 struct PP_DirEntry_Dev { | 15 struct PP_DirEntry_Dev { |
27 const char* name; | 16 const char* name; |
28 PP_Bool is_dir; | 17 PP_Bool is_dir; |
29 }; | 18 }; |
30 | 19 |
31 struct PP_DirContents_Dev { | 20 struct PP_DirContents_Dev { |
32 int32_t count; | 21 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 | 137 // (except in taking FileRefs instead of paths, of course). We omit the |
149 // functionality which we do not provide for FileRefs. | 138 // functionality which we do not provide for FileRefs. |
150 int32_t (*OpenFile)(PP_Resource file_ref_id, | 139 int32_t (*OpenFile)(PP_Resource file_ref_id, |
151 int32_t mode, | 140 int32_t mode, |
152 PP_FileHandle* file); | 141 PP_FileHandle* file); |
153 int32_t (*QueryFile)(PP_Resource file_ref_id, | 142 int32_t (*QueryFile)(PP_Resource file_ref_id, |
154 struct PP_FileInfo* info); | 143 struct PP_FileInfo* info); |
155 }; | 144 }; |
156 | 145 |
157 #endif // PPAPI_C_PRIVATE_PPB_FLASH_FILE_H_ | 146 #endif // PPAPI_C_PRIVATE_PPB_FLASH_FILE_H_ |
OLD | NEW |