| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_THUNK_PPB_FILE_REF_API_H_ | 5 #ifndef PPAPI_THUNK_PPB_FILE_REF_API_H_ |
| 6 #define PPAPI_THUNK_PPB_FILE_REF_API_H_ | 6 #define PPAPI_THUNK_PPB_FILE_REF_API_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "ppapi/c/ppb_file_ref.h" | 9 #include "ppapi/c/ppb_file_ref.h" |
| 10 #include "ppapi/thunk/ppapi_thunk_export.h" | 10 #include "ppapi/thunk/ppapi_thunk_export.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 virtual PP_Var GetPath() const = 0; | 25 virtual PP_Var GetPath() const = 0; |
| 26 virtual PP_Resource GetParent() = 0; | 26 virtual PP_Resource GetParent() = 0; |
| 27 virtual int32_t MakeDirectory(PP_Bool make_ancestors, | 27 virtual int32_t MakeDirectory(PP_Bool make_ancestors, |
| 28 scoped_refptr<TrackedCallback> callback) = 0; | 28 scoped_refptr<TrackedCallback> callback) = 0; |
| 29 virtual int32_t Touch(PP_Time last_access_time, | 29 virtual int32_t Touch(PP_Time last_access_time, |
| 30 PP_Time last_modified_time, | 30 PP_Time last_modified_time, |
| 31 scoped_refptr<TrackedCallback> callback) = 0; | 31 scoped_refptr<TrackedCallback> callback) = 0; |
| 32 virtual int32_t Delete(scoped_refptr<TrackedCallback> callback) = 0; | 32 virtual int32_t Delete(scoped_refptr<TrackedCallback> callback) = 0; |
| 33 virtual int32_t Rename(PP_Resource new_file_ref, | 33 virtual int32_t Rename(PP_Resource new_file_ref, |
| 34 scoped_refptr<TrackedCallback> callback) = 0; | 34 scoped_refptr<TrackedCallback> callback) = 0; |
| 35 virtual int32_t Query(PP_FileInfo *info, |
| 36 scoped_refptr<TrackedCallback> callback) = 0; |
| 35 | 37 |
| 36 // Internal function for use in proxying. Returns the internal CreateInfo | 38 // Internal function for use in proxying. Returns the internal CreateInfo |
| 37 // (the contained resource does not carry a ref on behalf of the caller). | 39 // (the contained resource does not carry a ref on behalf of the caller). |
| 38 virtual const PPB_FileRef_CreateInfo& GetCreateInfo() const = 0; | 40 virtual const PPB_FileRef_CreateInfo& GetCreateInfo() const = 0; |
| 39 | 41 |
| 40 // Private API | 42 // Private API |
| 41 virtual PP_Var GetAbsolutePath() = 0; | 43 virtual PP_Var GetAbsolutePath() = 0; |
| 42 }; | 44 }; |
| 43 | 45 |
| 44 } // namespace thunk | 46 } // namespace thunk |
| 45 } // namespace ppapi | 47 } // namespace ppapi |
| 46 | 48 |
| 47 #endif // PPAPI_THUNK_PPB_FILE_REF_API_H_ | 49 #endif // PPAPI_THUNK_PPB_FILE_REF_API_H_ |
| OLD | NEW |