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 #include "base/files/file_util.h" | 5 #include "base/files/file_util.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <io.h> | 8 #include <io.h> |
9 #include <psapi.h> | 9 #include <psapi.h> |
10 #include <shellapi.h> | 10 #include <shellapi.h> |
11 #include <shlobj.h> | 11 #include <shlobj.h> |
| 12 #include <stddef.h> |
12 #include <stdint.h> | 13 #include <stdint.h> |
13 #include <time.h> | 14 #include <time.h> |
14 #include <winsock2.h> | 15 #include <winsock2.h> |
15 | 16 |
16 #include <algorithm> | 17 #include <algorithm> |
17 #include <limits> | 18 #include <limits> |
18 #include <string> | 19 #include <string> |
19 | 20 |
20 #include "base/files/file_enumerator.h" | 21 #include "base/files/file_enumerator.h" |
21 #include "base/files/file_path.h" | 22 #include "base/files/file_path.h" |
22 #include "base/logging.h" | 23 #include "base/logging.h" |
| 24 #include "base/macros.h" |
23 #include "base/metrics/histogram.h" | 25 #include "base/metrics/histogram.h" |
24 #include "base/process/process_handle.h" | 26 #include "base/process/process_handle.h" |
25 #include "base/rand_util.h" | 27 #include "base/rand_util.h" |
26 #include "base/strings/string_number_conversions.h" | 28 #include "base/strings/string_number_conversions.h" |
27 #include "base/strings/string_util.h" | 29 #include "base/strings/string_util.h" |
28 #include "base/strings/utf_string_conversions.h" | 30 #include "base/strings/utf_string_conversions.h" |
29 #include "base/threading/thread_restrictions.h" | 31 #include "base/threading/thread_restrictions.h" |
30 #include "base/time/time.h" | 32 #include "base/time/time.h" |
31 #include "base/win/scoped_handle.h" | 33 #include "base/win/scoped_handle.h" |
32 #include "base/win/windows_version.h" | 34 #include "base/win/windows_version.h" |
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
821 // Like Move, this function is not transactional, so we just | 823 // Like Move, this function is not transactional, so we just |
822 // leave the copied bits behind if deleting from_path fails. | 824 // leave the copied bits behind if deleting from_path fails. |
823 // If to_path exists previously then we have already overwritten | 825 // If to_path exists previously then we have already overwritten |
824 // it by now, we don't get better off by deleting the new bits. | 826 // it by now, we don't get better off by deleting the new bits. |
825 } | 827 } |
826 return false; | 828 return false; |
827 } | 829 } |
828 | 830 |
829 } // namespace internal | 831 } // namespace internal |
830 } // namespace base | 832 } // namespace base |
OLD | NEW |