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

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

Issue 1422573008: Plumbing SSLPrivateKey (//net) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing un-needed forward decl. Created 5 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/url_request/url_fetcher_core.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 <string> 10 #include <string>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 namespace net { 45 namespace net {
46 46
47 class ChunkedUploadDataStream; 47 class ChunkedUploadDataStream;
48 class CookieOptions; 48 class CookieOptions;
49 class HostPortPair; 49 class HostPortPair;
50 class IOBuffer; 50 class IOBuffer;
51 struct LoadTimingInfo; 51 struct LoadTimingInfo;
52 struct RedirectInfo; 52 struct RedirectInfo;
53 class SSLCertRequestInfo; 53 class SSLCertRequestInfo;
54 class SSLInfo; 54 class SSLInfo;
55 class SSLPrivateKey;
55 class UploadDataStream; 56 class UploadDataStream;
56 class URLRequestContext; 57 class URLRequestContext;
57 class URLRequestJob; 58 class URLRequestJob;
58 class X509Certificate; 59 class X509Certificate;
59 60
60 // This stores the values of the Set-Cookie headers received during the request. 61 // This stores the values of the Set-Cookie headers received during the request.
61 // Each item in the vector corresponds to a Set-Cookie: line received, 62 // Each item in the vector corresponds to a Set-Cookie: line received,
62 // excluding the "Set-Cookie:" part. 63 // excluding the "Set-Cookie:" part.
63 typedef std::vector<std::string> ResponseCookies; 64 typedef std::vector<std::string> ResponseCookies;
64 65
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // call request->SetAuth() with the user's credentials once it obtains them, 166 // call request->SetAuth() with the user's credentials once it obtains them,
166 // or request->CancelAuth() to cancel the login and display the error page. 167 // or request->CancelAuth() to cancel the login and display the error page.
167 // When it does so, the request will be reissued, restarting the sequence 168 // When it does so, the request will be reissued, restarting the sequence
168 // of On* callbacks. 169 // of On* callbacks.
169 virtual void OnAuthRequired(URLRequest* request, 170 virtual void OnAuthRequired(URLRequest* request,
170 AuthChallengeInfo* auth_info); 171 AuthChallengeInfo* auth_info);
171 172
172 // Called when we receive an SSL CertificateRequest message for client 173 // Called when we receive an SSL CertificateRequest message for client
173 // authentication. The delegate should call 174 // authentication. The delegate should call
174 // request->ContinueWithCertificate() with the client certificate the user 175 // request->ContinueWithCertificate() with the client certificate the user
175 // selected, or request->ContinueWithCertificate(NULL) to continue the SSL 176 // selected and its private key, or request->ContinueWithCertificate(NULL,
176 // handshake without a client certificate. 177 // NULL)
178 // to continue the SSL handshake without a client certificate.
177 virtual void OnCertificateRequested( 179 virtual void OnCertificateRequested(
178 URLRequest* request, 180 URLRequest* request,
179 SSLCertRequestInfo* cert_request_info); 181 SSLCertRequestInfo* cert_request_info);
180 182
181 // Called when using SSL and the server responds with a certificate with 183 // Called when using SSL and the server responds with a certificate with
182 // an error, for example, whose common name does not match the common name 184 // an error, for example, whose common name does not match the common name
183 // we were expecting for that host. The delegate should either do the 185 // we were expecting for that host. The delegate should either do the
184 // safe thing and Cancel() the request or decide to proceed by calling 186 // safe thing and Cancel() the request or decide to proceed by calling
185 // ContinueDespiteLastError(). cert_error is a ERR_* error code 187 // ContinueDespiteLastError(). cert_error is a ERR_* error code
186 // indicating what's wrong with the certificate. 188 // indicating what's wrong with the certificate.
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 // One of the following two methods should be called in response to an 582 // One of the following two methods should be called in response to an
581 // OnAuthRequired() callback (and only then). 583 // OnAuthRequired() callback (and only then).
582 // SetAuth will reissue the request with the given credentials. 584 // SetAuth will reissue the request with the given credentials.
583 // CancelAuth will give up and display the error page. 585 // CancelAuth will give up and display the error page.
584 void SetAuth(const AuthCredentials& credentials); 586 void SetAuth(const AuthCredentials& credentials);
585 void CancelAuth(); 587 void CancelAuth();
586 588
587 // This method can be called after the user selects a client certificate to 589 // This method can be called after the user selects a client certificate to
588 // instruct this URLRequest to continue with the request with the 590 // instruct this URLRequest to continue with the request with the
589 // certificate. Pass NULL if the user doesn't have a client certificate. 591 // certificate. Pass NULL if the user doesn't have a client certificate.
590 void ContinueWithCertificate(X509Certificate* client_cert); 592 void ContinueWithCertificate(X509Certificate* client_cert,
593 SSLPrivateKey* client_private_key);
591 594
592 // This method can be called after some error notifications to instruct this 595 // This method can be called after some error notifications to instruct this
593 // URLRequest to ignore the current error and continue with the request. To 596 // URLRequest to ignore the current error and continue with the request. To
594 // cancel the request instead, call Cancel(). 597 // cancel the request instead, call Cancel().
595 void ContinueDespiteLastError(); 598 void ContinueDespiteLastError();
596 599
597 // Used to specify the context (cookie store, cache) for this request. 600 // Used to specify the context (cookie store, cache) for this request.
598 const URLRequestContext* context() const; 601 const URLRequestContext* context() const;
599 602
600 const BoundNetLog& net_log() const { return net_log_; } 603 const BoundNetLog& net_log() const { return net_log_; }
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 HostPortPair proxy_server_; 857 HostPortPair proxy_server_;
855 858
856 scoped_ptr<const base::debug::StackTrace> stack_trace_; 859 scoped_ptr<const base::debug::StackTrace> stack_trace_;
857 860
858 DISALLOW_COPY_AND_ASSIGN(URLRequest); 861 DISALLOW_COPY_AND_ASSIGN(URLRequest);
859 }; 862 };
860 863
861 } // namespace net 864 } // namespace net
862 865
863 #endif // NET_URL_REQUEST_URL_REQUEST_H_ 866 #endif // NET_URL_REQUEST_URL_REQUEST_H_
OLDNEW
« no previous file with comments | « net/url_request/url_fetcher_core.cc ('k') | net/url_request/url_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698