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

Side by Side Diff: net/http/http_transaction.h

Issue 1304143010: Plumbing SSLPrivateKey Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 3 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"
11 #include "net/base/load_states.h" 11 #include "net/base/load_states.h"
12 #include "net/base/net_export.h" 12 #include "net/base/net_export.h"
13 #include "net/base/request_priority.h" 13 #include "net/base/request_priority.h"
14 #include "net/base/upload_progress.h" 14 #include "net/base/upload_progress.h"
15 #include "net/socket/connection_attempts.h" 15 #include "net/socket/connection_attempts.h"
16 #include "net/ssl/ssl_private_key.h"
davidben 2015/09/25 20:10:11 Forward decl
svaldez 2015/09/28 16:54:52 Done.
16 #include "net/websockets/websocket_handshake_stream_base.h" 17 #include "net/websockets/websocket_handshake_stream_base.h"
17 18
18 namespace net { 19 namespace net {
19 20
20 class AuthCredentials; 21 class AuthCredentials;
21 class BoundNetLog; 22 class BoundNetLog;
22 class HttpRequestHeaders; 23 class HttpRequestHeaders;
23 struct HttpRequestInfo; 24 struct HttpRequestInfo;
24 class HttpResponseInfo; 25 class HttpResponseInfo;
25 class IOBuffer; 26 class IOBuffer;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // 74 //
74 // Not all errors can be ignored using this method. See error code 75 // Not all errors can be ignored using this method. See error code
75 // descriptions for details about errors that can be ignored. 76 // descriptions for details about errors that can be ignored.
76 // 77 //
77 // NOTE: The transaction is not responsible for deleting the callback object. 78 // NOTE: The transaction is not responsible for deleting the callback object.
78 // 79 //
79 virtual int RestartIgnoringLastError(const CompletionCallback& callback) = 0; 80 virtual int RestartIgnoringLastError(const CompletionCallback& callback) = 0;
80 81
81 // Restarts the HTTP transaction with a client certificate. 82 // Restarts the HTTP transaction with a client certificate.
82 virtual int RestartWithCertificate(X509Certificate* client_cert, 83 virtual int RestartWithCertificate(X509Certificate* client_cert,
84 SSLPrivateKey* client_pkey,
83 const CompletionCallback& callback) = 0; 85 const CompletionCallback& callback) = 0;
84 86
85 // Restarts the HTTP transaction with authentication credentials. 87 // Restarts the HTTP transaction with authentication credentials.
86 virtual int RestartWithAuth(const AuthCredentials& credentials, 88 virtual int RestartWithAuth(const AuthCredentials& credentials,
87 const CompletionCallback& callback) = 0; 89 const CompletionCallback& callback) = 0;
88 90
89 // Returns true if auth is ready to be continued. Callers should check 91 // Returns true if auth is ready to be continued. Callers should check
90 // this value anytime Start() completes: if it is true, the transaction 92 // this value anytime Start() completes: if it is true, the transaction
91 // can be resumed with RestartWithAuth(L"", L"", callback) to resume 93 // can be resumed with RestartWithAuth(L"", L"", callback) to resume
92 // the automatic auth exchange. This notification gives the caller a 94 // the automatic auth exchange. This notification gives the caller a
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 182
181 // Resumes the transaction after being deferred. 183 // Resumes the transaction after being deferred.
182 virtual int ResumeNetworkStart() = 0; 184 virtual int ResumeNetworkStart() = 0;
183 185
184 virtual void GetConnectionAttempts(ConnectionAttempts* out) const = 0; 186 virtual void GetConnectionAttempts(ConnectionAttempts* out) const = 0;
185 }; 187 };
186 188
187 } // namespace net 189 } // namespace net
188 190
189 #endif // NET_HTTP_HTTP_TRANSACTION_H_ 191 #endif // NET_HTTP_HTTP_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698