| 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 kOperationCancel, | 244 kOperationCancel, |
| 245 }; | 245 }; |
| 246 | 246 |
| 247 // A flag to make sure we call operation only once per instance. | 247 // A flag to make sure we call operation only once per instance. |
| 248 OperationType pending_operation_; | 248 OperationType pending_operation_; |
| 249 #endif | 249 #endif |
| 250 | 250 |
| 251 // Proxy for calling file_util_proxy methods. | 251 // Proxy for calling file_util_proxy methods. |
| 252 scoped_refptr<base::MessageLoopProxy> proxy_; | 252 scoped_refptr<base::MessageLoopProxy> proxy_; |
| 253 | 253 |
| 254 // This can be NULL if the operation is cancelled on the way. |
| 254 scoped_ptr<FileSystemCallbackDispatcher> dispatcher_; | 255 scoped_ptr<FileSystemCallbackDispatcher> dispatcher_; |
| 255 | 256 |
| 256 FileSystemOperationContext operation_context_; | 257 FileSystemOperationContext operation_context_; |
| 257 | 258 |
| 258 base::WeakPtrFactory<FileSystemOperation> weak_factory_; | 259 base::WeakPtrFactory<FileSystemOperation> weak_factory_; |
| 259 | 260 |
| 260 scoped_ptr<ScopedQuotaUtilHelper> quota_util_helper_; | 261 scoped_ptr<ScopedQuotaUtilHelper> quota_util_helper_; |
| 261 | 262 |
| 262 // These are all used only by Write(). | 263 // These are all used only by Write(). |
| 263 friend class FileWriterDelegate; | 264 friend class FileWriterDelegate; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 284 | 285 |
| 285 // Length to be truncated. | 286 // Length to be truncated. |
| 286 int64 length_; | 287 int64 length_; |
| 287 | 288 |
| 288 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); | 289 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); |
| 289 }; | 290 }; |
| 290 | 291 |
| 291 } // namespace fileapi | 292 } // namespace fileapi |
| 292 | 293 |
| 293 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ | 294 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ |
| OLD | NEW |