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" |
11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
12 #include "ppapi/c/dev/ppb_file_ref_dev.h" | 12 #include "ppapi/c/ppb_file_ref.h" |
13 #include "ppapi/thunk/ppb_file_ref_api.h" | 13 #include "ppapi/thunk/ppb_file_ref_api.h" |
14 #include "webkit/plugins/ppapi/resource.h" | 14 #include "webkit/plugins/ppapi/resource.h" |
15 | 15 |
16 namespace webkit { | 16 namespace webkit { |
17 namespace ppapi { | 17 namespace ppapi { |
18 | 18 |
19 class PPB_FileSystem_Impl; | 19 class PPB_FileSystem_Impl; |
20 class PluginInstance; | 20 class PluginInstance; |
21 class PluginModule; | 21 class PluginModule; |
22 | 22 |
(...skipping 10 matching lines...) Expand all Loading... |
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 // ResourceObjectBase 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_Dev 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, |
50 PP_Time last_modified_time, | 50 PP_Time last_modified_time, |
51 PP_CompletionCallback callback) OVERRIDE; | 51 PP_CompletionCallback callback) OVERRIDE; |
52 virtual int32_t Delete(PP_CompletionCallback callback) OVERRIDE; | 52 virtual int32_t Delete(PP_CompletionCallback callback) OVERRIDE; |
53 virtual int32_t Rename(PP_Resource new_file_ref, | 53 virtual int32_t Rename(PP_Resource new_file_ref, |
(...skipping 19 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 |