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_CHROMEOS_FILEAPI_FILE_SYSTEM_FILE_UTIL_ASYNC_H_ | 5 #ifndef WEBKIT_CHROMEOS_FILEAPI_FILE_SYSTEM_FILE_UTIL_ASYNC_H_ |
6 #define WEBKIT_CHROMEOS_FILEAPI_FILE_SYSTEM_FILE_UTIL_ASYNC_H_ | 6 #define WEBKIT_CHROMEOS_FILEAPI_FILE_SYSTEM_FILE_UTIL_ASYNC_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/file_util_proxy.h" | 9 #include "base/files/file_util_proxy.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
11 #include "webkit/chromeos/fileapi/async_file_stream.h" | 11 #include "webkit/chromeos/fileapi/async_file_stream.h" |
12 | 12 |
13 namespace fileapi { | 13 namespace fileapi { |
14 | 14 |
15 using base::PlatformFileError; | 15 using base::PlatformFileError; |
16 | 16 |
17 // The interface class of asynchronous file utils. All functions are pure | 17 // The interface class of asynchronous file utils. All functions are pure |
18 // virtual. | 18 // virtual. |
19 class FileUtilAsync { | 19 class FileUtilAsync { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 // TODO(olege): Maybe make it possible to read only a part of the directory. | 114 // TODO(olege): Maybe make it possible to read only a part of the directory. |
115 virtual void ReadDirectory(const FilePath& dir_path, | 115 virtual void ReadDirectory(const FilePath& dir_path, |
116 const ReadDirectoryCallback& callback) = 0; | 116 const ReadDirectoryCallback& callback) = 0; |
117 | 117 |
118 // TODO(olege): Add LocalCopy and LocalMove. | 118 // TODO(olege): Add LocalCopy and LocalMove. |
119 }; | 119 }; |
120 | 120 |
121 } // namespace fileapi | 121 } // namespace fileapi |
122 | 122 |
123 #endif // WEBKIT_CHROMEOS_FILEAPI_FILE_SYSTEM_FILE_UTIL_ASYNC_H_ | 123 #endif // WEBKIT_CHROMEOS_FILEAPI_FILE_SYSTEM_FILE_UTIL_ASYNC_H_ |
OLD | NEW |