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_; | |
386 | |
387 // The helper object to use to create WebSocketHandshakeStreamBase | 383 // The helper object to use to create WebSocketHandshakeStreamBase |
388 // objects. Only relevant when establishing a WebSocket connection. | 384 // objects. Only relevant when establishing a WebSocket connection. |
389 WebSocketHandshakeStreamBase::CreateHelper* | 385 WebSocketHandshakeStreamBase::CreateHelper* |
390 websocket_handshake_stream_base_create_helper_; | 386 websocket_handshake_stream_base_create_helper_; |
391 | 387 |
392 BeforeNetworkStartCallback before_network_start_callback_; | 388 BeforeNetworkStartCallback before_network_start_callback_; |
393 BeforeHeadersSentCallback before_headers_sent_callback_; | 389 BeforeHeadersSentCallback before_headers_sent_callback_; |
394 | 390 |
395 ConnectionAttempts connection_attempts_; | 391 ConnectionAttempts connection_attempts_; |
396 IPEndPoint remote_endpoint_; | 392 IPEndPoint remote_endpoint_; |
397 // Network error details for this transaction. | 393 // Network error details for this transaction. |
398 NetErrorDetails net_error_details_; | 394 NetErrorDetails net_error_details_; |
399 | 395 |
400 // Communicate lifetime of transaction to the throttler, and | 396 // Communicate lifetime of transaction to the throttler, and |
401 // throttled state to the transaction. | 397 // throttled state to the transaction. |
402 std::unique_ptr<NetworkThrottleManager::Throttle> throttle_; | 398 std::unique_ptr<NetworkThrottleManager::Throttle> throttle_; |
403 | 399 |
404 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); | 400 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); |
405 }; | 401 }; |
406 | 402 |
407 } // namespace net | 403 } // namespace net |
408 | 404 |
409 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 405 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
OLD | NEW |