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

Unified Diff: net/quic/quic_multipath_received_packet_manager.h

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc Created 4 years, 5 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_http_utils_test.cc ('k') | net/quic/quic_multipath_received_packet_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_multipath_received_packet_manager.h
diff --git a/net/quic/quic_multipath_received_packet_manager.h b/net/quic/quic_multipath_received_packet_manager.h
deleted file mode 100644
index 5f1f3a3fa7ecc28e36b078bbb1c845db6bdeed8f..0000000000000000000000000000000000000000
--- a/net/quic/quic_multipath_received_packet_manager.h
+++ /dev/null
@@ -1,76 +0,0 @@
-// Copyright (c) 2015 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.
-
-// A connection level received packet manager which manages multiple per path
-// received packet managers.
-
-#ifndef NET_QUIC_QUIC_MULTIPATH_RECEIVED_PACKET_MANAGER_H_
-#define NET_QUIC_QUIC_MULTIPATH_RECEIVED_PACKET_MANAGER_H_
-
-#include <unordered_map>
-#include <vector>
-
-#include "net/quic/quic_protocol.h"
-#include "net/quic/quic_received_packet_manager.h"
-
-namespace net {
-
-namespace test {
-class QuicMultipathReceivedPacketManagerPeer;
-} // namespace test
-
-class NET_EXPORT_PRIVATE QuicMultipathReceivedPacketManager {
- public:
- typedef std::unordered_map<QuicPathId, QuicReceivedPacketManager*>
- MultipathReceivedPacketManagerMap;
-
- explicit QuicMultipathReceivedPacketManager(QuicConnectionStats* stats);
- ~QuicMultipathReceivedPacketManager();
-
- // Called when a new path with |path_id| is created.
- void OnPathCreated(QuicPathId path_id, QuicConnectionStats* stats);
-
- // Called when path with |path_id| is closed.
- void OnPathClosed(QuicPathId path_id);
-
- // Records packet receipt information on path with |path_id|.
- void RecordPacketReceived(QuicPathId path_id,
- QuicByteCount bytes,
- const QuicPacketHeader& header,
- QuicTime receipt_time);
-
- // Checks whether |packet_number| is missing on path with |path_id|.
- bool IsMissing(QuicPathId path_id, QuicPacketNumber packet_number);
-
- // Checks if we're still waiting for the packet with |packet_number| on path
- // with |path_id|.
- bool IsAwaitingPacket(QuicPathId path_id, QuicPacketNumber packet_number);
-
- // If |force_all_paths| is false, populates ack information for paths whose
- // ack has been updated since UpdateReceivedPacketInfo was called last time.
- // Otherwise, populates ack for all paths.
- void UpdateReceivedPacketInfo(std::vector<QuicAckFrame>* ack_frames,
- QuicTime approximate_now,
- bool force_all_paths);
-
- // Updates internal state based on stop_waiting frames for corresponding path.
- void UpdatePacketInformationSentByPeer(
- const std::vector<QuicStopWaitingFrame>& stop_waitings);
-
- // Returns true when there are new missing packets to be reported within 3
- // packets of the largest observed on path with |path_id|.
- bool HasNewMissingPackets(QuicPathId path_id) const;
-
- QuicPacketNumber GetPeerLeastPacketAwaitingAck(QuicPathId path_id);
-
- private:
- friend class test::QuicMultipathReceivedPacketManagerPeer;
-
- // Map mapping path id to path received packet manager.
- MultipathReceivedPacketManagerMap path_managers_;
-};
-
-} // namespace net
-
-#endif // NET_QUIC_QUIC_MULTIPATH_RECEIVED_PACKET_MANAGER_H_
« no previous file with comments | « net/quic/quic_http_utils_test.cc ('k') | net/quic/quic_multipath_received_packet_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698