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

Unified Diff: net/quic/quic_ack_notifier_manager.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_ack_notifier.cc ('k') | net/quic/quic_ack_notifier_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_ack_notifier_manager.h
diff --git a/net/quic/quic_ack_notifier_manager.h b/net/quic/quic_ack_notifier_manager.h
deleted file mode 100644
index d4d97ad7cd75f41bbe9ab4dd88f62192018ab152..0000000000000000000000000000000000000000
--- a/net/quic/quic_ack_notifier_manager.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_QUIC_QUIC_ACK_NOTIFIER_MANAGER_H_
-#define NET_QUIC_QUIC_ACK_NOTIFIER_MANAGER_H_
-
-#include <list>
-#include <map>
-
-#include "base/containers/hash_tables.h"
-#include "net/quic/quic_protocol.h"
-
-namespace net {
-
-class QuicAckNotifier;
-
-// The AckNotifierManager is used by the QuicSentPacketManager to keep track of
-// all the AckNotifiers currently active. It owns the AckNotifiers which it gets
-// from the serialized packets passed into OnSerializedPacket. It maintains both
-// a set of AckNotifiers and a map from sequence number to AckNotifier the sake
-// of efficiency - we can quickly check the map to see if any AckNotifiers are
-// interested in a given sequence number.
-class NET_EXPORT_PRIVATE AckNotifierManager {
- public:
- AckNotifierManager();
- virtual ~AckNotifierManager();
-
- // Called when the connection receives a new AckFrame. If |sequence_number|
- // exists in ack_notifier_map_ then the corresponding AckNotifiers will have
- // their OnAck method called.
- void OnPacketAcked(QuicPacketSequenceNumber sequence_number,
- QuicTime::Delta delta_largest_observed);
-
- // If a packet has been retransmitted with a new sequence number, then this
- // will be called. It updates the mapping in ack_notifier_map_, and also
- // updates the internal set of sequence numbers in each matching AckNotifier.
- void OnPacketRetransmitted(QuicPacketSequenceNumber old_sequence_number,
- QuicPacketSequenceNumber new_sequence_number,
- int packet_payload_size);
-
- // This is called after a packet has been serialized, is ready to be sent, and
- // contains retransmittable frames (which may have associated AckNotifiers).
- // If any of the retransmittable frames included in |serialized_packet| have
- // AckNotifiers registered, then add them to our internal map and additionally
- // inform the AckNotifier of the sequence number which it should track.
- void OnSerializedPacket(const SerializedPacket& serialized_packet);
-
- private:
- typedef std::list<QuicAckNotifier*> AckNotifierList;
- // TODO(ianswett): Further improvement may come from changing this to a deque.
- typedef base::hash_map<QuicPacketSequenceNumber, AckNotifierList>
- AckNotifierMap;
-
- // Maps from sequence number to the AckNotifiers which are registered
- // for that sequence number. On receipt of an ACK for a given sequence
- // number, call OnAck for all mapped AckNotifiers.
- // When the last reference is removed from the map, the notifier is deleted.
- AckNotifierMap ack_notifier_map_;
-
- DISALLOW_COPY_AND_ASSIGN(AckNotifierManager);
-};
-
-} // namespace net
-
-#endif // NET_QUIC_QUIC_ACK_NOTIFIER_MANAGER_H_
« no previous file with comments | « net/quic/quic_ack_notifier.cc ('k') | net/quic/quic_ack_notifier_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698