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

Side by Side Diff: net/http/http_transaction.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) 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_HTTP_HTTP_TRANSACTION_H_ 5 #ifndef NET_HTTP_HTTP_TRANSACTION_H_
6 #define NET_HTTP_HTTP_TRANSACTION_H_ 6 #define NET_HTTP_HTTP_TRANSACTION_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "net/base/completion_callback.h" 10 #include "net/base/completion_callback.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // used, for example, to continue past various SSL related errors. 78 // used, for example, to continue past various SSL related errors.
79 // 79 //
80 // Not all errors can be ignored using this method. See error code 80 // Not all errors can be ignored using this method. See error code
81 // descriptions for details about errors that can be ignored. 81 // descriptions for details about errors that can be ignored.
82 // 82 //
83 // NOTE: The transaction is not responsible for deleting the callback object. 83 // NOTE: The transaction is not responsible for deleting the callback object.
84 // 84 //
85 virtual int RestartIgnoringLastError(const CompletionCallback& callback) = 0; 85 virtual int RestartIgnoringLastError(const CompletionCallback& callback) = 0;
86 86
87 // Restarts the HTTP transaction with a client certificate. 87 // Restarts the HTTP transaction with a client certificate.
88 virtual int RestartWithCertificate(X509Certificate* client_cert, 88 virtual int RestartWithCertificate(
89 SSLPrivateKey* client_private_key, 89 scoped_refptr<X509Certificate> client_cert,
90 const CompletionCallback& callback) = 0; 90 scoped_refptr<SSLPrivateKey> client_private_key,
91 const CompletionCallback& callback) = 0;
91 92
92 // Restarts the HTTP transaction with authentication credentials. 93 // Restarts the HTTP transaction with authentication credentials.
93 virtual int RestartWithAuth(const AuthCredentials& credentials, 94 virtual int RestartWithAuth(const AuthCredentials& credentials,
94 const CompletionCallback& callback) = 0; 95 const CompletionCallback& callback) = 0;
95 96
96 // Returns true if auth is ready to be continued. Callers should check 97 // Returns true if auth is ready to be continued. Callers should check
97 // this value anytime Start() completes: if it is true, the transaction 98 // this value anytime Start() completes: if it is true, the transaction
98 // can be resumed with RestartWithAuth(L"", L"", callback) to resume 99 // can be resumed with RestartWithAuth(L"", L"", callback) to resume
99 // the automatic auth exchange. This notification gives the caller a 100 // the automatic auth exchange. This notification gives the caller a
100 // chance to process the response headers from all of the intermediate 101 // chance to process the response headers from all of the intermediate
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 193
193 // Resumes the transaction after being deferred. 194 // Resumes the transaction after being deferred.
194 virtual int ResumeNetworkStart() = 0; 195 virtual int ResumeNetworkStart() = 0;
195 196
196 virtual void GetConnectionAttempts(ConnectionAttempts* out) const = 0; 197 virtual void GetConnectionAttempts(ConnectionAttempts* out) const = 0;
197 }; 198 };
198 199
199 } // namespace net 200 } // namespace net
200 201
201 #endif // NET_HTTP_HTTP_TRANSACTION_H_ 202 #endif // NET_HTTP_HTTP_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698