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

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

Issue 2898573002: Refactor client cert private key handling. (Closed)
Patch Set: removed no longer needed forward declaration 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
« no previous file with comments | « net/test/url_request/url_request_mock_data_job.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) 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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after
604 // One of the following two methods should be called in response to an 604 // One of the following two methods should be called in response to an
605 // OnAuthRequired() callback (and only then). 605 // OnAuthRequired() callback (and only then).
606 // SetAuth will reissue the request with the given credentials. 606 // SetAuth will reissue the request with the given credentials.
607 // CancelAuth will give up and display the error page. 607 // CancelAuth will give up and display the error page.
608 void SetAuth(const AuthCredentials& credentials); 608 void SetAuth(const AuthCredentials& credentials);
609 void CancelAuth(); 609 void CancelAuth();
610 610
611 // This method can be called after the user selects a client certificate to 611 // This method can be called after the user selects a client certificate to
612 // instruct this URLRequest to continue with the request with the 612 // instruct this URLRequest to continue with the request with the
613 // certificate. Pass NULL if the user doesn't have a client certificate. 613 // certificate. Pass NULL if the user doesn't have a client certificate.
614 void ContinueWithCertificate(X509Certificate* client_cert, 614 void ContinueWithCertificate(scoped_refptr<X509Certificate> client_cert,
615 SSLPrivateKey* client_private_key); 615 scoped_refptr<SSLPrivateKey> client_private_key);
616 616
617 // This method can be called after some error notifications to instruct this 617 // This method can be called after some error notifications to instruct this
618 // URLRequest to ignore the current error and continue with the request. To 618 // URLRequest to ignore the current error and continue with the request. To
619 // cancel the request instead, call Cancel(). 619 // cancel the request instead, call Cancel().
620 void ContinueDespiteLastError(); 620 void ContinueDespiteLastError();
621 621
622 // Used to specify the context (cookie store, cache) for this request. 622 // Used to specify the context (cookie store, cache) for this request.
623 const URLRequestContext* context() const; 623 const URLRequestContext* context() const;
624 624
625 const NetLogWithSource& net_log() const { return net_log_; } 625 const NetLogWithSource& net_log() const { return net_log_; }
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 const NetworkTrafficAnnotationTag traffic_annotation_; 872 const NetworkTrafficAnnotationTag traffic_annotation_;
873 873
874 THREAD_CHECKER(thread_checker_); 874 THREAD_CHECKER(thread_checker_);
875 875
876 DISALLOW_COPY_AND_ASSIGN(URLRequest); 876 DISALLOW_COPY_AND_ASSIGN(URLRequest);
877 }; 877 };
878 878
879 } // namespace net 879 } // namespace net
880 880
881 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 881 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW
« no previous file with comments | « net/test/url_request/url_request_mock_data_job.cc ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698