diff options
author | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-31 16:57:08 +0000 |
---|---|---|
committer | tommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-31 16:57:08 +0000 |
commit | e600c8212f8922d77815316ff41fd8ce9d95bca7 (patch) | |
tree | 8cd918171785907306eefd67c5b80c3716da8343 /net/url_request/url_request.h | |
parent | 9c1dab0943654879f843fc58337d0a936a215271 (diff) | |
download | chromium_src-e600c8212f8922d77815316ff41fd8ce9d95bca7.zip chromium_src-e600c8212f8922d77815316ff41fd8ce9d95bca7.tar.gz chromium_src-e600c8212f8922d77815316ff41fd8ce9d95bca7.tar.bz2 |
Sanitizing the referrer header before starting the automation request.TEST=Run automation unit tests.BUG=none
Review URL: http://codereview.chromium.org/183004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24888 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request.h')
-rw-r--r-- | net/url_request/url_request.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h index bdd76e7..c395125 100644 --- a/net/url_request/url_request.h +++ b/net/url_request/url_request.h @@ -270,6 +270,8 @@ class URLRequest { // may only be changed before Start() is called. const std::string& referrer() const { return referrer_; } void set_referrer(const std::string& referrer); + // Returns the referrer header with potential username and password removed. + GURL GetSanitizedReferrer() const; // The delegate of the request. This value may be changed at any time, // and it is permissible for it to be null. |