OLD | NEW |
1 /* Copyright 2013 The Chromium Authors. All rights reserved. | 1 /* Copyright 2013 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 /* From private/ppb_isolated_file_system_private.idl, | 6 /* From private/ppb_isolated_file_system_private.idl, |
7 * modified Sat Nov 2 00:10:18 2013. | 7 * modified Fri Nov 8 02:21:15 2013. |
8 */ | 8 */ |
9 | 9 |
10 #ifndef PPAPI_C_PRIVATE_PPB_ISOLATED_FILE_SYSTEM_PRIVATE_H_ | 10 #ifndef PPAPI_C_PRIVATE_PPB_ISOLATED_FILE_SYSTEM_PRIVATE_H_ |
11 #define PPAPI_C_PRIVATE_PPB_ISOLATED_FILE_SYSTEM_PRIVATE_H_ | 11 #define PPAPI_C_PRIVATE_PPB_ISOLATED_FILE_SYSTEM_PRIVATE_H_ |
12 | 12 |
13 #include "ppapi/c/pp_completion_callback.h" | 13 #include "ppapi/c/pp_completion_callback.h" |
14 #include "ppapi/c/pp_instance.h" | 14 #include "ppapi/c/pp_instance.h" |
15 #include "ppapi/c/pp_macros.h" | 15 #include "ppapi/c/pp_macros.h" |
16 #include "ppapi/c/pp_resource.h" | 16 #include "ppapi/c/pp_resource.h" |
17 #include "ppapi/c/pp_stdint.h" | 17 #include "ppapi/c/pp_stdint.h" |
18 | 18 |
19 #define PPB_ISOLATEDFILESYSTEM_PRIVATE_INTERFACE_0_1 \ | 19 #define PPB_ISOLATEDFILESYSTEM_PRIVATE_INTERFACE_0_2 \ |
20 "PPB_IsolatedFileSystem_Private;0.1" | 20 "PPB_IsolatedFileSystem_Private;0.2" |
21 #define PPB_ISOLATEDFILESYSTEM_PRIVATE_INTERFACE \ | 21 #define PPB_ISOLATEDFILESYSTEM_PRIVATE_INTERFACE \ |
22 PPB_ISOLATEDFILESYSTEM_PRIVATE_INTERFACE_0_1 | 22 PPB_ISOLATEDFILESYSTEM_PRIVATE_INTERFACE_0_2 |
23 | 23 |
24 /** | 24 /** |
25 * @file | 25 * @file |
26 */ | 26 */ |
27 | 27 |
28 | 28 |
29 /** | 29 /** |
30 * @addtogroup Enums | 30 * @addtogroup Enums |
31 * @{ | 31 * @{ |
32 */ | 32 */ |
33 /** | 33 /** |
34 * The <code>PP_IsolatedFileSystemType_Private</code> values indicate the type | 34 * The <code>PP_IsolatedFileSystemType_Private</code> values indicate the type |
35 * of isolated file systems. | 35 * of isolated file systems. |
36 */ | 36 */ |
37 typedef enum { | 37 typedef enum { |
38 /** Type for invalid file systems */ | 38 /** Type for invalid file systems */ |
39 PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_INVALID = 0, | 39 PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_INVALID = 0, |
40 /** Type for CRX file systems */ | 40 /** Type for CRX file systems */ |
41 PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_CRX = 1 | 41 PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_CRX = 1, |
| 42 /** Type for PluginPrivate file systems */ |
| 43 PP_ISOLATEDFILESYSTEMTYPE_PRIVATE_PLUGINPRIVATE = 2 |
42 } PP_IsolatedFileSystemType_Private; | 44 } PP_IsolatedFileSystemType_Private; |
43 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_IsolatedFileSystemType_Private, 4); | 45 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_IsolatedFileSystemType_Private, 4); |
44 /** | 46 /** |
45 * @} | 47 * @} |
46 */ | 48 */ |
47 | 49 |
48 /** | 50 /** |
49 * @addtogroup Interfaces | 51 * @addtogroup Interfaces |
50 * @{ | 52 * @{ |
51 */ | 53 */ |
52 /* <code>PPB_IsolatedFileSystem_Private</code> interface */ | 54 /* <code>PPB_IsolatedFileSystem_Private</code> interface */ |
53 struct PPB_IsolatedFileSystem_Private_0_1 { | 55 struct PPB_IsolatedFileSystem_Private_0_2 { |
54 /** | 56 /** |
55 * Open() opens a file system corresponding the given file system type. | 57 * Open() opens a file system corresponding the given file system type. |
56 * | 58 * |
57 * When opening the CRX file system, this should be called from an extension | 59 * When opening the CRX file system, this should be called from an extension |
58 * context, otherwise it will fail. | 60 * context, otherwise it will fail. |
59 * | 61 * |
60 * @param[in] instance A <code>PP_Instance</code> identifying the instance | 62 * @param[in] instance A <code>PP_Instance</code> identifying the instance |
61 * with the file system. | 63 * with the file system. |
62 * @param[in] type A file system type as defined by | 64 * @param[in] type A file system type as defined by |
63 * <code>PP_IsolatedFileSystemType_Private</code> enum. | 65 * <code>PP_IsolatedFileSystemType_Private</code> enum. |
64 * @param[out] file_system An output <code>PP_Resource</code> corresponding | 66 * @param[out] file_system An output <code>PP_Resource</code> corresponding |
65 * to a PPB_FileSystem. | 67 * to a PPB_FileSystem. |
66 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon | 68 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon |
67 * completion of Open. | 69 * completion of Open. |
68 * | 70 * |
69 * @return An int32_t containing an error code from <code>pp_errors.h</code>. | 71 * @return An int32_t containing an error code from <code>pp_errors.h</code>. |
70 */ | 72 */ |
71 int32_t (*Open)(PP_Instance instance, | 73 int32_t (*Open)(PP_Instance instance, |
72 PP_IsolatedFileSystemType_Private type, | 74 PP_IsolatedFileSystemType_Private type, |
73 PP_Resource* file_system, | 75 PP_Resource* file_system, |
74 struct PP_CompletionCallback callback); | 76 struct PP_CompletionCallback callback); |
75 }; | 77 }; |
76 | 78 |
77 typedef struct PPB_IsolatedFileSystem_Private_0_1 | 79 typedef struct PPB_IsolatedFileSystem_Private_0_2 |
78 PPB_IsolatedFileSystem_Private; | 80 PPB_IsolatedFileSystem_Private; |
79 /** | 81 /** |
80 * @} | 82 * @} |
81 */ | 83 */ |
82 | 84 |
83 #endif /* PPAPI_C_PRIVATE_PPB_ISOLATED_FILE_SYSTEM_PRIVATE_H_ */ | 85 #endif /* PPAPI_C_PRIVATE_PPB_ISOLATED_FILE_SYSTEM_PRIVATE_H_ */ |
84 | 86 |
OLD | NEW |