Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 373 // read from the socket until the tunnel is done. | 373 // read from the socket until the tunnel is done. |
| 374 bool establishing_tunnel_; | 374 bool establishing_tunnel_; |
| 375 | 375 |
| 376 // Enable pooling to a SpdySession with matching IP and certificate | 376 // Enable pooling to a SpdySession with matching IP and certificate |
| 377 // even if the SpdySessionKey is different. | 377 // even if the SpdySessionKey is different. |
| 378 bool enable_ip_based_pooling_; | 378 bool enable_ip_based_pooling_; |
| 379 | 379 |
| 380 // Enable using alternative services for the request. | 380 // Enable using alternative services for the request. |
| 381 bool enable_alternative_services_; | 381 bool enable_alternative_services_; |
| 382 | 382 |
| 383 // When a request is retried because of errors with the alternative service, | |
| 384 // this will store the alternative service used. | |
| 385 AlternativeService retried_alternative_service_; | |
|
ianswett
2017/04/13 14:02:46
This sort of mechanism could be useful for TFO and
Ryan Hamilton
2017/04/13 17:26:56
*nod* I don't think those systems use alternative
| |
| 386 | |
| 383 // The helper object to use to create WebSocketHandshakeStreamBase | 387 // The helper object to use to create WebSocketHandshakeStreamBase |
| 384 // objects. Only relevant when establishing a WebSocket connection. | 388 // objects. Only relevant when establishing a WebSocket connection. |
| 385 WebSocketHandshakeStreamBase::CreateHelper* | 389 WebSocketHandshakeStreamBase::CreateHelper* |
| 386 websocket_handshake_stream_base_create_helper_; | 390 websocket_handshake_stream_base_create_helper_; |
| 387 | 391 |
| 388 BeforeNetworkStartCallback before_network_start_callback_; | 392 BeforeNetworkStartCallback before_network_start_callback_; |
| 389 BeforeHeadersSentCallback before_headers_sent_callback_; | 393 BeforeHeadersSentCallback before_headers_sent_callback_; |
| 390 | 394 |
| 391 ConnectionAttempts connection_attempts_; | 395 ConnectionAttempts connection_attempts_; |
| 392 IPEndPoint remote_endpoint_; | 396 IPEndPoint remote_endpoint_; |
| 393 // Network error details for this transaction. | 397 // Network error details for this transaction. |
| 394 NetErrorDetails net_error_details_; | 398 NetErrorDetails net_error_details_; |
| 395 | 399 |
| 396 // Communicate lifetime of transaction to the throttler, and | 400 // Communicate lifetime of transaction to the throttler, and |
| 397 // throttled state to the transaction. | 401 // throttled state to the transaction. |
| 398 std::unique_ptr<NetworkThrottleManager::Throttle> throttle_; | 402 std::unique_ptr<NetworkThrottleManager::Throttle> throttle_; |
| 399 | 403 |
| 400 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); | 404 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); |
| 401 }; | 405 }; |
| 402 | 406 |
| 403 } // namespace net | 407 } // namespace net |
| 404 | 408 |
| 405 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 409 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
| OLD | NEW |