Index: base/files/file_util.h |
diff --git a/base/files/file_util.h b/base/files/file_util.h |
index 7f169f1c54b7b58f05c9a31d8eb0f67e4f1acad0..96b37bbb9be7c5fa9c39bc8d6fd5f453f4e9df74 100644 |
--- a/base/files/file_util.h |
+++ b/base/files/file_util.h |
@@ -10,9 +10,7 @@ |
#include "build/build_config.h" |
-#if defined(OS_WIN) |
-#include <windows.h> |
-#elif defined(OS_POSIX) |
+#if defined(OS_POSIX) |
#include <sys/stat.h> |
#include <unistd.h> |
#endif |
@@ -69,15 +67,6 @@ BASE_EXPORT int64 ComputeDirectorySize(const FilePath& root_path); |
// TO "rm -rf", SO USE WITH CAUTION. |
BASE_EXPORT bool DeleteFile(const FilePath& path, bool recursive); |
-#if defined(OS_WIN) |
-// Schedules to delete the given path, whether it's a file or a directory, until |
-// the operating system is restarted. |
-// Note: |
-// 1) The file/directory to be deleted should exist in a temp folder. |
-// 2) The directory to be deleted must be empty. |
-BASE_EXPORT bool DeleteFileAfterReboot(const FilePath& path); |
-#endif |
- |
// Moves the given path, whether it's a file or a directory. |
// If a simple rename is not possible, such as in the case where the paths are |
// on different volumes, this will attempt to copy and delete. Returns |
@@ -275,22 +264,6 @@ BASE_EXPORT bool GetFileSize(const FilePath& file_path, int64* file_size); |
// or if |real_path| would be longer than MAX_PATH characters. |
BASE_EXPORT bool NormalizeFilePath(const FilePath& path, FilePath* real_path); |
-#if defined(OS_WIN) |
- |
-// Given a path in NT native form ("\Device\HarddiskVolumeXX\..."), |
-// return in |drive_letter_path| the equivalent path that starts with |
-// a drive letter ("C:\..."). Return false if no such path exists. |
-BASE_EXPORT bool DevicePathToDriveLetterPath(const FilePath& device_path, |
- FilePath* drive_letter_path); |
- |
-// Given an existing file in |path|, set |real_path| to the path |
-// in native NT format, of the form "\Device\HarddiskVolumeXX\..". |
-// Returns false if the path can not be found. Empty files cannot |
-// be resolved with this function. |
-BASE_EXPORT bool NormalizeToNativeFilePath(const FilePath& path, |
- FilePath* nt_path); |
-#endif |
- |
// This function will return if the given file is a symlink or not. |
BASE_EXPORT bool IsLink(const FilePath& file_path); |
@@ -421,15 +394,6 @@ namespace internal { |
BASE_EXPORT bool MoveUnsafe(const FilePath& from_path, |
const FilePath& to_path); |
-#if defined(OS_WIN) |
-// Copy from_path to to_path recursively and then delete from_path recursively. |
-// Returns true if all operations succeed. |
-// This function simulates Move(), but unlike Move() it works across volumes. |
-// This function is not transactional. |
-BASE_EXPORT bool CopyAndDeleteDirectory(const FilePath& from_path, |
- const FilePath& to_path); |
-#endif // defined(OS_WIN) |
- |
} // namespace internal |
} // namespace base |