OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_NETWORK_TRANSACTION_H_ | 5 #ifndef NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
6 #define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 6 #define NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/ref_counted.h" | 10 #include "base/ref_counted.h" |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 156 |
157 // Called when header_buf_ contains the complete response headers. | 157 // Called when header_buf_ contains the complete response headers. |
158 int DidReadResponseHeaders(); | 158 int DidReadResponseHeaders(); |
159 | 159 |
160 // Called to handle a certificate error. Returns OK if the error should be | 160 // Called to handle a certificate error. Returns OK if the error should be |
161 // ignored. Otherwise, stores the certificate in response_.ssl_info and | 161 // ignored. Otherwise, stores the certificate in response_.ssl_info and |
162 // returns the same error code. | 162 // returns the same error code. |
163 int HandleCertificateError(int error); | 163 int HandleCertificateError(int error); |
164 | 164 |
165 // Called to handle a client certificate request. | 165 // Called to handle a client certificate request. |
166 void HandleCertificateRequest(); | 166 int HandleCertificateRequest(int error); |
167 | 167 |
168 // Called to possibly recover from an SSL handshake error. Sets next_state_ | 168 // Called to possibly recover from an SSL handshake error. Sets next_state_ |
169 // and returns OK if recovering from the error. Otherwise, the same error | 169 // and returns OK if recovering from the error. Otherwise, the same error |
170 // code is returned. | 170 // code is returned. |
171 int HandleSSLHandshakeError(int error); | 171 int HandleSSLHandshakeError(int error); |
172 | 172 |
173 // Called to possibly recover from the given error. Sets next_state_ and | 173 // Called to possibly recover from the given error. Sets next_state_ and |
174 // returns OK if recovering from the error. Otherwise, the same error code | 174 // returns OK if recovering from the error. Otherwise, the same error code |
175 // is returned. | 175 // is returned. |
176 int HandleIOError(int error); | 176 int HandleIOError(int error); |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
386 // The time the host resolution started (if it indeed got started). | 386 // The time the host resolution started (if it indeed got started). |
387 base::Time host_resolution_start_time_; | 387 base::Time host_resolution_start_time_; |
388 | 388 |
389 // The next state in the state machine. | 389 // The next state in the state machine. |
390 State next_state_; | 390 State next_state_; |
391 }; | 391 }; |
392 | 392 |
393 } // namespace net | 393 } // namespace net |
394 | 394 |
395 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 395 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
OLD | NEW |