| 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 | 15 |
| 15 #ifdef _WIN32 | 16 #ifdef _WIN32 |
| 16 typedef HANDLE PP_FileHandle; | 17 typedef HANDLE PP_FileHandle; |
| 17 static const PP_FileHandle PP_kInvalidFileHandle = NULL; | 18 static const PP_FileHandle PP_kInvalidFileHandle = NULL; |
| 18 #else | 19 #else |
| 19 typedef int PP_FileHandle; | 20 typedef int PP_FileHandle; |
| 20 static const PP_FileHandle PP_kInvalidFileHandle = -1; | 21 static const PP_FileHandle PP_kInvalidFileHandle = -1; |
| 21 #endif | 22 #endif |
| 22 | 23 |
| 23 struct PP_CompletionCallback; | 24 struct PP_CompletionCallback; |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 // (except in taking FileRefs instead of paths, of course). We omit the | 113 // (except in taking FileRefs instead of paths, of course). We omit the |
| 113 // functionality which we do not provide for FileRefs. | 114 // functionality which we do not provide for FileRefs. |
| 114 int32_t (*OpenFile)(PP_Resource file_ref_id, | 115 int32_t (*OpenFile)(PP_Resource file_ref_id, |
| 115 int32_t mode, | 116 int32_t mode, |
| 116 PP_FileHandle* file); | 117 PP_FileHandle* file); |
| 117 int32_t (*QueryFile)(PP_Resource file_ref_id, | 118 int32_t (*QueryFile)(PP_Resource file_ref_id, |
| 118 struct PP_FileInfo_Dev* info); | 119 struct PP_FileInfo_Dev* info); |
| 119 }; | 120 }; |
| 120 | 121 |
| 121 #endif // PPAPI_C_PRIVATE_PPB_FLASH_FILE_H_ | 122 #endif // PPAPI_C_PRIVATE_PPB_FLASH_FILE_H_ |
| OLD | NEW |