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 | 5 |
6 /** | 6 /** |
7 * This file defines the API to create a file system associated with a file. | 7 * This file defines the API to create a file system associated with a file. |
8 */ | 8 */ |
9 | 9 |
10 label Chrome { | 10 label Chrome { |
11 M14 = 1.0 | 11 M14 = 1.0 |
12 }; | 12 }; |
13 | 13 |
14 /** | 14 /** |
15 * The <code>PPB_FileSystem</code> struct identifies the file system type | 15 * The <code>PPB_FileSystem</code> struct identifies the file system type |
16 * associated with a file. | 16 * associated with a file. |
17 */ | 17 */ |
18 interface PPB_FileSystem { | 18 interface PPB_FileSystem { |
19 /** Create() creates a file system object of the given type. | 19 /** Create() creates a file system object of the given type. |
20 * | 20 * |
21 * @param[in] instance A <code>PP_Instance</code> indentifying the instance | 21 * @param[in] instance A <code>PP_Instance</code> identifying the instance |
22 * with the file. | 22 * with the file. |
23 * @param[in] type A file system type as defined by | 23 * @param[in] type A file system type as defined by |
24 * <code>PP_FileSystemType</code> enum. | 24 * <code>PP_FileSystemType</code> enum. |
25 * | 25 * |
26 * @return A <code>PP_Resource</code> corresponding to a file system if | 26 * @return A <code>PP_Resource</code> corresponding to a file system if |
27 * successful. | 27 * successful. |
28 */ | 28 */ |
29 PP_Resource Create([in] PP_Instance instance, [in] PP_FileSystemType type); | 29 PP_Resource Create([in] PP_Instance instance, [in] PP_FileSystemType type); |
30 | 30 |
31 /** | 31 /** |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 * system. | 66 * system. |
67 * | 67 * |
68 * @return A <code>PP_FileSystemType</code> with the file system type if | 68 * @return A <code>PP_FileSystemType</code> with the file system type if |
69 * valid or <code>PP_FILESYSTEMTYPE_INVALID</code> if the provided resource | 69 * valid or <code>PP_FILESYSTEMTYPE_INVALID</code> if the provided resource |
70 * is not a valid file system. It is valid to call this function even before | 70 * is not a valid file system. It is valid to call this function even before |
71 * Open() completes. | 71 * Open() completes. |
72 */ | 72 */ |
73 PP_FileSystemType GetType([in] PP_Resource file_system); | 73 PP_FileSystemType GetType([in] PP_Resource file_system); |
74 }; | 74 }; |
75 | 75 |
OLD | NEW |