OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PPAPI_THUNK_PPB_FILE_REF_API_H_ |
| 6 #define PPAPI_THUNK_PPB_FILE_REF_API_H_ |
| 7 |
| 8 #include "ppapi/c/dev/ppb_file_ref_dev.h" |
| 9 |
| 10 namespace ppapi { |
| 11 namespace thunk { |
| 12 |
| 13 class PPB_FileRef_API { |
| 14 public: |
| 15 virtual PP_FileSystemType_Dev GetFileSystemType() const = 0; |
| 16 virtual PP_Var GetName() const = 0; |
| 17 virtual PP_Var GetPath() const = 0; |
| 18 virtual PP_Resource GetParent() = 0; |
| 19 virtual int32_t MakeDirectory(PP_Bool make_ancestors, |
| 20 PP_CompletionCallback callback) = 0; |
| 21 virtual int32_t Touch(PP_Time last_access_time, |
| 22 PP_Time last_modified_time, |
| 23 PP_CompletionCallback callback) = 0; |
| 24 virtual int32_t Delete(PP_CompletionCallback callback) = 0; |
| 25 virtual int32_t Rename(PP_Resource new_file_ref, |
| 26 PP_CompletionCallback callback) = 0; |
| 27 }; |
| 28 |
| 29 } // namespace thunk |
| 30 } // namespace ppapi |
| 31 |
| 32 #endif // PPAPI_THUNK_PPB_FILE_REF_API_H_ |
OLD | NEW |