Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 "ppapi/c/ppb_file_ref.h" | 8 #include "ppapi/c/ppb_file_ref.h" |
| 9 | 9 |
| 10 namespace ppapi { | 10 namespace ppapi { |
| 11 | |
| 12 struct PPB_FileRef_CreateInfo; | |
| 13 | |
| 11 namespace thunk { | 14 namespace thunk { |
| 12 | 15 |
| 13 class PPB_FileRef_API { | 16 class PPB_FileRef_API { |
| 14 public: | 17 public: |
| 15 virtual ~PPB_FileRef_API() {} | 18 virtual ~PPB_FileRef_API() {} |
| 16 | 19 |
| 17 virtual PP_FileSystemType GetFileSystemType() const = 0; | 20 virtual PP_FileSystemType GetFileSystemType() const = 0; |
| 18 virtual PP_Var GetName() const = 0; | 21 virtual PP_Var GetName() = 0; |
| 19 virtual PP_Var GetPath() const = 0; | 22 virtual PP_Var GetPath() = 0; |
|
bbudge
2011/08/23 20:35:59
Couldn't we keep these 'const' by using the 'mutab
| |
| 20 virtual PP_Resource GetParent() = 0; | 23 virtual PP_Resource GetParent() = 0; |
| 21 virtual int32_t MakeDirectory(PP_Bool make_ancestors, | 24 virtual int32_t MakeDirectory(PP_Bool make_ancestors, |
| 22 PP_CompletionCallback callback) = 0; | 25 PP_CompletionCallback callback) = 0; |
| 23 virtual int32_t Touch(PP_Time last_access_time, | 26 virtual int32_t Touch(PP_Time last_access_time, |
| 24 PP_Time last_modified_time, | 27 PP_Time last_modified_time, |
| 25 PP_CompletionCallback callback) = 0; | 28 PP_CompletionCallback callback) = 0; |
| 26 virtual int32_t Delete(PP_CompletionCallback callback) = 0; | 29 virtual int32_t Delete(PP_CompletionCallback callback) = 0; |
| 27 virtual int32_t Rename(PP_Resource new_file_ref, | 30 virtual int32_t Rename(PP_Resource new_file_ref, |
| 28 PP_CompletionCallback callback) = 0; | 31 PP_CompletionCallback callback) = 0; |
| 32 | |
| 33 // Intermal function for use in proxying. Returns the internal CreateInfo | |
| 34 // (the contained resource does not carry a ref on behalf of the caller). | |
| 35 virtual const PPB_FileRef_CreateInfo& GetCreateInfo() const = 0; | |
| 29 }; | 36 }; |
| 30 | 37 |
| 31 } // namespace thunk | 38 } // namespace thunk |
| 32 } // namespace ppapi | 39 } // namespace ppapi |
| 33 | 40 |
| 34 #endif // PPAPI_THUNK_PPB_FILE_REF_API_H_ | 41 #endif // PPAPI_THUNK_PPB_FILE_REF_API_H_ |
| OLD | NEW |