| 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_FILEAPI_FILE_SYSTEM_OPERATION_H_ | 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ |
| 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ | 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 bool created); | 105 bool created); |
| 106 | 106 |
| 107 // Callback for CreateFile for |exclusive|=false cases. | 107 // Callback for CreateFile for |exclusive|=false cases. |
| 108 void DidEnsureFileExistsNonExclusive(base::PlatformFileError rv, | 108 void DidEnsureFileExistsNonExclusive(base::PlatformFileError rv, |
| 109 bool created); | 109 bool created); |
| 110 | 110 |
| 111 // Generic callback that translates platform errors to WebKit error codes. | 111 // Generic callback that translates platform errors to WebKit error codes. |
| 112 void DidFinishFileOperation(base::PlatformFileError rv); | 112 void DidFinishFileOperation(base::PlatformFileError rv); |
| 113 | 113 |
| 114 void DidDirectoryExists(base::PlatformFileError rv, | 114 void DidDirectoryExists(base::PlatformFileError rv, |
| 115 const base::PlatformFileInfo& file_info); | 115 const base::PlatformFileInfo& file_info, |
| 116 const FilePath& unused); |
| 116 void DidFileExists(base::PlatformFileError rv, | 117 void DidFileExists(base::PlatformFileError rv, |
| 117 const base::PlatformFileInfo& file_info); | 118 const base::PlatformFileInfo& file_info, |
| 119 const FilePath& unused); |
| 118 void DidGetMetadata(base::PlatformFileError rv, | 120 void DidGetMetadata(base::PlatformFileError rv, |
| 119 const base::PlatformFileInfo& file_info); | 121 const base::PlatformFileInfo& file_info, |
| 122 const FilePath& platform_path); |
| 120 void DidReadDirectory( | 123 void DidReadDirectory( |
| 121 base::PlatformFileError rv, | 124 base::PlatformFileError rv, |
| 122 const std::vector<base::FileUtilProxy::Entry>& entries); | 125 const std::vector<base::FileUtilProxy::Entry>& entries); |
| 123 void DidWrite( | 126 void DidWrite( |
| 124 base::PlatformFileError rv, | 127 base::PlatformFileError rv, |
| 125 int64 bytes, | 128 int64 bytes, |
| 126 bool complete); | 129 bool complete); |
| 127 void DidTouchFile(base::PlatformFileError rv); | 130 void DidTouchFile(base::PlatformFileError rv); |
| 128 | 131 |
| 129 // Helper for Write(). | 132 // Helper for Write(). |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 scoped_ptr<FileWriterDelegate> file_writer_delegate_; | 204 scoped_ptr<FileWriterDelegate> file_writer_delegate_; |
| 202 scoped_ptr<net::URLRequest> blob_request_; | 205 scoped_ptr<net::URLRequest> blob_request_; |
| 203 scoped_ptr<FileSystemOperation> cancel_operation_; | 206 scoped_ptr<FileSystemOperation> cancel_operation_; |
| 204 | 207 |
| 205 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); | 208 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); |
| 206 }; | 209 }; |
| 207 | 210 |
| 208 } // namespace fileapi | 211 } // namespace fileapi |
| 209 | 212 |
| 210 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ | 213 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ |
| OLD | NEW |