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

Side by Side Diff: net/quic/core/quic_multipath_sent_packet_manager.h

Issue 2561893002: Add QUIC_EXPORT macros (Closed)
Patch Set: More Created 4 years 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
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 #ifndef NET_QUIC_CORE_QUIC_MULTIPATH_SENT_PACKET_MANAGER_H_ 5 #ifndef NET_QUIC_CORE_QUIC_MULTIPATH_SENT_PACKET_MANAGER_H_
6 #define NET_QUIC_CORE_QUIC_MULTIPATH_SENT_PACKET_MANAGER_H_ 6 #define NET_QUIC_CORE_QUIC_MULTIPATH_SENT_PACKET_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "net/base/net_export.h"
11 #include "net/quic/core/quic_connection_close_delegate_interface.h" 10 #include "net/quic/core/quic_connection_close_delegate_interface.h"
12 #include "net/quic/core/quic_packets.h" 11 #include "net/quic/core/quic_packets.h"
13 #include "net/quic/core/quic_sent_packet_manager.h" 12 #include "net/quic/core/quic_sent_packet_manager.h"
14 #include "net/quic/core/quic_sent_packet_manager_interface.h" 13 #include "net/quic/core/quic_sent_packet_manager_interface.h"
14 #include "net/quic/platform/api/quic_export.h"
15 15
16 namespace net { 16 namespace net {
17 17
18 namespace test { 18 namespace test {
19 class QuicConnectionPeer; 19 class QuicConnectionPeer;
20 class QuicMultipathSentPacketManagerPeer; 20 class QuicMultipathSentPacketManagerPeer;
21 } // namespace test 21 } // namespace test
22 22
23 // A connection level sent packet manager which manages a sent packet manager 23 // A connection level sent packet manager which manages a sent packet manager
24 // per path. The main duties of multipath sent packet manager comprise: 24 // per path. The main duties of multipath sent packet manager comprise:
25 // (1) manages a pending retransmission queue shared among all paths; 25 // (1) manages a pending retransmission queue shared among all paths;
26 // (2) records mapping of packets transmitted on different paths; 26 // (2) records mapping of packets transmitted on different paths;
27 // (3) consults paths which should timeout on a retransmission timeout. 27 // (3) consults paths which should timeout on a retransmission timeout.
28 // TODO(fayang): Currently above duties are not fully implemented, need to 28 // TODO(fayang): Currently above duties are not fully implemented, need to
29 // finish them. 29 // finish them.
30 class NET_EXPORT_PRIVATE QuicMultipathSentPacketManager 30 class QUIC_EXPORT_PRIVATE QuicMultipathSentPacketManager
31 : public QuicSentPacketManagerInterface { 31 : public QuicSentPacketManagerInterface {
32 public: 32 public:
33 // Multipath sent packet manager takes ownership of |manager|. 33 // Multipath sent packet manager takes ownership of |manager|.
34 QuicMultipathSentPacketManager( 34 QuicMultipathSentPacketManager(
35 QuicSentPacketManagerInterface* manager, 35 QuicSentPacketManagerInterface* manager,
36 QuicConnectionCloseDelegateInterface* delegate); 36 QuicConnectionCloseDelegateInterface* delegate);
37 ~QuicMultipathSentPacketManager() override; 37 ~QuicMultipathSentPacketManager() override;
38 38
39 // Start implementation of QuicSentPacketManagerInterface. 39 // Start implementation of QuicSentPacketManagerInterface.
40 // Sets all paths from |config|. 40 // Sets all paths from |config|.
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // State of per path sent packet manager. 176 // State of per path sent packet manager.
177 // TODO(fayang): Need to add a state that path can receive acks but cannot 177 // TODO(fayang): Need to add a state that path can receive acks but cannot
178 // send data. 178 // send data.
179 enum PathSentPacketManagerState { 179 enum PathSentPacketManagerState {
180 ACTIVE, // We both send packets and receiving acks on this path. 180 ACTIVE, // We both send packets and receiving acks on this path.
181 CLOSING, // We stop sending packets and receiving acks on this path. There 181 CLOSING, // We stop sending packets and receiving acks on this path. There
182 // are retransmittable frames in the unacked packets map. 182 // are retransmittable frames in the unacked packets map.
183 }; 183 };
184 184
185 // PathSentPacketManagerInfo contains sent packet manager and its state. 185 // PathSentPacketManagerInfo contains sent packet manager and its state.
186 struct NET_EXPORT_PRIVATE PathSentPacketManagerInfo { 186 struct QUIC_EXPORT_PRIVATE PathSentPacketManagerInfo {
187 PathSentPacketManagerInfo(); 187 PathSentPacketManagerInfo();
188 PathSentPacketManagerInfo(QuicSentPacketManagerInterface* manager, 188 PathSentPacketManagerInfo(QuicSentPacketManagerInterface* manager,
189 PathSentPacketManagerState state); 189 PathSentPacketManagerState state);
190 PathSentPacketManagerInfo(const PathSentPacketManagerInfo& other); 190 PathSentPacketManagerInfo(const PathSentPacketManagerInfo& other);
191 191
192 QuicSentPacketManagerInterface* manager; 192 QuicSentPacketManagerInterface* manager;
193 PathSentPacketManagerState state; 193 PathSentPacketManagerState state;
194 }; 194 };
195 195
196 // Returns path sent packet manager if it exists for |path_id|, returns 196 // Returns path sent packet manager if it exists for |path_id|, returns
(...skipping 17 matching lines...) Expand all
214 214
215 // Does not own this delegate. 215 // Does not own this delegate.
216 QuicConnectionCloseDelegateInterface* delegate_; 216 QuicConnectionCloseDelegateInterface* delegate_;
217 217
218 DISALLOW_COPY_AND_ASSIGN(QuicMultipathSentPacketManager); 218 DISALLOW_COPY_AND_ASSIGN(QuicMultipathSentPacketManager);
219 }; 219 };
220 220
221 } // namespace net 221 } // namespace net
222 222
223 #endif // NET_QUIC_CORE_QUIC_MULTIPATH_SENT_PACKET_MANAGER_H_ 223 #endif // NET_QUIC_CORE_QUIC_MULTIPATH_SENT_PACKET_MANAGER_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_multipath_received_packet_manager.h ('k') | net/quic/core/quic_multipath_transmissions_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698