| OLD | NEW |
| 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_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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 int DoDrainBodyForAuthRestartComplete(int result); | 139 int DoDrainBodyForAuthRestartComplete(int result); |
| 140 | 140 |
| 141 void BuildRequestHeaders(bool using_proxy); | 141 void BuildRequestHeaders(bool using_proxy); |
| 142 | 142 |
| 143 // Record histogram of time until first byte of header is received. | 143 // Record histogram of time until first byte of header is received. |
| 144 void LogTransactionConnectedMetrics(); | 144 void LogTransactionConnectedMetrics(); |
| 145 | 145 |
| 146 // Record histogram of latency (durations until last byte received). | 146 // Record histogram of latency (durations until last byte received). |
| 147 void LogTransactionMetrics() const; | 147 void LogTransactionMetrics() const; |
| 148 | 148 |
| 149 // Record histogram of number of round trips taken to download the full |
| 150 // response body vs bytes transferred. |
| 151 void LogNumRttVsBytesMetrics() const; |
| 152 |
| 149 // Writes a log message to help debugging in the field when we block a proxy | 153 // Writes a log message to help debugging in the field when we block a proxy |
| 150 // response to a CONNECT request. | 154 // response to a CONNECT request. |
| 151 void LogBlockedTunnelResponse(int response_code) const; | 155 void LogBlockedTunnelResponse(int response_code) const; |
| 152 | 156 |
| 153 // Called to handle a client certificate request. | 157 // Called to handle a client certificate request. |
| 154 int HandleCertificateRequest(int error); | 158 int HandleCertificateRequest(int error); |
| 155 | 159 |
| 156 // Called to possibly recover from an SSL handshake error. Sets next_state_ | 160 // Called to possibly recover from an SSL handshake error. Sets next_state_ |
| 157 // and returns OK if recovering from the error. Otherwise, the same error | 161 // and returns OK if recovering from the error. Otherwise, the same error |
| 158 // code is returned. | 162 // code is returned. |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 // True when the tunnel is in the process of being established - we can't | 272 // True when the tunnel is in the process of being established - we can't |
| 269 // read from the socket until the tunnel is done. | 273 // read from the socket until the tunnel is done. |
| 270 bool establishing_tunnel_; | 274 bool establishing_tunnel_; |
| 271 | 275 |
| 272 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); | 276 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); |
| 273 }; | 277 }; |
| 274 | 278 |
| 275 } // namespace net | 279 } // namespace net |
| 276 | 280 |
| 277 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 281 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
| OLD | NEW |