summaryrefslogtreecommitdiffstats
path: root/net/base/net_util.h
diff options
context:
space:
mode:
authorasanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-15 20:07:31 +0000
committerasanka@chromium.org <asanka@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-12-15 20:07:31 +0000
commit80456899565a20e8138450c43a7e09d40d2dd2b5 (patch)
tree06b62649239ea09794fdd6bfb9489320ea533ec0 /net/base/net_util.h
parentc03898565b742f4561bc9188a2991da1778cc845 (diff)
downloadchromium_src-80456899565a20e8138450c43a7e09d40d2dd2b5.zip
chromium_src-80456899565a20e8138450c43a7e09d40d2dd2b5.tar.gz
chromium_src-80456899565a20e8138450c43a7e09d40d2dd2b5.tar.bz2
Move DecodeFilenameValue and DecodeExt value into http_content_disposition.
BUG=none Review URL: https://chromiumcodereview.appspot.com/11471041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173307 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_util.h')
-rw-r--r--net/base/net_util.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/net/base/net_util.h b/net/base/net_util.h
index 444a547..874f3e2 100644
--- a/net/base/net_util.h
+++ b/net/base/net_util.h
@@ -173,12 +173,6 @@ NET_EXPORT std::string GetHostOrSpecFromURL(const GURL& url);
NET_EXPORT std::string GetSpecificHeader(const std::string& headers,
const std::string& name);
-// TODO(abarth): Move these functions to http_content_disposition.cc.
-bool DecodeFilenameValue(const std::string& input,
- const std::string& referrer_charset,
- std::string* output);
-bool DecodeExtValue(const std::string& value, std::string* output);
-
// Converts the given host name to unicode characters. This can be called for
// any host name, if the input is not IDN or is invalid in some way, we'll just
// return the ASCII source so it is still usable.
@@ -252,9 +246,8 @@ NET_EXPORT string16 StripWWWFromHost(const GURL& url);
// Generates a filename using the first successful method from the following (in
// order):
//
-// 1) The raw Content-Disposition header in |content_disposition| (as read from
-// the network. |referrer_charset| is used as described in the comment for
-// GetFileNameFromCD().
+// 1) The raw Content-Disposition header in |content_disposition| as read from
+// the network. |referrer_charset| is used to decode non-ASCII strings.
// 2) |suggested_name| if specified. |suggested_name| is assumed to be in
// UTF-8.
// 3) The filename extracted from the |url|. |referrer_charset| will be used to