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

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

Issue 2396503002: Fix net_export.h includes. (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
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 map manages packets which are transmitted across multiple paths. 5 // A map manages packets which are transmitted across multiple paths.
6 // For example, a packet is originally transmitted on path 1 with packet number 6 // For example, a packet is originally transmitted on path 1 with packet number
7 // 1. Then this packet is retransmitted on path 2 with packet number 1. (1, 1) 7 // 1. Then this packet is retransmitted on path 2 with packet number 1. (1, 1)
8 // and (2, 1) are inserted into this map. Suppose (2, 1) is detected lost and 8 // and (2, 1) are inserted into this map. Suppose (2, 1) is detected lost and
9 // gets retransmitted on path 2 with packet 2. (2, 2) will not be inserted 9 // gets retransmitted on path 2 with packet 2. (2, 2) will not be inserted
10 // because this transmission does not "across" path compared to (2, 1). 10 // because this transmission does not "across" path compared to (2, 1).
11 11
12 #ifndef NET_QUIC_QUIC_MULTIPATH_TRANSMISSIONS_MAP_H_ 12 #ifndef NET_QUIC_QUIC_MULTIPATH_TRANSMISSIONS_MAP_H_
13 #define NET_QUIC_QUIC_MULTIPATH_TRANSMISSIONS_MAP_H_ 13 #define NET_QUIC_QUIC_MULTIPATH_TRANSMISSIONS_MAP_H_
14 14
15 #include <deque> 15 #include <deque>
16 #include <unordered_map> 16 #include <unordered_map>
17 17
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "net/base/net_export.h"
19 #include "net/quic/core/quic_protocol.h" 20 #include "net/quic/core/quic_protocol.h"
20 #include "net/quic/core/quic_utils.h" 21 #include "net/quic/core/quic_utils.h"
21 22
22 namespace net { 23 namespace net {
23 24
24 typedef std::pair<QuicPathId, QuicPacketNumber> QuicPathIdPacketNumber; 25 typedef std::pair<QuicPathId, QuicPacketNumber> QuicPathIdPacketNumber;
25 26
26 class NET_EXPORT_PRIVATE QuicMultipathTransmissionsMap { 27 class NET_EXPORT_PRIVATE QuicMultipathTransmissionsMap {
27 public: 28 public:
28 struct QuicPathIdPacketNumberHash { 29 struct QuicPathIdPacketNumberHash {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 // packet has been transmitted as (1, 1) and (2, 1), two entries are added 65 // packet has been transmitted as (1, 1) and (2, 1), two entries are added
65 // to this map and both values point to the same list: {(1, 1), (2, 1)}. 66 // to this map and both values point to the same list: {(1, 1), (2, 1)}.
66 // The MultipathTransmissionsList is owned by the transmission which is 67 // The MultipathTransmissionsList is owned by the transmission which is
67 // received first (on any path). 68 // received first (on any path).
68 MultipathTransmissionsMap transmission_map_; 69 MultipathTransmissionsMap transmission_map_;
69 }; 70 };
70 71
71 } // namespace net 72 } // namespace net
72 73
73 #endif // NET_QUIC_QUIC_MULTIPATH_TRANSMISSIONS_MAP_H_ 74 #endif // NET_QUIC_QUIC_MULTIPATH_TRANSMISSIONS_MAP_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_multipath_received_packet_manager.h ('k') | net/quic/core/quic_packet_creator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698