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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 base::TimeTicks send_start_time_; | 362 base::TimeTicks send_start_time_; |
363 base::TimeTicks send_end_time_; | 363 base::TimeTicks send_end_time_; |
364 | 364 |
365 // The next state in the state machine. | 365 // The next state in the state machine. |
366 State next_state_; | 366 State next_state_; |
367 | 367 |
368 // True when the tunnel is in the process of being established - we can't | 368 // True when the tunnel is in the process of being established - we can't |
369 // read from the socket until the tunnel is done. | 369 // read from the socket until the tunnel is done. |
370 bool establishing_tunnel_; | 370 bool establishing_tunnel_; |
371 | 371 |
| 372 // Enable pooling to a SpdySession with matching IP and certificate |
| 373 // even if the SpdySessionKey is different. |
| 374 bool enable_ip_based_pooling_; |
| 375 |
372 // The helper object to use to create WebSocketHandshakeStreamBase | 376 // The helper object to use to create WebSocketHandshakeStreamBase |
373 // objects. Only relevant when establishing a WebSocket connection. | 377 // objects. Only relevant when establishing a WebSocket connection. |
374 WebSocketHandshakeStreamBase::CreateHelper* | 378 WebSocketHandshakeStreamBase::CreateHelper* |
375 websocket_handshake_stream_base_create_helper_; | 379 websocket_handshake_stream_base_create_helper_; |
376 | 380 |
377 BeforeNetworkStartCallback before_network_start_callback_; | 381 BeforeNetworkStartCallback before_network_start_callback_; |
378 BeforeHeadersSentCallback before_headers_sent_callback_; | 382 BeforeHeadersSentCallback before_headers_sent_callback_; |
379 | 383 |
380 ConnectionAttempts connection_attempts_; | 384 ConnectionAttempts connection_attempts_; |
381 IPEndPoint remote_endpoint_; | 385 IPEndPoint remote_endpoint_; |
382 // Network error details for this transaction. | 386 // Network error details for this transaction. |
383 NetErrorDetails net_error_details_; | 387 NetErrorDetails net_error_details_; |
384 | 388 |
385 // Communicate lifetime of transaction to the throttler, and | 389 // Communicate lifetime of transaction to the throttler, and |
386 // throttled state to the transaction. | 390 // throttled state to the transaction. |
387 std::unique_ptr<NetworkThrottleManager::Throttle> throttle_; | 391 std::unique_ptr<NetworkThrottleManager::Throttle> throttle_; |
388 | 392 |
389 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); | 393 DISALLOW_COPY_AND_ASSIGN(HttpNetworkTransaction); |
390 }; | 394 }; |
391 | 395 |
392 } // namespace net | 396 } // namespace net |
393 | 397 |
394 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ | 398 #endif // NET_HTTP_HTTP_NETWORK_TRANSACTION_H_ |
OLD | NEW |