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

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

Issue 2898573002: Refactor client cert private key handling. (Closed)
Patch Set: . 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 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 // One of the following two methods should be called in response to an 594 // One of the following two methods should be called in response to an
595 // OnAuthRequired() callback (and only then). 595 // OnAuthRequired() callback (and only then).
596 // SetAuth will reissue the request with the given credentials. 596 // SetAuth will reissue the request with the given credentials.
597 // CancelAuth will give up and display the error page. 597 // CancelAuth will give up and display the error page.
598 void SetAuth(const AuthCredentials& credentials); 598 void SetAuth(const AuthCredentials& credentials);
599 void CancelAuth(); 599 void CancelAuth();
600 600
601 // This method can be called after the user selects a client certificate to 601 // This method can be called after the user selects a client certificate to
602 // instruct this URLRequest to continue with the request with the 602 // instruct this URLRequest to continue with the request with the
603 // certificate. Pass NULL if the user doesn't have a client certificate. 603 // certificate. Pass NULL if the user doesn't have a client certificate.
604 void ContinueWithCertificate(X509Certificate* client_cert, 604 void ContinueWithCertificate(scoped_refptr<X509Certificate> client_cert,
605 SSLPrivateKey* client_private_key); 605 scoped_refptr<SSLPrivateKey> client_private_key);
606 606
607 // This method can be called after some error notifications to instruct this 607 // This method can be called after some error notifications to instruct this
608 // URLRequest to ignore the current error and continue with the request. To 608 // URLRequest to ignore the current error and continue with the request. To
609 // cancel the request instead, call Cancel(). 609 // cancel the request instead, call Cancel().
610 void ContinueDespiteLastError(); 610 void ContinueDespiteLastError();
611 611
612 // Used to specify the context (cookie store, cache) for this request. 612 // Used to specify the context (cookie store, cache) for this request.
613 const URLRequestContext* context() const; 613 const URLRequestContext* context() const;
614 614
615 const NetLogWithSource& net_log() const { return net_log_; } 615 const NetLogWithSource& net_log() const { return net_log_; }
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 int raw_header_size_; 861 int raw_header_size_;
862 862
863 const NetworkTrafficAnnotationTag traffic_annotation_; 863 const NetworkTrafficAnnotationTag traffic_annotation_;
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