Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: base/file_util.h

Issue 9774: * Revert "Por rt flush_cache tool." (Closed)
Patch Set: Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | base/file_util_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | base/file_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698