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

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

Issue 867293004: Rename QuicAckNotifier's AddSequenceNumber to OnSerializedPacket. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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_ack_notifier.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_QUIC_QUIC_ACK_NOTIFIER_H_ 5 #ifndef NET_QUIC_QUIC_ACK_NOTIFIER_H_
6 #define NET_QUIC_QUIC_ACK_NOTIFIER_H_ 6 #define NET_QUIC_QUIC_ACK_NOTIFIER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "net/quic/quic_protocol.h" 9 #include "net/quic/quic_protocol.h"
10 10
(...skipping 22 matching lines...) Expand all
33 friend class base::RefCounted<DelegateInterface>; 33 friend class base::RefCounted<DelegateInterface>;
34 34
35 // Delegates are ref counted. 35 // Delegates are ref counted.
36 virtual ~DelegateInterface(); 36 virtual ~DelegateInterface();
37 }; 37 };
38 38
39 // QuicAckNotifier is expected to keep its own reference to the delegate. 39 // QuicAckNotifier is expected to keep its own reference to the delegate.
40 explicit QuicAckNotifier(DelegateInterface* delegate); 40 explicit QuicAckNotifier(DelegateInterface* delegate);
41 virtual ~QuicAckNotifier(); 41 virtual ~QuicAckNotifier();
42 42
43 // Register a sequence number that this AckNotifier should be interested in. 43 // Register a serialized packet the notifier should track.
44 void AddSequenceNumber(const QuicPacketSequenceNumber& sequence_number, 44 void OnSerializedPacket();
45 int packet_payload_size);
46 45
47 // Called by the QuicConnection on receipt of new ACK frame, with the sequence 46 // Called by the QuicConnection on receipt of new ACK frame, with the sequence
48 // number referenced by the ACK frame. 47 // number referenced by the ACK frame.
49 // Deletes the matching sequence number from the stored set of sequence 48 // Deletes the matching sequence number from the stored set of sequence
50 // numbers. If this set is now empty, call the stored delegate's 49 // numbers. If this set is now empty, call the stored delegate's
51 // OnAckNotification method. 50 // OnAckNotification method.
52 // 51 //
53 // Returns true if the provided sequence_number caused the delegate to be 52 // Returns true if the provided sequence_number caused the delegate to be
54 // called, false otherwise. 53 // called, false otherwise.
55 bool OnAck(QuicPacketSequenceNumber sequence_number, 54 bool OnAck(QuicPacketSequenceNumber sequence_number,
(...skipping 18 matching lines...) Expand all
74 int retransmitted_packet_count_; 73 int retransmitted_packet_count_;
75 // Number of bytes that had to be retransmitted. 74 // Number of bytes that had to be retransmitted.
76 int retransmitted_byte_count_; 75 int retransmitted_byte_count_;
77 76
78 DISALLOW_COPY_AND_ASSIGN(QuicAckNotifier); 77 DISALLOW_COPY_AND_ASSIGN(QuicAckNotifier);
79 }; 78 };
80 79
81 } // namespace net 80 } // namespace net
82 81
83 #endif // NET_QUIC_QUIC_ACK_NOTIFIER_H_ 82 #endif // NET_QUIC_QUIC_ACK_NOTIFIER_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/quic_ack_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698