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

Side by Side Diff: ppapi/c/private/ppb_flash_file.h

Issue 10824048: Factor out PP_FileHandle from ppb_flash_file into its (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/c/private/pp_file_handle.h ('k') | no next file » | 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) 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
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_
OLDNEW
« no previous file with comments | « ppapi/c/private/pp_file_handle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698