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_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 <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 "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
| 19 #include "webkit/fileapi/fileapi_export.h" |
19 #include "webkit/fileapi/file_system_operation_context.h" | 20 #include "webkit/fileapi/file_system_operation_context.h" |
20 #include "webkit/fileapi/file_system_operation_interface.h" | 21 #include "webkit/fileapi/file_system_operation_interface.h" |
21 #include "webkit/fileapi/file_system_types.h" | 22 #include "webkit/fileapi/file_system_types.h" |
22 #include "webkit/quota/quota_manager.h" | 23 #include "webkit/quota/quota_manager.h" |
23 | 24 |
24 namespace base { | 25 namespace base { |
25 class Time; | 26 class Time; |
26 } | 27 } |
27 | 28 |
28 namespace chromeos { | 29 namespace chromeos { |
29 class CrosMountPointProvider; | 30 class CrosMountPointProvider; |
30 } | 31 } |
31 | 32 |
32 namespace net { | 33 namespace net { |
33 class URLRequest; | 34 class URLRequest; |
34 class URLRequestContext; | 35 class URLRequestContext; |
35 } // namespace net | 36 } // namespace net |
36 | 37 |
37 class GURL; | 38 class GURL; |
38 | 39 |
39 namespace fileapi { | 40 namespace fileapi { |
40 | 41 |
41 class FileSystemContext; | 42 class FileSystemContext; |
42 class FileWriterDelegate; | 43 class FileWriterDelegate; |
43 class FileSystemOperationTest; | 44 class FileSystemOperationTest; |
44 | 45 |
45 // FileSystemOperation implementation for local file systems. | 46 // FileSystemOperation implementation for local file systems. |
46 class FileSystemOperation : public FileSystemOperationInterface { | 47 class FILEAPI_EXPORT FileSystemOperation |
| 48 : public NON_EXPORTED_BASE(FileSystemOperationInterface) { |
47 public: | 49 public: |
48 virtual ~FileSystemOperation(); | 50 virtual ~FileSystemOperation(); |
49 | 51 |
50 // FileSystemOperation overrides. | 52 // FileSystemOperation overrides. |
51 virtual void CreateFile(const GURL& path_url, | 53 virtual void CreateFile(const GURL& path_url, |
52 bool exclusive, | 54 bool exclusive, |
53 const StatusCallback& callback) OVERRIDE; | 55 const StatusCallback& callback) OVERRIDE; |
54 virtual void CreateDirectory(const GURL& path_url, | 56 virtual void CreateDirectory(const GURL& path_url, |
55 bool exclusive, | 57 bool exclusive, |
56 bool recursive, | 58 bool recursive, |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 // FileSystemOperation instance is usually deleted upon completion but | 267 // FileSystemOperation instance is usually deleted upon completion but |
266 // could be deleted while it has inflight callbacks when Cancel is called. | 268 // could be deleted while it has inflight callbacks when Cancel is called. |
267 base::WeakPtrFactory<FileSystemOperation> weak_factory_; | 269 base::WeakPtrFactory<FileSystemOperation> weak_factory_; |
268 | 270 |
269 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); | 271 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); |
270 }; | 272 }; |
271 | 273 |
272 } // namespace fileapi | 274 } // namespace fileapi |
273 | 275 |
274 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ | 276 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ |
OLD | NEW |