| 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 // We're trying to transition away from paths as wstrings into using | 5 // We're trying to transition away from paths as wstrings into using |
| 6 // FilePath objects. This file contains declarations of deprecated | 6 // FilePath objects. This file contains declarations of deprecated |
| 7 // functions. By hiding them here rather in the main header, we hope | 7 // functions. By hiding them here rather in the main header, we hope |
| 8 // to discourage callers. | 8 // to discourage callers. |
| 9 | 9 |
| 10 // See file_util.h for documentation on all functions that don't have | 10 // See file_util.h for documentation on all functions that don't have |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 namespace file_util { | 27 namespace file_util { |
| 28 | 28 |
| 29 // Use the FilePath versions instead. | 29 // Use the FilePath versions instead. |
| 30 BASE_EXPORT FILE* OpenFile(const std::string& filename, const char* mode); | 30 BASE_EXPORT FILE* OpenFile(const std::string& filename, const char* mode); |
| 31 BASE_EXPORT FILE* OpenFile(const std::wstring& filename, const char* mode); | 31 BASE_EXPORT FILE* OpenFile(const std::wstring& filename, const char* mode); |
| 32 | 32 |
| 33 // Appends new_ending to path, adding a separator between the two if necessary. | 33 // Appends new_ending to path, adding a separator between the two if necessary. |
| 34 BASE_EXPORT void AppendToPath(std::wstring* path, | 34 BASE_EXPORT void AppendToPath(std::wstring* path, |
| 35 const std::wstring& new_ending); | 35 const std::wstring& new_ending); |
| 36 | 36 |
| 37 // Use FilePath::Extension instead. | |
| 38 BASE_EXPORT std::wstring GetFileExtensionFromPath(const std::wstring& path); | |
| 39 | |
| 40 // Use version that takes a FilePath. | 37 // Use version that takes a FilePath. |
| 41 BASE_EXPORT bool CopyDirectory(const std::wstring& from_path, | |
| 42 const std::wstring& to_path, | |
| 43 bool recursive); | |
| 44 BASE_EXPORT int ReadFile(const std::wstring& filename, char* data, int size); | 38 BASE_EXPORT int ReadFile(const std::wstring& filename, char* data, int size); |
| 45 BASE_EXPORT int WriteFile(const std::wstring& filename, | 39 BASE_EXPORT int WriteFile(const std::wstring& filename, |
| 46 const char* data, int size); | 40 const char* data, int size); |
| 47 | 41 |
| 48 } // namespace file_util | 42 } // namespace file_util |
| 49 | 43 |
| 50 #endif // BASE_FILE_UTIL_DEPRECATED_H_ | 44 #endif // BASE_FILE_UTIL_DEPRECATED_H_ |
| OLD | NEW |