summaryrefslogtreecommitdiffstats
path: root/net/base/net_util.h
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-04 18:37:31 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-04 18:37:31 +0000
commit630947caffc803a4cc96e3754af45aeedc957c0c (patch)
tree3950c0a479831c51a008a4ef210829a041498f33 /net/base/net_util.h
parent055aedeb2134e49c10c3b3a3593cb8df768d737c (diff)
downloadchromium_src-630947caffc803a4cc96e3754af45aeedc957c0c.zip
chromium_src-630947caffc803a4cc96e3754af45aeedc957c0c.tar.gz
chromium_src-630947caffc803a4cc96e3754af45aeedc957c0c.tar.bz2
Enable localization of default downloaded filename.
Instead of localizing "download" string in net_util.cc, make a caller, download_manger, provide a localized string. BUG=25289 TEST=NetUtilTest.GetSuggestedFilename,DownloadManagerTest.TestDownloadFilename Original patch by hayato@google.com at: http://codereview.chromium.org/343014/show Review URL: http://codereview.chromium.org/367003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30971 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_util.h')
-rw-r--r--net/base/net_util.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/base/net_util.h b/net/base/net_util.h
index 9ef4933..1f1516f 100644
--- a/net/base/net_util.h
+++ b/net/base/net_util.h
@@ -196,8 +196,8 @@ std::wstring StripWWW(const std::wstring& text);
// Gets the filename from the raw Content-Disposition header (as read from the
// network). Otherwise uses the last path component name or hostname from
-// |url|. If there is no filename or it can't be used, the given default name
-// will be used if specified.
+// |url|. If there is no filename or it can't be used, the given |default_name|,
+// will be used unless it is empty.
// Note: it's possible for the suggested filename to be empty (e.g.,
// file:///). referrer_charset is used as one of charsets
@@ -206,7 +206,7 @@ std::wstring StripWWW(const std::wstring& text);
FilePath GetSuggestedFilename(const GURL& url,
const std::string& content_disposition,
const std::string& referrer_charset,
- const char* default_name);
+ const FilePath& default_name);
// Checks the given port against a list of ports which are restricted by
// default. Returns true if the port is allowed, false if it is restricted.