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

Side by Side Diff: ppapi/api/trusted/ppb_file_io_trusted.idl

Issue 7448005: Missing changes for IDL (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/api/pp_stdint.idl ('k') | ppapi/c/pp_stdint.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) 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 5
6 /* 6 /*
7 * This file defines the trusted file IO interface 7 * This file defines the trusted file IO interface
8 */ 8 */
9 9
10 label Chrome { 10 label Chrome {
11 M14= 0.4 11 M14= 0.4
12 }; 12 };
13 13
14 // Available only to trusted implementations. 14 // Available only to trusted implementations.
15 interface PPB_FileIOTrusted { 15 interface PPB_FileIOTrusted {
16 /** 16 /**
17 * Returns a file descriptor corresponding to the given FileIO object. On 17 * Returns a file descriptor corresponding to the given FileIO object. On
18 * Windows, returns a HANDLE; on all other platforms, returns a POSIX file 18 * Windows, returns a HANDLE; on all other platforms, returns a POSIX file
19 * descriptor. The FileIO object must have been opened with a successful 19 * descriptor. The FileIO object must have been opened with a successful
20 * call to FileIO::Open. The file descriptor will be closed automatically 20 * call to FileIO::Open. The file descriptor will be closed automatically
21 * when the FileIO object is closed or destroyed. 21 * when the FileIO object is closed or destroyed.
22 */ 22 */
23 int32_t GetOSFileDescriptor([in] PP_Resource file_io); 23 int32_t GetOSFileDescriptor([in] PP_Resource file_io);
24 24
25 // Notifies the browser that underlying file will be modified. This gives 25 /**
26 // the browser the opportunity to apply quota restrictions and possibly 26 * Notifies the browser that underlying file will be modified. This gives
27 // return an error to indicate that the write is not allowed. 27 * the browser the opportunity to apply quota restrictions and possibly
28 * return an error to indicate that the write is not allowed.
29 */
28 int32_t WillWrite([in] PP_Resource file_io, 30 int32_t WillWrite([in] PP_Resource file_io,
29 [in] int64_t offset, 31 [in] int64_t offset,
30 [in] int32_t bytes_to_write, 32 [in] int32_t bytes_to_write,
31 [in] PP_CompletionCallback callback); 33 [in] PP_CompletionCallback callback);
32 34
33 /** 35 /**
34 * Notifies the browser that underlying file will be modified. This gives 36 * Notifies the browser that underlying file will be modified. This gives
35 * the browser the opportunity to apply quota restrictions and possibly 37 * the browser the opportunity to apply quota restrictions and possibly
36 * return an error to indicate that the write is not allowed. 38 * return an error to indicate that the write is not allowed.
37 * 39 *
38 * TODO(darin): Maybe unify the above into a single WillChangeFileSize 40 * TODO(darin): Maybe unify the above into a single WillChangeFileSize
39 * 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
40 * Write and SetLength calls. WillChangeFileSize would require the caller to 42 * Write and SetLength calls. WillChangeFileSize would require the caller to
41 * 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
42 * undesirable. 44 * undesirable.
43 */ 45 */
44 int32_t WillSetLength([in] PP_Resource file_io, 46 int32_t WillSetLength([in] PP_Resource file_io,
45 [in] int64_t length, 47 [in] int64_t length,
46 [in] PP_CompletionCallback callback); 48 [in] PP_CompletionCallback callback);
47 49
48 }; 50 };
49 51
OLDNEW
« no previous file with comments | « ppapi/api/pp_stdint.idl ('k') | ppapi/c/pp_stdint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698