OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 |
16 #ifdef _WIN32 | 16 #ifdef _WIN32 |
17 typedef HANDLE PP_FileHandle; | 17 typedef HANDLE PP_FileHandle; |
18 static const PP_FileHandle PP_kInvalidFileHandle = NULL; | 18 static const PP_FileHandle PP_kInvalidFileHandle = NULL; |
19 #else | 19 #else |
20 typedef int PP_FileHandle; | 20 typedef int PP_FileHandle; |
21 static const PP_FileHandle PP_kInvalidFileHandle = -1; | 21 static const PP_FileHandle PP_kInvalidFileHandle = -1; |
22 #endif | 22 #endif |
23 | 23 |
24 struct PP_CompletionCallback; | |
25 struct PP_FontDescription_Dev; | |
26 struct PP_FileInfo; | 24 struct PP_FileInfo; |
27 | 25 |
28 struct PP_DirEntry_Dev { | 26 struct PP_DirEntry_Dev { |
29 const char* name; | 27 const char* name; |
30 PP_Bool is_dir; | 28 PP_Bool is_dir; |
31 }; | 29 }; |
32 | 30 |
33 struct PP_DirContents_Dev { | 31 struct PP_DirContents_Dev { |
34 int32_t count; | 32 int32_t count; |
35 struct PP_DirEntry_Dev* entries; | 33 struct PP_DirEntry_Dev* entries; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // (except in taking FileRefs instead of paths, of course). We omit the | 111 // (except in taking FileRefs instead of paths, of course). We omit the |
114 // functionality which we do not provide for FileRefs. | 112 // functionality which we do not provide for FileRefs. |
115 int32_t (*OpenFile)(PP_Resource file_ref_id, | 113 int32_t (*OpenFile)(PP_Resource file_ref_id, |
116 int32_t mode, | 114 int32_t mode, |
117 PP_FileHandle* file); | 115 PP_FileHandle* file); |
118 int32_t (*QueryFile)(PP_Resource file_ref_id, | 116 int32_t (*QueryFile)(PP_Resource file_ref_id, |
119 struct PP_FileInfo* info); | 117 struct PP_FileInfo* info); |
120 }; | 118 }; |
121 | 119 |
122 #endif // PPAPI_C_PRIVATE_PPB_FLASH_FILE_H_ | 120 #endif // PPAPI_C_PRIVATE_PPB_FLASH_FILE_H_ |
OLD | NEW |