From 498c1a6b2dc98869e0703127565247830227d075 Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> Date: Mon, 24 Nov 2008 23:37:04 +0000 Subject: Clean up some net/ code. Change a number of wstrings to FilePaths. Review URL: http://codereview.chromium.org/12409 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5944 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/net_util.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'net/base/net_util.h') diff --git a/net/base/net_util.h b/net/base/net_util.h index f8f49b8..fb6841f 100644 --- a/net/base/net_util.h +++ b/net/base/net_util.h @@ -17,6 +17,7 @@ #include "googleurl/src/url_canon.h" #include "googleurl/src/url_parse.h" +class FilePath; class GURL; namespace base { @@ -33,6 +34,8 @@ GURL FilePathToFileURL(const std::wstring& file_path); // file URL must be well-formed (GURL::is_valid() must return true); we don't // handle degenerate cases here. Returns true on success, false if it isn't a // valid file URL. On failure, *file_path will be empty. +bool FileURLToFilePath(const GURL& url, FilePath* file_path); +// Deprecated temporary compatibility function. bool FileURLToFilePath(const GURL& url, std::wstring* file_path); // Return the value of the HTTP response header with name 'name'. 'headers' -- cgit v1.1