OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_PROXY_PPB_FILE_REF_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_FILE_REF_PROXY_H_ |
6 #define PPAPI_PROXY_PPB_FILE_REF_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_FILE_REF_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 PP_Time last_modified_time, | 48 PP_Time last_modified_time, |
49 scoped_refptr<TrackedCallback> callback) OVERRIDE; | 49 scoped_refptr<TrackedCallback> callback) OVERRIDE; |
50 virtual int32_t Delete(scoped_refptr<TrackedCallback> callback) OVERRIDE; | 50 virtual int32_t Delete(scoped_refptr<TrackedCallback> callback) OVERRIDE; |
51 virtual int32_t Rename(PP_Resource new_file_ref, | 51 virtual int32_t Rename(PP_Resource new_file_ref, |
52 scoped_refptr<TrackedCallback> callback) OVERRIDE; | 52 scoped_refptr<TrackedCallback> callback) OVERRIDE; |
53 virtual int32_t Query(PP_FileInfo* info, | 53 virtual int32_t Query(PP_FileInfo* info, |
54 scoped_refptr<TrackedCallback> callback) OVERRIDE; | 54 scoped_refptr<TrackedCallback> callback) OVERRIDE; |
55 virtual int32_t ReadDirectoryEntries( | 55 virtual int32_t ReadDirectoryEntries( |
56 const PP_ArrayOutput& output, | 56 const PP_ArrayOutput& output, |
57 scoped_refptr<TrackedCallback> callback) OVERRIDE; | 57 scoped_refptr<TrackedCallback> callback) OVERRIDE; |
58 virtual const PPB_FileRef_CreateInfo& GetCreateInfo() const OVERRIDE; | 58 virtual const FileRef_CreateInfo& GetCreateInfo() const OVERRIDE; |
59 virtual int32_t QueryInHost(linked_ptr<PP_FileInfo> info, | |
60 scoped_refptr<TrackedCallback> callback) OVERRIDE; | |
61 virtual int32_t ReadDirectoryEntriesInHost( | |
62 linked_ptr<std::vector<ppapi::PPB_FileRef_CreateInfo> > files, | |
63 linked_ptr<std::vector<PP_FileType> > file_types, | |
64 scoped_refptr<TrackedCallback> callback) OVERRIDE; | |
65 | 59 |
66 // Private API | 60 // Private API |
67 virtual PP_Var GetAbsolutePath() OVERRIDE; | 61 virtual PP_Var GetAbsolutePath() OVERRIDE; |
68 | 62 |
69 private: | 63 private: |
70 FileRefResource(Connection connection, | 64 FileRefResource(Connection connection, |
71 PP_Instance instance, | 65 PP_Instance instance, |
72 const FileRef_CreateInfo& info); | 66 const FileRef_CreateInfo& info); |
73 | 67 |
74 void RunTrackedCallback(scoped_refptr<TrackedCallback> callback, | 68 void RunTrackedCallback(scoped_refptr<TrackedCallback> callback, |
(...skipping 23 matching lines...) Expand all Loading... |
98 scoped_refptr<StringVar> path_var_; | 92 scoped_refptr<StringVar> path_var_; |
99 scoped_refptr<StringVar> absolute_path_var_; | 93 scoped_refptr<StringVar> absolute_path_var_; |
100 | 94 |
101 DISALLOW_COPY_AND_ASSIGN(FileRefResource); | 95 DISALLOW_COPY_AND_ASSIGN(FileRefResource); |
102 }; | 96 }; |
103 | 97 |
104 } // namespace proxy | 98 } // namespace proxy |
105 } // namespace ppapi | 99 } // namespace ppapi |
106 | 100 |
107 #endif // PPAPI_PROXY_PPB_FILE_REF_PROXY_H_ | 101 #endif // PPAPI_PROXY_PPB_FILE_REF_PROXY_H_ |
OLD | NEW |