summaryrefslogtreecommitdiffstats
path: root/base/file_util.h
diff options
context:
space:
mode:
authordkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-04 21:00:46 +0000
committerdkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-04 21:00:46 +0000
commiteac0709a26a824381291cbf78440c969a846b1ab (patch)
tree98255561598331f85ab1e519c2fba40c16da67e6 /base/file_util.h
parent379979b98bbc0af3e1f3eebacda613c771b2d104 (diff)
downloadchromium_src-eac0709a26a824381291cbf78440c969a846b1ab.zip
chromium_src-eac0709a26a824381291cbf78440c969a846b1ab.tar.gz
chromium_src-eac0709a26a824381291cbf78440c969a846b1ab.tar.bz2
Port more of url_request_unittest.cc.
Also do a little bit of the FilePath rewrite as it pertains to this test. Review URL: http://codereview.chromium.org/9074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4652 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.h')
-rw-r--r--base/file_util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/file_util.h b/base/file_util.h
index 127afd0..2318ec7 100644
--- a/base/file_util.h
+++ b/base/file_util.h
@@ -267,6 +267,8 @@ bool CreateDirectory(const FilePath& full_path);
bool CreateDirectory(const std::wstring& full_path);
// Returns the file size. Returns true on success.
+bool GetFileSize(const FilePath& file_path, int64* file_size);
+// Deprecated temporary compatibility function.
bool GetFileSize(const std::wstring& file_path, int64* file_size);
// Used to hold information about a given file path. See GetFileInfo below.
@@ -281,8 +283,11 @@ struct FileInfo {
};
// Returns information about the given file path.
+bool GetFileInfo(const FilePath& file_path, FileInfo* info);
+// Deprecated temporary compatibility function.
bool GetFileInfo(const std::wstring& file_path, FileInfo* info);
+
// Wrapper for fopen-like calls. Returns non-NULL FILE* on success.
FILE* OpenFile(const FilePath& filename, const char* mode);
// Deprecated temporary compatibility functions.