Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: net/url_request/url_request.h

Issue 11417148: Query the network delegate for cookies even if there is no cookie monster (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_URL_REQUEST_URL_REQUEST_H_ 5 #ifndef NET_URL_REQUEST_URL_REQUEST_H_
6 #define NET_URL_REQUEST_URL_REQUEST_H_ 6 #define NET_URL_REQUEST_URL_REQUEST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 // occurs. 734 // occurs.
735 void NotifyResponseStarted(); 735 void NotifyResponseStarted();
736 736
737 // These functions delegate to |delegate_| and may only be used if 737 // These functions delegate to |delegate_| and may only be used if
738 // |delegate_| is not NULL. See URLRequest::Delegate for the meaning 738 // |delegate_| is not NULL. See URLRequest::Delegate for the meaning
739 // of these functions. 739 // of these functions.
740 void NotifyAuthRequired(AuthChallengeInfo* auth_info); 740 void NotifyAuthRequired(AuthChallengeInfo* auth_info);
741 void NotifyAuthRequiredComplete(NetworkDelegate::AuthRequiredResponse result); 741 void NotifyAuthRequiredComplete(NetworkDelegate::AuthRequiredResponse result);
742 void NotifyCertificateRequested(SSLCertRequestInfo* cert_request_info); 742 void NotifyCertificateRequested(SSLCertRequestInfo* cert_request_info);
743 void NotifySSLCertificateError(const SSLInfo& ssl_info, bool fatal); 743 void NotifySSLCertificateError(const SSLInfo& ssl_info, bool fatal);
744 void NotifyReadCompleted(int bytes_read);
745
746 // These functions delegate to |network_delegate_| if it is not NULL.
747 // If |network_delegate_| is NULL, cookies can be used unless
748 // SetDefaultCookiePolicyToBlock() has been called.
744 bool CanGetCookies(const CookieList& cookie_list) const; 749 bool CanGetCookies(const CookieList& cookie_list) const;
745 bool CanSetCookie(const std::string& cookie_line, 750 bool CanSetCookie(const std::string& cookie_line,
746 CookieOptions* options) const; 751 CookieOptions* options) const;
747 void NotifyReadCompleted(int bytes_read);
748 752
749 // Called when the delegate blocks or unblocks this request when intercepting 753 // Called when the delegate blocks or unblocks this request when intercepting
750 // certain requests. 754 // certain requests.
751 void SetBlockedOnDelegate(); 755 void SetBlockedOnDelegate();
752 void SetUnblockedOnDelegate(); 756 void SetUnblockedOnDelegate();
753 757
754 // Contextual information used for this request. Cannot be NULL. This contains 758 // Contextual information used for this request. Cannot be NULL. This contains
755 // most of the dependencies which are shared between requests (disk cache, 759 // most of the dependencies which are shared between requests (disk cache,
756 // cookie store, socket pool, etc.) 760 // cookie store, socket pool, etc.)
757 const URLRequestContext* context_; 761 const URLRequestContext* context_;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
847 base::TimeTicks creation_time_; 851 base::TimeTicks creation_time_;
848 852
849 scoped_ptr<const base::debug::StackTrace> stack_trace_; 853 scoped_ptr<const base::debug::StackTrace> stack_trace_;
850 854
851 DISALLOW_COPY_AND_ASSIGN(URLRequest); 855 DISALLOW_COPY_AND_ASSIGN(URLRequest);
852 }; 856 };
853 857
854 } // namespace net 858 } // namespace net
855 859
856 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 860 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW
« no previous file with comments | « no previous file | net/url_request/url_request_http_job.cc » ('j') | net/url_request/url_request_http_job.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698