| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_FILE_CALLBACKS_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_FILE_CALLBACKS_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_FILE_CALLBACKS_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_FILE_CALLBACKS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 // FileSystemCallbackDispatcher implementation. | 63 // FileSystemCallbackDispatcher implementation. |
| 64 virtual void DidSucceed(); | 64 virtual void DidSucceed(); |
| 65 virtual void DidReadMetadata( | 65 virtual void DidReadMetadata( |
| 66 const base::PlatformFileInfo& file_info, | 66 const base::PlatformFileInfo& file_info, |
| 67 const base::FilePath& unused); | 67 const base::FilePath& unused); |
| 68 virtual void DidCreateSnapshotFile( | 68 virtual void DidCreateSnapshotFile( |
| 69 const base::PlatformFileInfo& file_info, | 69 const base::PlatformFileInfo& file_info, |
| 70 const base::FilePath& path); | 70 const base::FilePath& path); |
| 71 virtual void DidReadDirectory( | 71 virtual void DidReadDirectory( |
| 72 const std::vector<base::FileUtilProxy::Entry>& entries, bool has_more); | 72 const std::vector<fileapi::FileSystemOperation::Entry>& entries, |
| 73 bool has_more); |
| 73 virtual void DidOpenFileSystem(const std::string&, | 74 virtual void DidOpenFileSystem(const std::string&, |
| 74 const GURL& root_url); | 75 const GURL& root_url); |
| 75 virtual void DidFail(base::PlatformFileError error_code); | 76 virtual void DidFail(base::PlatformFileError error_code); |
| 76 virtual void DidWrite(int64 bytes, bool complete); | 77 virtual void DidWrite(int64 bytes, bool complete); |
| 77 | 78 |
| 78 scoped_refptr< ::ppapi::TrackedCallback> GetTrackedCallback() const; | 79 scoped_refptr< ::ppapi::TrackedCallback> GetTrackedCallback() const; |
| 79 | 80 |
| 80 private: | 81 private: |
| 81 void RunCallback(base::PlatformFileError error_code); | 82 void RunCallback(base::PlatformFileError error_code); |
| 82 | 83 |
| 83 scoped_refptr< ::ppapi::TrackedCallback> callback_; | 84 scoped_refptr< ::ppapi::TrackedCallback> callback_; |
| 84 linked_ptr<PP_FileInfo> info_; | 85 linked_ptr<PP_FileInfo> info_; |
| 85 PP_FileSystemType file_system_type_; | 86 PP_FileSystemType file_system_type_; |
| 86 PPB_FileRef_Impl* read_entries_dir_ref_; | 87 PPB_FileRef_Impl* read_entries_dir_ref_; |
| 87 linked_ptr<CreateInfos> read_entries_files_; | 88 linked_ptr<CreateInfos> read_entries_files_; |
| 88 linked_ptr<FileTypes> read_entries_file_types_; | 89 linked_ptr<FileTypes> read_entries_file_types_; |
| 89 }; | 90 }; |
| 90 | 91 |
| 91 } // namespace ppapi | 92 } // namespace ppapi |
| 92 } // namespace webkit | 93 } // namespace webkit |
| 93 | 94 |
| 94 #endif // WEBKIT_PLUGINS_PPAPI_FILE_CALLBACKS_H_ | 95 #endif // WEBKIT_PLUGINS_PPAPI_FILE_CALLBACKS_H_ |
| OLD | NEW |