diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-02 13:25:31 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-02 13:25:31 +0000 |
commit | aa43b4d1623f3480929e8e5d659702a3eaacb769 (patch) | |
tree | 5fb50980e721b75cf5f5bec3c95fc0e7ae36e8f3 /net/url_request | |
parent | d68ac2aace5bb58425b60162795ba48c819369c6 (diff) | |
download | chromium_src-aa43b4d1623f3480929e8e5d659702a3eaacb769.zip chromium_src-aa43b4d1623f3480929e8e5d659702a3eaacb769.tar.gz chromium_src-aa43b4d1623f3480929e8e5d659702a3eaacb769.tar.bz2 |
Remove abonded privacy blacklist implementation.
BUG=16932
TEST=compiles
Review URL: http://codereview.chromium.org/2862041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51525 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request')
-rw-r--r-- | net/url_request/url_request_context.h | 14 | ||||
-rw-r--r-- | net/url_request/url_request_http_job.cc | 9 |
2 files changed, 3 insertions, 20 deletions
diff --git a/net/url_request/url_request_context.h b/net/url_request/url_request_context.h index 36b42b3..51a6066 100644 --- a/net/url_request/url_request_context.h +++ b/net/url_request/url_request_context.h @@ -112,20 +112,6 @@ class URLRequestContext referrer_charset_ = charset; } - // Called before adding cookies to requests. Returns true if cookie can - // be added to the request. The cookie might still be modified though. - virtual bool InterceptRequestCookies(const URLRequest* request, - const std::string& cookies) const { - return true; - } - - // Called before adding cookies from respones to the cookie monster. Returns - // true if the cookie can be added. The cookie might still be modified though. - virtual bool InterceptResponseCookie(const URLRequest* request, - const std::string& cookie) const { - return true; - } - protected: friend class base::RefCountedThreadSafe<URLRequestContext>; diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc index 7041b8d..4f44f2e3 100644 --- a/net/url_request/url_request_http_job.cc +++ b/net/url_request/url_request_http_job.cc @@ -448,8 +448,7 @@ void URLRequestHttpJob::OnCanGetCookiesCompleted(int policy) { std::string cookies = request_->context()->cookie_store()->GetCookiesWithOptions( request_->url(), options); - if (request_->context()->InterceptRequestCookies(request_, cookies) && - !cookies.empty()) { + if (!cookies.empty()) { request_info_.extra_headers.SetHeader( net::HttpRequestHeaders::kCookie, cookies); } @@ -785,10 +784,8 @@ void URLRequestHttpJob::FetchResponseCookies( std::string value; void* iter = NULL; - while (response_info->headers->EnumerateHeader(&iter, name, &value)) { - if (request_->context()->InterceptResponseCookie(request_, value)) - cookies->push_back(value); - } + while (response_info->headers->EnumerateHeader(&iter, name, &value)) + cookies->push_back(value); } class HTTPSProberDelegate : public net::HTTPSProberDelegate { |