diff options
author | benjhayden@chromium.org <benjhayden@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-16 22:15:47 +0000 |
---|---|---|
committer | benjhayden@chromium.org <benjhayden@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-16 22:15:47 +0000 |
commit | 8e3ae68c947f9d8f83162b02bc1fcd3e99011fdf (patch) | |
tree | 37ab778c03f2abf9bd656988de70ef5b6035ae54 /net/http/http_util.h | |
parent | 120655dce0bc56e15d64bc0d075f05e703dcf2cd (diff) | |
download | chromium_src-8e3ae68c947f9d8f83162b02bc1fcd3e99011fdf.zip chromium_src-8e3ae68c947f9d8f83162b02bc1fcd3e99011fdf.tar.gz chromium_src-8e3ae68c947f9d8f83162b02bc1fcd3e99011fdf.tar.bz2 |
chrome.experimental.downloads.download() implementation
Ownership:
(Done) Asanka: content/browser/download/*
(Done) Brett: webkit/plugins/ppapi/ppb_url_request_info_impl.cc
(Done) Chris: net/*
(Done) John: content/browser/renderer_host/*
(Done) Mihai: extensions/*
Review URL: http://codereview.chromium.org/7647028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101583 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_util.h')
-rw-r--r-- | net/http/http_util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/http/http_util.h b/net/http/http_util.h index c9ead08..0ac2a7e 100644 --- a/net/http/http_util.h +++ b/net/http/http_util.h @@ -70,6 +70,10 @@ class NET_EXPORT HttpUtil { // TODO(darin): kill this static bool HasHeader(const std::string& headers, const char* name); + // Returns true if it is safe to allow users and scripts to specify the header + // named |name|. + static bool IsSafeHeader(const std::string& name); + // Strips all header lines from |headers| whose name matches // |headers_to_remove|. |headers_to_remove| is a list of null-terminated // lower-case header names, with array length |headers_to_remove_len|. |