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

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

Issue 2898573002: Refactor client cert private key handling. (Closed)
Patch Set: fix member order Created 3 years, 6 months 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 // One of the following two methods should be called in response to an 593 // One of the following two methods should be called in response to an
594 // OnAuthRequired() callback (and only then). 594 // OnAuthRequired() callback (and only then).
595 // SetAuth will reissue the request with the given credentials. 595 // SetAuth will reissue the request with the given credentials.
596 // CancelAuth will give up and display the error page. 596 // CancelAuth will give up and display the error page.
597 void SetAuth(const AuthCredentials& credentials); 597 void SetAuth(const AuthCredentials& credentials);
598 void CancelAuth(); 598 void CancelAuth();
599 599
600 // This method can be called after the user selects a client certificate to 600 // This method can be called after the user selects a client certificate to
601 // instruct this URLRequest to continue with the request with the 601 // instruct this URLRequest to continue with the request with the
602 // certificate. Pass NULL if the user doesn't have a client certificate. 602 // certificate. Pass NULL if the user doesn't have a client certificate.
603 void ContinueWithCertificate(X509Certificate* client_cert, 603 void ContinueWithCertificate(scoped_refptr<X509Certificate> client_cert,
604 SSLPrivateKey* client_private_key); 604 scoped_refptr<SSLPrivateKey> client_private_key);
605 605
606 // This method can be called after some error notifications to instruct this 606 // This method can be called after some error notifications to instruct this
607 // URLRequest to ignore the current error and continue with the request. To 607 // URLRequest to ignore the current error and continue with the request. To
608 // cancel the request instead, call Cancel(). 608 // cancel the request instead, call Cancel().
609 void ContinueDespiteLastError(); 609 void ContinueDespiteLastError();
610 610
611 // Used to specify the context (cookie store, cache) for this request. 611 // Used to specify the context (cookie store, cache) for this request.
612 const URLRequestContext* context() const; 612 const URLRequestContext* context() const;
613 613
614 const NetLogWithSource& net_log() const { return net_log_; } 614 const NetLogWithSource& net_log() const { return net_log_; }
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 const NetworkTrafficAnnotationTag traffic_annotation_; 861 const NetworkTrafficAnnotationTag traffic_annotation_;
862 862
863 THREAD_CHECKER(thread_checker_); 863 THREAD_CHECKER(thread_checker_);
864 864
865 DISALLOW_COPY_AND_ASSIGN(URLRequest); 865 DISALLOW_COPY_AND_ASSIGN(URLRequest);
866 }; 866 };
867 867
868 } // namespace net 868 } // namespace net
869 869
870 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 870 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698