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_FILE_UTIL_H_ | 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ |
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ | 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ |
7 | 7 |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/file_util_proxy.h" | 9 #include "base/file_util_proxy.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
| 11 #include "webkit/fileapi/fileapi_export.h" |
11 #include "webkit/fileapi/file_system_path.h" | 12 #include "webkit/fileapi/file_system_path.h" |
12 | 13 |
13 namespace base { | 14 namespace base { |
14 class Time; | 15 class Time; |
15 } | 16 } |
16 | 17 |
17 namespace fileapi { | 18 namespace fileapi { |
18 | 19 |
19 using base::PlatformFile; | 20 using base::PlatformFile; |
20 using base::PlatformFileError; | 21 using base::PlatformFileError; |
21 class FileSystemOperationContext; | 22 class FileSystemOperationContext; |
22 | 23 |
23 // A file utility interface that provides basic file utility methods for | 24 // A file utility interface that provides basic file utility methods for |
24 // FileSystem API. | 25 // FileSystem API. |
25 // | 26 // |
26 // Layering structure of the FileSystemFileUtil was split out. | 27 // Layering structure of the FileSystemFileUtil was split out. |
27 // See http://crbug.com/128136 if you need it. | 28 // See http://crbug.com/128136 if you need it. |
28 class FileSystemFileUtil { | 29 class FILEAPI_EXPORT FileSystemFileUtil { |
29 public: | 30 public: |
30 // It will be implemented by each subclass such as FileSystemFileEnumerator. | 31 // It will be implemented by each subclass such as FileSystemFileEnumerator. |
31 class AbstractFileEnumerator { | 32 class AbstractFileEnumerator { |
32 public: | 33 public: |
33 virtual ~AbstractFileEnumerator() {} | 34 virtual ~AbstractFileEnumerator() {} |
34 | 35 |
35 // Returns an empty string if there are no more results. | 36 // Returns an empty string if there are no more results. |
36 virtual FilePath Next() = 0; | 37 virtual FilePath Next() = 0; |
37 | 38 |
38 virtual int64 Size() = 0; | 39 virtual int64 Size() = 0; |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 protected: | 177 protected: |
177 FileSystemFileUtil() {} | 178 FileSystemFileUtil() {} |
178 | 179 |
179 private: | 180 private: |
180 DISALLOW_COPY_AND_ASSIGN(FileSystemFileUtil); | 181 DISALLOW_COPY_AND_ASSIGN(FileSystemFileUtil); |
181 }; | 182 }; |
182 | 183 |
183 } // namespace fileapi | 184 } // namespace fileapi |
184 | 185 |
185 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ | 186 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ |
OLD | NEW |