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

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

Issue 8340026: Use AuthCredentials throughout the network stack instead of username/password. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix comments Created 9 years, 1 month 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
« no previous file with comments | « net/spdy/spdy_proxy_client_socket_unittest.cc ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 void StopCaching(); 597 void StopCaching();
598 598
599 // This method may be called to follow a redirect that was deferred in 599 // This method may be called to follow a redirect that was deferred in
600 // response to an OnReceivedRedirect call. 600 // response to an OnReceivedRedirect call.
601 void FollowDeferredRedirect(); 601 void FollowDeferredRedirect();
602 602
603 // One of the following two methods should be called in response to an 603 // One of the following two methods should be called in response to an
604 // OnAuthRequired() callback (and only then). 604 // OnAuthRequired() callback (and only then).
605 // SetAuth will reissue the request with the given credentials. 605 // SetAuth will reissue the request with the given credentials.
606 // CancelAuth will give up and display the error page. 606 // CancelAuth will give up and display the error page.
607 void SetAuth(const string16& username, const string16& password); 607 void SetAuth(const AuthCredentials& credentials);
608 void CancelAuth(); 608 void CancelAuth();
609 609
610 // This method can be called after the user selects a client certificate to 610 // This method can be called after the user selects a client certificate to
611 // instruct this URLRequest to continue with the request with the 611 // instruct this URLRequest to continue with the request with the
612 // certificate. Pass NULL if the user doesn't have a client certificate. 612 // certificate. Pass NULL if the user doesn't have a client certificate.
613 void ContinueWithCertificate(X509Certificate* client_cert); 613 void ContinueWithCertificate(X509Certificate* client_cert);
614 614
615 // This method can be called after some error notifications to instruct this 615 // This method can be called after some error notifications to instruct this
616 // URLRequest to ignore the current error and continue with the request. To 616 // URLRequest to ignore the current error and continue with the request. To
617 // cancel the request instead, call Cancel(). 617 // cancel the request instead, call Cancel().
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 // the authentication challenge being handled by |NotifyAuthRequired|. 819 // the authentication challenge being handled by |NotifyAuthRequired|.
820 AuthCredentials auth_credentials_; 820 AuthCredentials auth_credentials_;
821 scoped_refptr<AuthChallengeInfo> auth_info_; 821 scoped_refptr<AuthChallengeInfo> auth_info_;
822 822
823 DISALLOW_COPY_AND_ASSIGN(URLRequest); 823 DISALLOW_COPY_AND_ASSIGN(URLRequest);
824 }; 824 };
825 825
826 } // namespace net 826 } // namespace net
827 827
828 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 828 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_proxy_client_socket_unittest.cc ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698