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