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

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

Issue 6804032: Add TLS-SRP (RFC 5054) support Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: remove "httpsv" scheme, minor NSS/OpenSSL changes Created 9 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « net/http/http_stream_request.cc ('k') | net/http/http_transaction_unittest.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #pragma once 7 #pragma once
8 8
9 #include "base/string16.h" 9 #include "base/string16.h"
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 12
13 namespace net { 13 namespace net {
14 14
15 class AuthData;
15 class BoundNetLog; 16 class BoundNetLog;
16 struct HttpRequestInfo; 17 struct HttpRequestInfo;
17 class HttpResponseInfo; 18 class HttpResponseInfo;
18 class IOBuffer; 19 class IOBuffer;
19 class X509Certificate; 20 class X509Certificate;
20 class SSLHostInfo; 21 class SSLHostInfo;
21 22
22 // Represents a single HTTP transaction (i.e., a single request/response pair). 23 // Represents a single HTTP transaction (i.e., a single request/response pair).
23 // HTTP redirects are not followed and authentication challenges are not 24 // HTTP redirects are not followed and authentication challenges are not
24 // answered. Cookies are assumed to be managed by the caller. 25 // answered. Cookies are assumed to be managed by the caller.
(...skipping 29 matching lines...) Expand all
54 // descriptions for details about errors that can be ignored. 55 // descriptions for details about errors that can be ignored.
55 // 56 //
56 // NOTE: The transaction is not responsible for deleting the callback object. 57 // NOTE: The transaction is not responsible for deleting the callback object.
57 // 58 //
58 virtual int RestartIgnoringLastError(CompletionCallback* callback) = 0; 59 virtual int RestartIgnoringLastError(CompletionCallback* callback) = 0;
59 60
60 // Restarts the HTTP transaction with a client certificate. 61 // Restarts the HTTP transaction with a client certificate.
61 virtual int RestartWithCertificate(X509Certificate* client_cert, 62 virtual int RestartWithCertificate(X509Certificate* client_cert,
62 CompletionCallback* callback) = 0; 63 CompletionCallback* callback) = 0;
63 64
65 // Sets TLS login credentials for the HTTPS transaction.
66 virtual void SetTLSLoginAuthData(AuthData* auth_data) = 0;
67
68 virtual int RestartWithTLSLogin(CompletionCallback* callback) = 0;
69
64 // Restarts the HTTP transaction with authentication credentials. 70 // Restarts the HTTP transaction with authentication credentials.
65 virtual int RestartWithAuth(const string16& username, 71 virtual int RestartWithAuth(const string16& username,
66 const string16& password, 72 const string16& password,
67 CompletionCallback* callback) = 0; 73 CompletionCallback* callback) = 0;
68 74
69 // Returns true if auth is ready to be continued. Callers should check 75 // Returns true if auth is ready to be continued. Callers should check
70 // this value anytime Start() completes: if it is true, the transaction 76 // this value anytime Start() completes: if it is true, the transaction
71 // can be resumed with RestartWithAuth(L"", L"", callback) to resume 77 // can be resumed with RestartWithAuth(L"", L"", callback) to resume
72 // the automatic auth exchange. This notification gives the caller a 78 // the automatic auth exchange. This notification gives the caller a
73 // chance to process the response headers from all of the intermediate 79 // chance to process the response headers from all of the intermediate
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 114
109 // SetSSLHostInfo sets a object which reads and writes public information 115 // SetSSLHostInfo sets a object which reads and writes public information
110 // about an SSL server. It's used to implement Snap Start. 116 // about an SSL server. It's used to implement Snap Start.
111 // TODO(agl): remove this. 117 // TODO(agl): remove this.
112 virtual void SetSSLHostInfo(SSLHostInfo*) { }; 118 virtual void SetSSLHostInfo(SSLHostInfo*) { };
113 }; 119 };
114 120
115 } // namespace net 121 } // namespace net
116 122
117 #endif // NET_HTTP_HTTP_TRANSACTION_H_ 123 #endif // NET_HTTP_HTTP_TRANSACTION_H_
OLDNEW
« no previous file with comments | « net/http/http_stream_request.cc ('k') | net/http/http_transaction_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698