OLD | NEW |
(Empty) | |
| 1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. |
| 4 */ |
| 5 |
| 6 /* From private/ppb_ext_crx_file_system_private.idl, |
| 7 * modified Wed Apr 17 11:54:28 2013. |
| 8 */ |
| 9 |
| 10 #ifndef PPAPI_C_PRIVATE_PPB_EXT_CRX_FILE_SYSTEM_PRIVATE_H_ |
| 11 #define PPAPI_C_PRIVATE_PPB_EXT_CRX_FILE_SYSTEM_PRIVATE_H_ |
| 12 |
| 13 #include "ppapi/c/pp_completion_callback.h" |
| 14 #include "ppapi/c/pp_instance.h" |
| 15 #include "ppapi/c/pp_macros.h" |
| 16 #include "ppapi/c/pp_resource.h" |
| 17 #include "ppapi/c/pp_stdint.h" |
| 18 |
| 19 #define PPB_EXT_CRXFILESYSTEM_PRIVATE_INTERFACE_0_1 \ |
| 20 "PPB_Ext_CrxFileSystem_Private;0.1" |
| 21 #define PPB_EXT_CRXFILESYSTEM_PRIVATE_INTERFACE \ |
| 22 PPB_EXT_CRXFILESYSTEM_PRIVATE_INTERFACE_0_1 |
| 23 |
| 24 /** |
| 25 * @file |
| 26 */ |
| 27 |
| 28 |
| 29 /** |
| 30 * @addtogroup Interfaces |
| 31 * @{ |
| 32 */ |
| 33 /* <code>PPB_Ext_CrxFileSystem_Private</code> interface */ |
| 34 struct PPB_Ext_CrxFileSystem_Private_0_1 { |
| 35 /** |
| 36 * Create() creates a CRX filesystem resource. It may fail when called from |
| 37 * non-extension context. |
| 38 */ |
| 39 PP_Resource (*Create)(PP_Instance insance); |
| 40 /** |
| 41 * Open() opens the CRX file system for the current extension. It will fail |
| 42 * when called from non-extension context. |
| 43 * |
| 44 * @return An int32_t containing an error code from <code>pp_errors.h</code>. |
| 45 */ |
| 46 int32_t (*Open)(PP_Resource crxfs, struct PP_CompletionCallback callback); |
| 47 }; |
| 48 |
| 49 typedef struct PPB_Ext_CrxFileSystem_Private_0_1 PPB_Ext_CrxFileSystem_Private; |
| 50 /** |
| 51 * @} |
| 52 */ |
| 53 |
| 54 #endif /* PPAPI_C_PRIVATE_PPB_EXT_CRX_FILE_SYSTEM_PRIVATE_H_ */ |
| 55 |
OLD | NEW |