Chromium Code Reviews| Index: ppapi/thunk/ppb_file_ref_api.h |
| diff --git a/ppapi/thunk/ppb_file_ref_api.h b/ppapi/thunk/ppb_file_ref_api.h |
| index be46cefabf7412645b317e4dc5c943d7605ccd51..a4557fa6fdf6f3844d688ddd5543615b6f30b17b 100644 |
| --- a/ppapi/thunk/ppb_file_ref_api.h |
| +++ b/ppapi/thunk/ppb_file_ref_api.h |
| @@ -8,6 +8,9 @@ |
| #include "ppapi/c/ppb_file_ref.h" |
| namespace ppapi { |
| + |
| +struct PPB_FileRef_CreateInfo; |
| + |
| namespace thunk { |
| class PPB_FileRef_API { |
| @@ -15,8 +18,8 @@ class PPB_FileRef_API { |
| virtual ~PPB_FileRef_API() {} |
| virtual PP_FileSystemType GetFileSystemType() const = 0; |
| - virtual PP_Var GetName() const = 0; |
| - virtual PP_Var GetPath() const = 0; |
| + virtual PP_Var GetName() = 0; |
| + virtual PP_Var GetPath() = 0; |
|
bbudge
2011/08/23 20:35:59
Couldn't we keep these 'const' by using the 'mutab
|
| virtual PP_Resource GetParent() = 0; |
| virtual int32_t MakeDirectory(PP_Bool make_ancestors, |
| PP_CompletionCallback callback) = 0; |
| @@ -26,6 +29,10 @@ class PPB_FileRef_API { |
| virtual int32_t Delete(PP_CompletionCallback callback) = 0; |
| virtual int32_t Rename(PP_Resource new_file_ref, |
| PP_CompletionCallback callback) = 0; |
| + |
| + // Intermal function for use in proxying. Returns the internal CreateInfo |
| + // (the contained resource does not carry a ref on behalf of the caller). |
| + virtual const PPB_FileRef_CreateInfo& GetCreateInfo() const = 0; |
| }; |
| } // namespace thunk |