| 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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 309 // TODO(erikkay): is this OK? | 309 // TODO(erikkay): is this OK? | 
| 310 // If success, return true and output the full path of the directory created. | 310 // If success, return true and output the full path of the directory created. | 
| 311 bool CreateNewTempDirectory(const FilePath::StringType& prefix, | 311 bool CreateNewTempDirectory(const FilePath::StringType& prefix, | 
| 312                             FilePath* new_temp_path); | 312                             FilePath* new_temp_path); | 
| 313 // Deprecated temporary compatibility function. | 313 // Deprecated temporary compatibility function. | 
| 314 bool CreateNewTempDirectory(const std::wstring& prefix, | 314 bool CreateNewTempDirectory(const std::wstring& prefix, | 
| 315                             std::wstring* new_temp_path); | 315                             std::wstring* new_temp_path); | 
| 316 | 316 | 
| 317 // Creates a directory, as well as creating any parent directories, if they | 317 // Creates a directory, as well as creating any parent directories, if they | 
| 318 // don't exist. Returns 'true' on successful creation, or if the directory | 318 // don't exist. Returns 'true' on successful creation, or if the directory | 
| 319 // already exists. | 319 // already exists.  The directory is only readable by the current user. | 
| 320 bool CreateDirectory(const FilePath& full_path); | 320 bool CreateDirectory(const FilePath& full_path); | 
| 321 // Deprecated temporary compatibility function. | 321 // Deprecated temporary compatibility function. | 
| 322 bool CreateDirectory(const std::wstring& full_path); | 322 bool CreateDirectory(const std::wstring& full_path); | 
| 323 | 323 | 
| 324 // Returns the file size. Returns true on success. | 324 // Returns the file size. Returns true on success. | 
| 325 bool GetFileSize(const FilePath& file_path, int64* file_size); | 325 bool GetFileSize(const FilePath& file_path, int64* file_size); | 
| 326 // Deprecated temporary compatibility function. | 326 // Deprecated temporary compatibility function. | 
| 327 bool GetFileSize(const std::wstring& file_path, int64* file_size); | 327 bool GetFileSize(const std::wstring& file_path, int64* file_size); | 
| 328 | 328 | 
| 329 // Used to hold information about a given file path.  See GetFileInfo below. | 329 // Used to hold information about a given file path.  See GetFileInfo below. | 
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 513 | 513 | 
| 514 // Renames a file using the SHFileOperation API to ensure that the target file | 514 // Renames a file using the SHFileOperation API to ensure that the target file | 
| 515 // gets the correct default security descriptor in the new path. | 515 // gets the correct default security descriptor in the new path. | 
| 516 bool RenameFileAndResetSecurityDescriptor( | 516 bool RenameFileAndResetSecurityDescriptor( | 
| 517     const FilePath& source_file_path, | 517     const FilePath& source_file_path, | 
| 518     const FilePath& target_file_path); | 518     const FilePath& target_file_path); | 
| 519 | 519 | 
| 520 }  // namespace file_util | 520 }  // namespace file_util | 
| 521 | 521 | 
| 522 #endif  // BASE_FILE_UTIL_H_ | 522 #endif  // BASE_FILE_UTIL_H_ | 
| OLD | NEW | 
|---|