diff options
author | ycxiao@chromium.org <ycxiao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-29 19:06:26 +0000 |
---|---|---|
committer | ycxiao@chromium.org <ycxiao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-07-29 19:06:26 +0000 |
commit | 03d845f833e7f85ff8cdb4d6bb7c56aab2bc65e8 (patch) | |
tree | 24b6f95ffb2e3c90e53fb52d7e95210221e85c0b /net/url_request/url_request.cc | |
parent | 3529138ef50534cf1d4ee99e5de32158a2bda83a (diff) | |
download | chromium_src-03d845f833e7f85ff8cdb4d6bb7c56aab2bc65e8.zip chromium_src-03d845f833e7f85ff8cdb4d6bb7c56aab2bc65e8.tar.gz chromium_src-03d845f833e7f85ff8cdb4d6bb7c56aab2bc65e8.tar.bz2 |
Change CanGetCookies signature, add CookieList as parameters in order to remove the getting cookies call inside ResourceDispatcherHost::CanGetCookies.
BUG=68657
TEST=XXXX
Review URL: http://codereview.chromium.org/7461121
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94724 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request.cc')
-rw-r--r-- | net/url_request/url_request.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc index 07af22f..97c4d06 100644 --- a/net/url_request/url_request.cc +++ b/net/url_request/url_request.cc @@ -117,13 +117,14 @@ void URLRequest::Delegate::OnSSLCertificateError(URLRequest* request, request->Cancel(); } -bool URLRequest::Delegate::CanGetCookies(URLRequest* request) { +bool URLRequest::Delegate::CanGetCookies(const URLRequest* request, + const CookieList& cookie_list) const { return true; } -bool URLRequest::Delegate::CanSetCookie(URLRequest* request, +bool URLRequest::Delegate::CanSetCookie(const URLRequest* request, const std::string& cookie_line, - CookieOptions* options) { + CookieOptions* options) const { return true; } @@ -764,14 +765,14 @@ void URLRequest::NotifySSLCertificateError(int cert_error, delegate_->OnSSLCertificateError(this, cert_error, cert); } -bool URLRequest::CanGetCookies() { +bool URLRequest::CanGetCookies(const CookieList& cookie_list) const { if (delegate_) - return delegate_->CanGetCookies(this); + return delegate_->CanGetCookies(this, cookie_list); return false; } bool URLRequest::CanSetCookie(const std::string& cookie_line, - CookieOptions* options) { + CookieOptions* options) const { if (delegate_) return delegate_->CanSetCookie(this, cookie_line, options); return false; |