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_BROWSER_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ |
6 #define WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_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" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "webkit/browser/fileapi/file_system_operation.h" | 13 #include "webkit/browser/fileapi/file_system_operation.h" |
14 #include "webkit/browser/fileapi/file_system_operation_context.h" | 14 #include "webkit/browser/fileapi/file_system_operation_context.h" |
15 #include "webkit/browser/fileapi/file_system_url.h" | 15 #include "webkit/browser/fileapi/file_system_url.h" |
16 #include "webkit/browser/fileapi/file_writer_delegate.h" | 16 #include "webkit/browser/fileapi/file_writer_delegate.h" |
| 17 #include "webkit/browser/webkit_storage_browser_export.h" |
17 #include "webkit/common/blob/scoped_file.h" | 18 #include "webkit/common/blob/scoped_file.h" |
18 #include "webkit/common/quota/quota_types.h" | 19 #include "webkit/common/quota/quota_types.h" |
19 #include "webkit/storage/webkit_storage_export.h" | |
20 | 20 |
21 namespace chromeos { | 21 namespace chromeos { |
22 class CrosMountPointProvider; | 22 class CrosMountPointProvider; |
23 } | 23 } |
24 | 24 |
25 namespace sync_file_system { | 25 namespace sync_file_system { |
26 class SyncableFileSystemOperation; | 26 class SyncableFileSystemOperation; |
27 } | 27 } |
28 | 28 |
29 namespace fileapi { | 29 namespace fileapi { |
30 | 30 |
31 class AsyncFileUtil; | 31 class AsyncFileUtil; |
32 class FileSystemContext; | 32 class FileSystemContext; |
33 class RecursiveOperationDelegate; | 33 class RecursiveOperationDelegate; |
34 | 34 |
35 // FileSystemOperation implementation for local file systems. | 35 // FileSystemOperation implementation for local file systems. |
36 class WEBKIT_STORAGE_EXPORT LocalFileSystemOperation | 36 class WEBKIT_STORAGE_BROWSER_EXPORT LocalFileSystemOperation |
37 : public NON_EXPORTED_BASE(FileSystemOperation), | 37 : public NON_EXPORTED_BASE(FileSystemOperation), |
38 public base::SupportsWeakPtr<LocalFileSystemOperation> { | 38 public base::SupportsWeakPtr<LocalFileSystemOperation> { |
39 public: | 39 public: |
40 // NOTE: This constructor should not be called outside MountPointProviders; | 40 // NOTE: This constructor should not be called outside MountPointProviders; |
41 // instead please consider using | 41 // instead please consider using |
42 // file_system_context->CreateFileSystemOperation() to instantiate | 42 // file_system_context->CreateFileSystemOperation() to instantiate |
43 // an appropriate FileSystemOperation. | 43 // an appropriate FileSystemOperation. |
44 LocalFileSystemOperation( | 44 LocalFileSystemOperation( |
45 const FileSystemURL& url, | 45 const FileSystemURL& url, |
46 FileSystemContext* file_system_context, | 46 FileSystemContext* file_system_context, |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 | 272 |
273 // A flag to make sure we call operation only once per instance. | 273 // A flag to make sure we call operation only once per instance. |
274 OperationType pending_operation_; | 274 OperationType pending_operation_; |
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_BROWSER_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ | 281 #endif // WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_SYSTEM_OPERATION_H_ |
OLD | NEW |