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

Side by Side Diff: ppapi/c/dev/ppb_file_io_trusted_dev.h

Issue 6899055: PPAPI: Force async callback invocation option. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/dev/ppb_file_io_dev.h ('k') | ppapi/c/dev/ppb_file_ref_dev.h » ('j') | 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) 2010 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_DEV_PPB_FILE_IO_TRUSTED_DEV_H_ 5 #ifndef PPAPI_C_DEV_PPB_FILE_IO_TRUSTED_DEV_H_
6 #define PPAPI_C_DEV_PPB_FILE_IO_TRUSTED_DEV_H_ 6 #define PPAPI_C_DEV_PPB_FILE_IO_TRUSTED_DEV_H_
7 7
8 #include "ppapi/c/pp_resource.h" 8 #include "ppapi/c/pp_resource.h"
9 #include "ppapi/c/pp_stdint.h" 9 #include "ppapi/c/pp_stdint.h"
10 10
11 struct PP_CompletionCallback; 11 struct PP_CompletionCallback;
12 12
13 #define PPB_FILEIOTRUSTED_DEV_INTERFACE_0_2 "PPB_FileIOTrusted(Dev);0.2" 13 #define PPB_FILEIOTRUSTED_DEV_INTERFACE_0_3 "PPB_FileIOTrusted(Dev);0.3"
14 #define PPB_FILEIOTRUSTED_DEV_INTERFACE PPB_FILEIOTRUSTED_DEV_INTERFACE_0_2 14 #define PPB_FILEIOTRUSTED_DEV_INTERFACE PPB_FILEIOTRUSTED_DEV_INTERFACE_0_3
15 15
16 // Available only to trusted implementations. 16 // Available only to trusted implementations.
17 struct PPB_FileIOTrusted_Dev { 17 struct PPB_FileIOTrusted_Dev {
18 // Returns a file descriptor corresponding to the given FileIO object. On 18 // Returns a file descriptor corresponding to the given FileIO object. On
19 // Windows, returns a HANDLE; on all other platforms, returns a POSIX file 19 // Windows, returns a HANDLE; on all other platforms, returns a POSIX file
20 // descriptor. The FileIO object must have been opened with a successful 20 // descriptor. The FileIO object must have been opened with a successful
21 // call to FileIO::Open. The file descriptor will be closed automatically 21 // call to FileIO::Open. The file descriptor will be closed automatically
22 // when the FileIO object is closed or destroyed. 22 // when the FileIO object is closed or destroyed.
23 int32_t (*GetOSFileDescriptor)(PP_Resource file_io); 23 int32_t (*GetOSFileDescriptor)(PP_Resource file_io);
24 24
(...skipping 13 matching lines...) Expand all
38 struct PP_CompletionCallback callback); 38 struct PP_CompletionCallback callback);
39 39
40 // TODO(darin): Maybe unify the above into a single WillChangeFileSize 40 // TODO(darin): Maybe unify the above into a single WillChangeFileSize
41 // method? The above methods have the advantage of mapping to PPB_FileIO 41 // method? The above methods have the advantage of mapping to PPB_FileIO
42 // Write and SetLength calls. WillChangeFileSize would require the caller to 42 // Write and SetLength calls. WillChangeFileSize would require the caller to
43 // compute the file size resulting from a Write call, which may be 43 // compute the file size resulting from a Write call, which may be
44 // undesirable. 44 // undesirable.
45 }; 45 };
46 46
47 #endif /* PPAPI_C_DEV_PPB_FILE_IO_TRUSTED_DEV_H_ */ 47 #endif /* PPAPI_C_DEV_PPB_FILE_IO_TRUSTED_DEV_H_ */
48
OLDNEW
« no previous file with comments | « ppapi/c/dev/ppb_file_io_dev.h ('k') | ppapi/c/dev/ppb_file_ref_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698