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

Side by Side Diff: net/quic/quic_connection.h

Issue 604163002: Change the return type of QuicConnection::CheckForTimeout from bool to (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Remove_calls_to_OnSerializedPacket_75716236
Patch Set: Created 6 years, 2 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 | « no previous file | net/quic/quic_connection.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 // The entity that handles framing writes for a Quic client or server. 5 // The entity that handles framing writes for a Quic client or server.
6 // Each QuicSession will have a connection associated with it. 6 // Each QuicSession will have a connection associated with it.
7 // 7 //
8 // On the server side, the Dispatcher handles the raw reads, and hands off 8 // On the server side, the Dispatcher handles the raw reads, and hands off
9 // packets via ProcessUdpPacket for framing and processing. 9 // packets via ProcessUdpPacket for framing and processing.
10 // 10 //
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 432
433 // Sets (or resets) the idle state connection timeout. Also, checks and times 433 // Sets (or resets) the idle state connection timeout. Also, checks and times
434 // out the connection if network timer has expired for |timeout|. 434 // out the connection if network timer has expired for |timeout|.
435 void SetIdleNetworkTimeout(QuicTime::Delta timeout); 435 void SetIdleNetworkTimeout(QuicTime::Delta timeout);
436 // Sets (or resets) the total time delta the connection can be alive for. 436 // Sets (or resets) the total time delta the connection can be alive for.
437 // Also, checks and times out the connection if timer has expired for 437 // Also, checks and times out the connection if timer has expired for
438 // |timeout|. Used to limit the time a connection can be alive before crypto 438 // |timeout|. Used to limit the time a connection can be alive before crypto
439 // handshake finishes. 439 // handshake finishes.
440 void SetOverallConnectionTimeout(QuicTime::Delta timeout); 440 void SetOverallConnectionTimeout(QuicTime::Delta timeout);
441 441
442 // If the connection has timed out, this will close the connection and return 442 // If the connection has timed out, this will close the connection.
443 // true. Otherwise, it will return false and will reset the timeout alarm. 443 // Otherwise, it will reschedule the timeout alarm.
444 bool CheckForTimeout(); 444 void CheckForTimeout();
445 445
446 // Sends a ping, and resets the ping alarm. 446 // Sends a ping, and resets the ping alarm.
447 void SendPing(); 447 void SendPing();
448 448
449 // Sets up a packet with an QuicAckFrame and sends it out. 449 // Sets up a packet with an QuicAckFrame and sends it out.
450 void SendAck(); 450 void SendAck();
451 451
452 // Called when an RTO fires. Resets the retransmission alarm if there are 452 // Called when an RTO fires. Resets the retransmission alarm if there are
453 // remaining unacked packets. 453 // remaining unacked packets.
454 void OnRetransmissionTimeout(); 454 void OnRetransmissionTimeout();
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 // If non-empty this contains the set of versions received in a 806 // If non-empty this contains the set of versions received in a
807 // version negotiation packet. 807 // version negotiation packet.
808 QuicVersionVector server_supported_versions_; 808 QuicVersionVector server_supported_versions_;
809 809
810 DISALLOW_COPY_AND_ASSIGN(QuicConnection); 810 DISALLOW_COPY_AND_ASSIGN(QuicConnection);
811 }; 811 };
812 812
813 } // namespace net 813 } // namespace net
814 814
815 #endif // NET_QUIC_QUIC_CONNECTION_H_ 815 #endif // NET_QUIC_QUIC_CONNECTION_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698