OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 BASE_FILE_UTIL_PROXY_H_ | 5 #ifndef BASE_FILE_UTIL_PROXY_H_ |
6 #define BASE_FILE_UTIL_PROXY_H_ | 6 #define BASE_FILE_UTIL_PROXY_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/base_export.h" | 10 #include "base/base_export.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 // This callback is used by methods that report only an error code. It is | 34 // This callback is used by methods that report only an error code. It is |
35 // valid to pass a null callback to any function that takes a StatusCallback, | 35 // valid to pass a null callback to any function that takes a StatusCallback, |
36 // in which case the operation will complete silently. | 36 // in which case the operation will complete silently. |
37 typedef Callback<void(PlatformFileError)> StatusCallback; | 37 typedef Callback<void(PlatformFileError)> StatusCallback; |
38 | 38 |
39 typedef Callback<void(PlatformFileError, | 39 typedef Callback<void(PlatformFileError, |
40 PassPlatformFile, | 40 PassPlatformFile, |
41 bool /* created */)> CreateOrOpenCallback; | 41 bool /* created */)> CreateOrOpenCallback; |
42 typedef Callback<void(PlatformFileError, | 42 typedef Callback<void(PlatformFileError, |
43 PassPlatformFile, | 43 PassPlatformFile, |
44 FilePath)> CreateTemporaryCallback; | 44 const FilePath&)> CreateTemporaryCallback; |
45 typedef Callback<void(PlatformFileError, | 45 typedef Callback<void(PlatformFileError, |
46 const PlatformFileInfo& | 46 const PlatformFileInfo& |
47 )> GetFileInfoCallback; | 47 )> GetFileInfoCallback; |
48 typedef Callback<void(PlatformFileError, | 48 typedef Callback<void(PlatformFileError, |
49 const char* /* data */, | 49 const char* /* data */, |
50 int /* bytes read */)> ReadCallback; | 50 int /* bytes read */)> ReadCallback; |
51 typedef Callback<void(PlatformFileError, | 51 typedef Callback<void(PlatformFileError, |
52 int /* bytes written */)> WriteCallback; | 52 int /* bytes written */)> WriteCallback; |
53 | 53 |
54 typedef Callback<PlatformFileError(PlatformFile*, bool*)> CreateOrOpenTask; | 54 typedef Callback<PlatformFileError(PlatformFile*, bool*)> CreateOrOpenTask; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 PlatformFile, | 187 PlatformFile, |
188 const StatusCallback& callback); | 188 const StatusCallback& callback); |
189 | 189 |
190 private: | 190 private: |
191 DISALLOW_IMPLICIT_CONSTRUCTORS(FileUtilProxy); | 191 DISALLOW_IMPLICIT_CONSTRUCTORS(FileUtilProxy); |
192 }; | 192 }; |
193 | 193 |
194 } // namespace base | 194 } // namespace base |
195 | 195 |
196 #endif // BASE_FILE_UTIL_PROXY_H_ | 196 #endif // BASE_FILE_UTIL_PROXY_H_ |
OLD | NEW |