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

Side by Side Diff: base/file_util.h

Issue 432001: Remove the deprecated version of ContentsEqual.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | base/file_util.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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 // Same as above, but takes a previously-opened file handle instead of a name. 177 // Same as above, but takes a previously-opened file handle instead of a name.
178 bool GetFileCreationLocalTimeFromHandle(HANDLE file_handle, 178 bool GetFileCreationLocalTimeFromHandle(HANDLE file_handle,
179 LPSYSTEMTIME creation_time); 179 LPSYSTEMTIME creation_time);
180 #endif // defined(OS_WIN) 180 #endif // defined(OS_WIN)
181 181
182 // Returns true if the contents of the two files given are equal, false 182 // Returns true if the contents of the two files given are equal, false
183 // otherwise. If either file can't be read, returns false. 183 // otherwise. If either file can't be read, returns false.
184 bool ContentsEqual(const FilePath& filename1, 184 bool ContentsEqual(const FilePath& filename1,
185 const FilePath& filename2); 185 const FilePath& filename2);
186 // Deprecated temporary compatibility function.
187 bool ContentsEqual(const std::wstring& filename1,
188 const std::wstring& filename2);
189 186
190 // Returns true if the contents of the two text files given are equal, false 187 // Returns true if the contents of the two text files given are equal, false
191 // otherwise. This routine treats "\r\n" and "\n" as equivalent. 188 // otherwise. This routine treats "\r\n" and "\n" as equivalent.
192 bool TextContentsEqual(const FilePath& filename1, const FilePath& filename2); 189 bool TextContentsEqual(const FilePath& filename1, const FilePath& filename2);
193 190
194 // Read the file at |path| into |contents|, returning true on success. 191 // Read the file at |path| into |contents|, returning true on success.
195 // Useful for unit tests. 192 // Useful for unit tests.
196 bool ReadFileToString(const FilePath& path, std::string* contents); 193 bool ReadFileToString(const FilePath& path, std::string* contents);
197 // Deprecated version. 194 // Deprecated version.
198 bool ReadFileToString(const std::wstring& path, std::string* contents); 195 bool ReadFileToString(const std::wstring& path, std::string* contents);
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 526
530 // Renames a file using the SHFileOperation API to ensure that the target file 527 // Renames a file using the SHFileOperation API to ensure that the target file
531 // gets the correct default security descriptor in the new path. 528 // gets the correct default security descriptor in the new path.
532 bool RenameFileAndResetSecurityDescriptor( 529 bool RenameFileAndResetSecurityDescriptor(
533 const FilePath& source_file_path, 530 const FilePath& source_file_path,
534 const FilePath& target_file_path); 531 const FilePath& target_file_path);
535 532
536 } // namespace file_util 533 } // namespace file_util
537 534
538 #endif // BASE_FILE_UTIL_H_ 535 #endif // BASE_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | base/file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698