Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: webkit/fileapi/file_system_file_util.h

Issue 10447055: Move fileapi into its own component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_directory_database.h ('k') | webkit/fileapi/file_system_mount_point_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698