| 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_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ | 5 #ifndef WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ |
| 6 #define WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ | 6 #define WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
| 12 #include "base/file_util_proxy.h" | 12 #include "base/file_util_proxy.h" |
| 13 #include "base/gtest_prod_util.h" | 13 #include "base/gtest_prod_util.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/platform_file.h" | 16 #include "base/platform_file.h" |
| 17 #include "base/process.h" | 17 #include "base/process.h" |
| 18 #include "webkit/fileapi/file_system_operation.h" |
| 18 #include "webkit/fileapi/file_system_operation_context.h" | 19 #include "webkit/fileapi/file_system_operation_context.h" |
| 19 #include "webkit/fileapi/file_system_operation_interface.h" | |
| 20 #include "webkit/fileapi/file_system_types.h" | 20 #include "webkit/fileapi/file_system_types.h" |
| 21 #include "webkit/fileapi/file_system_url.h" | 21 #include "webkit/fileapi/file_system_url.h" |
| 22 #include "webkit/fileapi/fileapi_export.h" | 22 #include "webkit/fileapi/fileapi_export.h" |
| 23 #include "webkit/quota/quota_manager.h" | 23 #include "webkit/quota/quota_manager.h" |
| 24 | 24 |
| 25 namespace base { | 25 namespace base { |
| 26 class Time; | 26 class Time; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace chromeos { | 29 namespace chromeos { |
| 30 class CrosMountPointProvider; | 30 class CrosMountPointProvider; |
| 31 } | 31 } |
| 32 | 32 |
| 33 namespace net { | 33 namespace net { |
| 34 class URLRequest; | 34 class URLRequest; |
| 35 class URLRequestContext; | 35 class URLRequestContext; |
| 36 } // namespace net | 36 } // namespace net |
| 37 | 37 |
| 38 namespace fileapi { | 38 namespace fileapi { |
| 39 | 39 |
| 40 class FileSystemContext; | 40 class FileSystemContext; |
| 41 class FileSystemOperationTest; | 41 class FileSystemOperationTest; |
| 42 class FileSystemURL; | 42 class FileSystemURL; |
| 43 class FileWriterDelegate; | 43 class FileWriterDelegate; |
| 44 | 44 |
| 45 // FileSystemOperation implementation for local file systems. | 45 // FileSystemOperation implementation for local file systems. |
| 46 class FILEAPI_EXPORT LocalFileSystemOperation | 46 class FILEAPI_EXPORT LocalFileSystemOperation |
| 47 : public NON_EXPORTED_BASE(FileSystemOperationInterface) { | 47 : public NON_EXPORTED_BASE(FileSystemOperation) { |
| 48 public: | 48 public: |
| 49 virtual ~LocalFileSystemOperation(); | 49 virtual ~LocalFileSystemOperation(); |
| 50 | 50 |
| 51 // FileSystemOperation overrides. | 51 // FileSystemOperation overrides. |
| 52 virtual void CreateFile(const FileSystemURL& url, | 52 virtual void CreateFile(const FileSystemURL& url, |
| 53 bool exclusive, | 53 bool exclusive, |
| 54 const StatusCallback& callback) OVERRIDE; | 54 const StatusCallback& callback) OVERRIDE; |
| 55 virtual void CreateDirectory(const FileSystemURL& url, | 55 virtual void CreateDirectory(const FileSystemURL& url, |
| 56 bool exclusive, | 56 bool exclusive, |
| 57 bool recursive, | 57 bool recursive, |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 272 // LocalFileSystemOperation instance is usually deleted upon completion but | 272 // LocalFileSystemOperation instance is usually deleted upon completion but |
| 273 // could be deleted while it has inflight callbacks when Cancel is called. | 273 // could be deleted while it has inflight callbacks when Cancel is called. |
| 274 base::WeakPtrFactory<LocalFileSystemOperation> weak_factory_; | 274 base::WeakPtrFactory<LocalFileSystemOperation> weak_factory_; |
| 275 | 275 |
| 276 DISALLOW_COPY_AND_ASSIGN(LocalFileSystemOperation); | 276 DISALLOW_COPY_AND_ASSIGN(LocalFileSystemOperation); |
| 277 }; | 277 }; |
| 278 | 278 |
| 279 } // namespace fileapi | 279 } // namespace fileapi |
| 280 | 280 |
| 281 #endif // WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ | 281 #endif // WEBKIT_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ |
| OLD | NEW |