OLD | NEW |
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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // Record histogram of latency (durations until last byte received). | 130 // Record histogram of latency (durations until last byte received). |
131 void LogTransactionMetrics() const; | 131 void LogTransactionMetrics() const; |
132 | 132 |
133 // Writes a log message to help debugging in the field when we block a proxy | 133 // Writes a log message to help debugging in the field when we block a proxy |
134 // response to a CONNECT request. | 134 // response to a CONNECT request. |
135 void LogBlockedTunnelResponse(int response_code) const; | 135 void LogBlockedTunnelResponse(int response_code) const; |
136 | 136 |
137 // Called to handle a client certificate request. | 137 // Called to handle a client certificate request. |
138 int HandleCertificateRequest(int error); | 138 int HandleCertificateRequest(int error); |
139 | 139 |
| 140 // Called to possibly recover from an SSL handshake error. Sets next_state_ |
| 141 // and returns OK if recovering from the error. Otherwise, the same error |
| 142 // code is returned. |
| 143 int HandleSSLHandshakeError(int error); |
| 144 |
140 // Called to possibly recover from the given error. Sets next_state_ and | 145 // Called to possibly recover from the given error. Sets next_state_ and |
141 // returns OK if recovering from the error. Otherwise, the same error code | 146 // returns OK if recovering from the error. Otherwise, the same error code |
142 // is returned. | 147 // is returned. |
143 int HandleIOError(int error); | 148 int HandleIOError(int error); |
144 | 149 |
145 // Gets the response headers from the HttpStream. | 150 // Gets the response headers from the HttpStream. |
146 HttpResponseHeaders* GetResponseHeaders() const; | 151 HttpResponseHeaders* GetResponseHeaders() const; |
147 | 152 |
148 // Called when we reached EOF or got an error. Returns true if we should | 153 // Called when we reached EOF or got an error. Returns true if we should |
149 // resend the request. |error| is OK when we reached EOF. | 154 // resend the request. |error| is OK when we reached EOF. |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 bool establishing_tunnel_; | 252 bool establishing_tunnel_; |
248 | 253 |
249 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); | 254 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); |
250 }; | 255 }; |
251 | 256 |
252 int ConvertRequestPriorityToSpdyPriority(RequestPriority priority); | 257 int ConvertRequestPriorityToSpdyPriority(RequestPriority priority); |
253 | 258 |
254 } // namespace net | 259 } // namespace net |
255 | 260 |
256 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 261 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
OLD | NEW |