summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request.h
diff options
context:
space:
mode:
authorycxiao@chromium.org <ycxiao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-29 19:06:26 +0000
committerycxiao@chromium.org <ycxiao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-29 19:06:26 +0000
commit03d845f833e7f85ff8cdb4d6bb7c56aab2bc65e8 (patch)
tree24b6f95ffb2e3c90e53fb52d7e95210221e85c0b /net/url_request/url_request.h
parent3529138ef50534cf1d4ee99e5de32158a2bda83a (diff)
downloadchromium_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.h')
-rw-r--r--net/url_request/url_request.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/net/url_request/url_request.h b/net/url_request/url_request.h
index a42fd3a..f6d5371 100644
--- a/net/url_request/url_request.h
+++ b/net/url_request/url_request.h
@@ -78,6 +78,7 @@ class BlobURLRequestJobTest;
namespace net {
+class CookieList;
class CookieOptions;
class HostPortPair;
class IOBuffer;
@@ -273,14 +274,15 @@ class NET_API URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe) {
// Called when reading cookies to allow the delegate to block access to the
// cookie. This method will never be invoked when LOAD_DO_NOT_SEND_COOKIES
// is specified.
- virtual bool CanGetCookies(URLRequest* request);
+ virtual bool CanGetCookies(const URLRequest* request,
+ const CookieList& cookie_list) const;
// Called when a cookie is set to allow the delegate to block access to the
// cookie. This method will never be invoked when LOAD_DO_NOT_SAVE_COOKIES
// is specified.
- virtual bool CanSetCookie(URLRequest* request,
+ virtual bool CanSetCookie(const URLRequest* request,
const std::string& cookie_line,
- CookieOptions* options);
+ CookieOptions* options) const;
// After calling Start(), the delegate will receive an OnResponseStarted
// callback when the request has completed. If an error occurred, the
@@ -708,8 +710,9 @@ class NET_API URLRequest : NON_EXPORTED_BASE(public base::NonThreadSafe) {
void NotifyAuthRequired(AuthChallengeInfo* auth_info);
void NotifyCertificateRequested(SSLCertRequestInfo* cert_request_info);
void NotifySSLCertificateError(int cert_error, X509Certificate* cert);
- bool CanGetCookies();
- bool CanSetCookie(const std::string& cookie_line, CookieOptions* options);
+ bool CanGetCookies(const CookieList& cookie_list) const;
+ bool CanSetCookie(const std::string& cookie_line,
+ CookieOptions* options) const;
void NotifyReadCompleted(int bytes_read);
// Contextual information used for this request (can be NULL). This contains