| 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 WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 const std::string& validated_path); | 29 const std::string& validated_path); |
| 30 PPB_FileRef_Impl(PluginInstance* instance, | 30 PPB_FileRef_Impl(PluginInstance* instance, |
| 31 const FilePath& external_file_path); | 31 const FilePath& external_file_path); |
| 32 virtual ~PPB_FileRef_Impl(); | 32 virtual ~PPB_FileRef_Impl(); |
| 33 | 33 |
| 34 static PP_Resource Create(PP_Resource file_system, const char* path); | 34 static PP_Resource Create(PP_Resource file_system, const char* path); |
| 35 | 35 |
| 36 // Resource overrides. | 36 // Resource overrides. |
| 37 virtual PPB_FileRef_Impl* AsPPB_FileRef_Impl(); | 37 virtual PPB_FileRef_Impl* AsPPB_FileRef_Impl(); |
| 38 | 38 |
| 39 // ResourceObjectBase overrides. | 39 // Resource overrides. |
| 40 virtual ::ppapi::thunk::PPB_FileRef_API* AsPPB_FileRef_API() OVERRIDE; | 40 virtual ::ppapi::thunk::PPB_FileRef_API* AsPPB_FileRef_API() OVERRIDE; |
| 41 | 41 |
| 42 // PPB_FileRef_API implementation. | 42 // PPB_FileRef_API implementation. |
| 43 virtual PP_FileSystemType GetFileSystemType() const OVERRIDE; | 43 virtual PP_FileSystemType GetFileSystemType() const OVERRIDE; |
| 44 virtual PP_Var GetName() const OVERRIDE; | 44 virtual PP_Var GetName() const OVERRIDE; |
| 45 virtual PP_Var GetPath() const OVERRIDE; | 45 virtual PP_Var GetPath() const OVERRIDE; |
| 46 virtual PP_Resource GetParent() OVERRIDE; | 46 virtual PP_Resource GetParent() OVERRIDE; |
| 47 virtual int32_t MakeDirectory(PP_Bool make_ancestors, | 47 virtual int32_t MakeDirectory(PP_Bool make_ancestors, |
| 48 PP_CompletionCallback callback) OVERRIDE; | 48 PP_CompletionCallback callback) OVERRIDE; |
| 49 virtual int32_t Touch(PP_Time last_access_time, | 49 virtual int32_t Touch(PP_Time last_access_time, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 73 std::string virtual_path_; // UTF-8 encoded | 73 std::string virtual_path_; // UTF-8 encoded |
| 74 FilePath system_path_; | 74 FilePath system_path_; |
| 75 | 75 |
| 76 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Impl); | 76 DISALLOW_COPY_AND_ASSIGN(PPB_FileRef_Impl); |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 } // namespace ppapi | 79 } // namespace ppapi |
| 80 } // namespace webkit | 80 } // namespace webkit |
| 81 | 81 |
| 82 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ | 82 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FILE_REF_IMPL_H_ |
| OLD | NEW |