Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(414)

Side by Side Diff: net/http/http_network_transaction.h

Issue 2818623002: When HttpNetworkTransaction encounters QUIC errors, retry the request (Closed)
Patch Set: More comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/http/http_network_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698