| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 // A connection level received packet manager which manages multiple per path | 5 // A connection level received packet manager which manages multiple per path |
| 6 // received packet managers. | 6 // received packet managers. |
| 7 | 7 |
| 8 #ifndef NET_QUIC_CORE_QUIC_MULTIPATH_RECEIVED_PACKET_MANAGER_H_ | 8 #ifndef NET_QUIC_CORE_QUIC_MULTIPATH_RECEIVED_PACKET_MANAGER_H_ |
| 9 #define NET_QUIC_CORE_QUIC_MULTIPATH_RECEIVED_PACKET_MANAGER_H_ | 9 #define NET_QUIC_CORE_QUIC_MULTIPATH_RECEIVED_PACKET_MANAGER_H_ |
| 10 | 10 |
| 11 #include <memory> | 11 #include <memory> |
| 12 #include <unordered_map> | 12 #include <unordered_map> |
| 13 #include <vector> | 13 #include <vector> |
| 14 | 14 |
| 15 #include "net/base/net_export.h" | |
| 16 #include "net/quic/core/quic_packets.h" | 15 #include "net/quic/core/quic_packets.h" |
| 17 #include "net/quic/core/quic_received_packet_manager.h" | 16 #include "net/quic/core/quic_received_packet_manager.h" |
| 17 #include "net/quic/platform/api/quic_export.h" |
| 18 | 18 |
| 19 namespace net { | 19 namespace net { |
| 20 | 20 |
| 21 namespace test { | 21 namespace test { |
| 22 class QuicMultipathReceivedPacketManagerPeer; | 22 class QuicMultipathReceivedPacketManagerPeer; |
| 23 } // namespace test | 23 } // namespace test |
| 24 | 24 |
| 25 class NET_EXPORT_PRIVATE QuicMultipathReceivedPacketManager { | 25 class QUIC_EXPORT_PRIVATE QuicMultipathReceivedPacketManager { |
| 26 public: | 26 public: |
| 27 explicit QuicMultipathReceivedPacketManager(QuicConnectionStats* stats); | 27 explicit QuicMultipathReceivedPacketManager(QuicConnectionStats* stats); |
| 28 ~QuicMultipathReceivedPacketManager(); | 28 ~QuicMultipathReceivedPacketManager(); |
| 29 QuicMultipathReceivedPacketManager( | 29 QuicMultipathReceivedPacketManager( |
| 30 const QuicMultipathReceivedPacketManager&) = delete; | 30 const QuicMultipathReceivedPacketManager&) = delete; |
| 31 QuicMultipathReceivedPacketManager& operator=( | 31 QuicMultipathReceivedPacketManager& operator=( |
| 32 const QuicMultipathReceivedPacketManager&) = delete; | 32 const QuicMultipathReceivedPacketManager&) = delete; |
| 33 | 33 |
| 34 // Called when a new path with |path_id| is created. | 34 // Called when a new path with |path_id| is created. |
| 35 void OnPathCreated(QuicPathId path_id, QuicConnectionStats* stats); | 35 void OnPathCreated(QuicPathId path_id, QuicConnectionStats* stats); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 friend class test::QuicMultipathReceivedPacketManagerPeer; | 70 friend class test::QuicMultipathReceivedPacketManagerPeer; |
| 71 | 71 |
| 72 // Map mapping path id to path received packet manager. | 72 // Map mapping path id to path received packet manager. |
| 73 std::unordered_map<QuicPathId, std::unique_ptr<QuicReceivedPacketManager>> | 73 std::unordered_map<QuicPathId, std::unique_ptr<QuicReceivedPacketManager>> |
| 74 path_managers_; | 74 path_managers_; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace net | 77 } // namespace net |
| 78 | 78 |
| 79 #endif // NET_QUIC_CORE_QUIC_MULTIPATH_RECEIVED_PACKET_MANAGER_H_ | 79 #endif // NET_QUIC_CORE_QUIC_MULTIPATH_RECEIVED_PACKET_MANAGER_H_ |
| OLD | NEW |