| 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 WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_ |
| 6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 const base::File::Info& file_info); | 169 const base::File::Info& file_info); |
| 170 void DidDeleteRecursively(const FileSystemURL& url, | 170 void DidDeleteRecursively(const FileSystemURL& url, |
| 171 const StatusCallback& callback, | 171 const StatusCallback& callback, |
| 172 base::File::Error rv); | 172 base::File::Error rv); |
| 173 void DidWrite(const FileSystemURL& url, | 173 void DidWrite(const FileSystemURL& url, |
| 174 const WriteCallback& callback, | 174 const WriteCallback& callback, |
| 175 base::File::Error rv, | 175 base::File::Error rv, |
| 176 int64 bytes, | 176 int64 bytes, |
| 177 FileWriterDelegate::WriteProgressStatus write_status); | 177 FileWriterDelegate::WriteProgressStatus write_status); |
| 178 void DidOpenFile(const OpenFileCallback& callback, | 178 void DidOpenFile(const OpenFileCallback& callback, |
| 179 base::File::Error rv, | 179 base::File file, |
| 180 base::PassPlatformFile file, | |
| 181 const base::Closure& on_close_callback); | 180 const base::Closure& on_close_callback); |
| 182 | 181 |
| 183 // Used only for internal assertions. | 182 // Used only for internal assertions. |
| 184 // Returns false if there's another inflight pending operation. | 183 // Returns false if there's another inflight pending operation. |
| 185 bool SetPendingOperationType(OperationType type); | 184 bool SetPendingOperationType(OperationType type); |
| 186 | 185 |
| 187 scoped_refptr<FileSystemContext> file_system_context_; | 186 scoped_refptr<FileSystemContext> file_system_context_; |
| 188 | 187 |
| 189 scoped_ptr<FileSystemOperationContext> operation_context_; | 188 scoped_ptr<FileSystemOperationContext> operation_context_; |
| 190 AsyncFileUtil* async_file_util_; // Not owned. | 189 AsyncFileUtil* async_file_util_; // Not owned. |
| 191 | 190 |
| 192 scoped_ptr<FileWriterDelegate> file_writer_delegate_; | 191 scoped_ptr<FileWriterDelegate> file_writer_delegate_; |
| 193 scoped_ptr<RecursiveOperationDelegate> recursive_operation_delegate_; | 192 scoped_ptr<RecursiveOperationDelegate> recursive_operation_delegate_; |
| 194 | 193 |
| 195 StatusCallback cancel_callback_; | 194 StatusCallback cancel_callback_; |
| 196 | 195 |
| 197 // A flag to make sure we call operation only once per instance. | 196 // A flag to make sure we call operation only once per instance. |
| 198 OperationType pending_operation_; | 197 OperationType pending_operation_; |
| 199 | 198 |
| 200 base::WeakPtrFactory<FileSystemOperationImpl> weak_factory_; | 199 base::WeakPtrFactory<FileSystemOperationImpl> weak_factory_; |
| 201 | 200 |
| 202 DISALLOW_COPY_AND_ASSIGN(FileSystemOperationImpl); | 201 DISALLOW_COPY_AND_ASSIGN(FileSystemOperationImpl); |
| 203 }; | 202 }; |
| 204 | 203 |
| 205 } // namespace fileapi | 204 } // namespace fileapi |
| 206 | 205 |
| 207 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_ | 206 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_IMPL_H_ |
| OLD | NEW |