| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 } | 104 } |
| 105 | 105 |
| 106 friend class FileSystemOperationTest; | 106 friend class FileSystemOperationTest; |
| 107 friend class FileSystemOperationWriteTest; | 107 friend class FileSystemOperationWriteTest; |
| 108 friend class FileWriterDelegateTest; | 108 friend class FileWriterDelegateTest; |
| 109 friend class FileSystemTestOriginHelper; | 109 friend class FileSystemTestOriginHelper; |
| 110 friend class FileSystemQuotaTest; | 110 friend class FileSystemQuotaTest; |
| 111 | 111 |
| 112 void GetUsageAndQuotaThenCallback( | 112 void GetUsageAndQuotaThenCallback( |
| 113 const GURL& origin_url, | 113 const GURL& origin_url, |
| 114 quota::QuotaManager::GetUsageAndQuotaCallback* callback); | 114 const quota::QuotaManager::GetUsageAndQuotaCallback& callback); |
| 115 | 115 |
| 116 void DelayedCreateFileForQuota(quota::QuotaStatusCode status, | 116 void DelayedCreateFileForQuota(quota::QuotaStatusCode status, |
| 117 int64 usage, int64 quota); | 117 int64 usage, int64 quota); |
| 118 void DelayedCreateDirectoryForQuota(quota::QuotaStatusCode status, | 118 void DelayedCreateDirectoryForQuota(quota::QuotaStatusCode status, |
| 119 int64 usage, int64 quota); | 119 int64 usage, int64 quota); |
| 120 void DelayedCopyForQuota(quota::QuotaStatusCode status, | 120 void DelayedCopyForQuota(quota::QuotaStatusCode status, |
| 121 int64 usage, int64 quota); | 121 int64 usage, int64 quota); |
| 122 void DelayedMoveForQuota(quota::QuotaStatusCode status, | 122 void DelayedMoveForQuota(quota::QuotaStatusCode status, |
| 123 int64 usage, int64 quota); | 123 int64 usage, int64 quota); |
| 124 void DelayedWriteForQuota(quota::QuotaStatusCode status, | 124 void DelayedWriteForQuota(quota::QuotaStatusCode status, |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 OperationType pending_operation_; | 233 OperationType pending_operation_; |
| 234 #endif | 234 #endif |
| 235 | 235 |
| 236 // Proxy for calling file_util_proxy methods. | 236 // Proxy for calling file_util_proxy methods. |
| 237 scoped_refptr<base::MessageLoopProxy> proxy_; | 237 scoped_refptr<base::MessageLoopProxy> proxy_; |
| 238 | 238 |
| 239 scoped_ptr<FileSystemCallbackDispatcher> dispatcher_; | 239 scoped_ptr<FileSystemCallbackDispatcher> dispatcher_; |
| 240 | 240 |
| 241 FileSystemOperationContext file_system_operation_context_; | 241 FileSystemOperationContext file_system_operation_context_; |
| 242 | 242 |
| 243 base::WeakPtrFactory<FileSystemOperation> weak_factory_; |
| 243 base::ScopedCallbackFactory<FileSystemOperation> callback_factory_; | 244 base::ScopedCallbackFactory<FileSystemOperation> callback_factory_; |
| 244 | 245 |
| 245 scoped_ptr<ScopedQuotaUtilHelper> quota_util_helper_; | 246 scoped_ptr<ScopedQuotaUtilHelper> quota_util_helper_; |
| 246 | 247 |
| 247 // These are all used only by Write(). | 248 // These are all used only by Write(). |
| 248 friend class FileWriterDelegate; | 249 friend class FileWriterDelegate; |
| 249 scoped_ptr<FileWriterDelegate> file_writer_delegate_; | 250 scoped_ptr<FileWriterDelegate> file_writer_delegate_; |
| 250 scoped_ptr<net::URLRequest> blob_request_; | 251 scoped_ptr<net::URLRequest> blob_request_; |
| 251 scoped_ptr<FileSystemOperation> cancel_operation_; | 252 scoped_ptr<FileSystemOperation> cancel_operation_; |
| 252 | 253 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 269 | 270 |
| 270 // Length to be truncated. | 271 // Length to be truncated. |
| 271 int64 length_; | 272 int64 length_; |
| 272 | 273 |
| 273 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); | 274 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); |
| 274 }; | 275 }; |
| 275 | 276 |
| 276 } // namespace fileapi | 277 } // namespace fileapi |
| 277 | 278 |
| 278 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ | 279 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ |
| OLD | NEW |