OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This file contains utility functions for dealing with the local | 5 // This file contains utility functions for dealing with the local |
6 // filesystem. | 6 // filesystem. |
7 | 7 |
8 #ifndef BASE_FILE_UTIL_H_ | 8 #ifndef BASE_FILE_UTIL_H_ |
9 #define BASE_FILE_UTIL_H_ | 9 #define BASE_FILE_UTIL_H_ |
10 | 10 |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 | 382 |
383 DISALLOW_EVIL_CONSTRUCTORS(FileEnumerator); | 383 DISALLOW_EVIL_CONSTRUCTORS(FileEnumerator); |
384 }; | 384 }; |
385 | 385 |
386 // Renames a file using the SHFileOperation API to ensure that the target file | 386 // Renames a file using the SHFileOperation API to ensure that the target file |
387 // gets the correct default security descriptor in the new path. | 387 // gets the correct default security descriptor in the new path. |
388 bool RenameFileAndResetSecurityDescriptor( | 388 bool RenameFileAndResetSecurityDescriptor( |
389 const std::wstring& source_file_path, | 389 const std::wstring& source_file_path, |
390 const std::wstring& target_file_path); | 390 const std::wstring& target_file_path); |
391 | 391 |
392 // Clear a specific file from the system cache. After this call, trying | |
393 // to access this file will result in a cold load from the hard drive. | |
394 bool EvictFileFromSystemCache(const FilePath path); | |
395 | |
396 } // namespace file_util | 392 } // namespace file_util |
397 | 393 |
398 #endif // BASE_FILE_UTIL_H_ | 394 #endif // BASE_FILE_UTIL_H_ |
OLD | NEW |