| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef PPAPI_C_DEV_PPB_FILE_SYSTEM_DEV_H_ | 5 #ifndef PPAPI_C_DEV_PPB_FILE_SYSTEM_DEV_H_ |
| 6 #define PPAPI_C_DEV_PPB_FILE_SYSTEM_DEV_H_ | 6 #define PPAPI_C_DEV_PPB_FILE_SYSTEM_DEV_H_ |
| 7 | 7 |
| 8 #include "ppapi/c/dev/pp_file_info_dev.h" | 8 #include "ppapi/c/dev/pp_file_info_dev.h" |
| 9 #include "ppapi/c/pp_instance.h" | 9 #include "ppapi/c/pp_instance.h" |
| 10 #include "ppapi/c/pp_resource.h" | 10 #include "ppapi/c/pp_resource.h" |
| 11 #include "ppapi/c/pp_stdint.h" | 11 #include "ppapi/c/pp_stdint.h" |
| 12 #include "ppapi/c/pp_time.h" | 12 #include "ppapi/c/pp_time.h" |
| 13 | 13 |
| 14 struct PP_CompletionCallback; | 14 struct PP_CompletionCallback; |
| 15 | 15 |
| 16 #define PPB_FILESYSTEM_DEV_INTERFACE "PPB_FileSystem(Dev);0.2" | 16 #define PPB_FILESYSTEM_DEV_INTERFACE "PPB_FileSystem(Dev);0.3" |
| 17 | 17 |
| 18 struct PPB_FileSystem_Dev { | 18 struct PPB_FileSystem_Dev { |
| 19 // Creates a weak pointer to the filesystem of the given type. | 19 // Creates a weak pointer to the filesystem of the given type. |
| 20 PP_Resource (*Create)(PP_Instance instance, PP_FileSystemType_Dev type); | 20 PP_Resource (*Create)(PP_Instance instance, PP_FileSystemType_Dev type); |
| 21 | 21 |
| 22 // Opens the file system. A file system must be opened before running any | 22 // Opens the file system. A file system must be opened before running any |
| 23 // other operation on it. | 23 // other operation on it. |
| 24 int32_t (*Open)(PP_Resource file_system, | 24 int32_t (*Open)(PP_Resource file_system, |
| 25 int64_t expected_size, | 25 int64_t expected_size, |
| 26 struct PP_CompletionCallback callback); | 26 struct PP_CompletionCallback callback); |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 #endif // PPAPI_C_DEV_PPB_FILE_SYSTEM_DEV_H_ | 29 #endif // PPAPI_C_DEV_PPB_FILE_SYSTEM_DEV_H_ |
| OLD | NEW |