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_job.h | |
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_job.h')
-rw-r--r-- | net/url_request/url_request_job.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/url_request/url_request_job.h b/net/url_request/url_request_job.h index e9887ad..523d0f4 100644 --- a/net/url_request/url_request_job.h +++ b/net/url_request/url_request_job.h @@ -24,6 +24,7 @@ namespace net { class AuthChallengeInfo; +class CookieList; class CookieOptions; class HttpRequestHeaders; class HttpResponseInfo; @@ -199,10 +200,11 @@ class NET_API URLRequestJob : public base::RefCounted<URLRequestJob>, void NotifySSLCertificateError(int cert_error, X509Certificate* cert); // Delegates to URLRequest::Delegate. - bool CanGetCookies(); + bool CanGetCookies(const CookieList& cookie_list) const; // Delegates to URLRequest::Delegate. - bool CanSetCookie(const std::string& cookie_line, CookieOptions* options); + bool CanSetCookie(const std::string& cookie_line, + CookieOptions* options) const; // Notifies the job that headers have been received. void NotifyHeadersComplete(); |