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

Side by Side Diff: net/quic/core/quic_packet_generator.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
« no previous file with comments | « net/quic/core/quic_packet_creator.h ('k') | net/quic/core/quic_packet_writer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // Responsible for generating packets on behalf of a QuicConnection. 5 // Responsible for generating packets on behalf of a QuicConnection.
6 // Packets are serialized just-in-time. Control frames are queued. 6 // Packets are serialized just-in-time. Control frames are queued.
7 // Ack and Feedback frames will be requested from the Connection 7 // Ack and Feedback frames will be requested from the Connection
8 // just-in-time. When a packet needs to be sent, the Generator 8 // just-in-time. When a packet needs to be sent, the Generator
9 // will serialize a packet and pass it to QuicConnection::SendOrQueuePacket() 9 // will serialize a packet and pass it to QuicConnection::SendOrQueuePacket()
10 // 10 //
(...skipping 28 matching lines...) Expand all
39 39
40 #ifndef NET_QUIC_CORE_QUIC_PACKET_GENERATOR_H_ 40 #ifndef NET_QUIC_CORE_QUIC_PACKET_GENERATOR_H_
41 #define NET_QUIC_CORE_QUIC_PACKET_GENERATOR_H_ 41 #define NET_QUIC_CORE_QUIC_PACKET_GENERATOR_H_
42 42
43 #include <stddef.h> 43 #include <stddef.h>
44 #include <stdint.h> 44 #include <stdint.h>
45 45
46 #include <list> 46 #include <list>
47 47
48 #include "base/macros.h" 48 #include "base/macros.h"
49 #include "net/base/net_export.h"
50 #include "net/quic/core/quic_packet_creator.h" 49 #include "net/quic/core/quic_packet_creator.h"
51 #include "net/quic/core/quic_pending_retransmission.h" 50 #include "net/quic/core/quic_pending_retransmission.h"
52 #include "net/quic/core/quic_sent_packet_manager.h" 51 #include "net/quic/core/quic_sent_packet_manager.h"
53 #include "net/quic/core/quic_types.h" 52 #include "net/quic/core/quic_types.h"
53 #include "net/quic/platform/api/quic_export.h"
54 54
55 namespace net { 55 namespace net {
56 56
57 namespace test { 57 namespace test {
58 class QuicPacketGeneratorPeer; 58 class QuicPacketGeneratorPeer;
59 } // namespace test 59 } // namespace test
60 60
61 class NET_EXPORT_PRIVATE QuicPacketGenerator { 61 class QUIC_EXPORT_PRIVATE QuicPacketGenerator {
62 public: 62 public:
63 class NET_EXPORT_PRIVATE DelegateInterface 63 class QUIC_EXPORT_PRIVATE DelegateInterface
64 : public QuicPacketCreator::DelegateInterface { 64 : public QuicPacketCreator::DelegateInterface {
65 public: 65 public:
66 ~DelegateInterface() override {} 66 ~DelegateInterface() override {}
67 // Consults delegate whether a packet should be generated. 67 // Consults delegate whether a packet should be generated.
68 virtual bool ShouldGeneratePacket(HasRetransmittableData retransmittable, 68 virtual bool ShouldGeneratePacket(HasRetransmittableData retransmittable,
69 IsHandshake handshake) = 0; 69 IsHandshake handshake) = 0;
70 virtual const QuicFrame GetUpdatedAckFrame() = 0; 70 virtual const QuicFrame GetUpdatedAckFrame() = 0;
71 virtual void PopulateStopWaitingFrame( 71 virtual void PopulateStopWaitingFrame(
72 QuicStopWaitingFrame* stop_waiting) = 0; 72 QuicStopWaitingFrame* stop_waiting) = 0;
73 }; 73 };
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 // are referenced elsewhere so that they can later be (optionally) 211 // are referenced elsewhere so that they can later be (optionally)
212 // retransmitted. 212 // retransmitted.
213 QuicStopWaitingFrame pending_stop_waiting_frame_; 213 QuicStopWaitingFrame pending_stop_waiting_frame_;
214 214
215 DISALLOW_COPY_AND_ASSIGN(QuicPacketGenerator); 215 DISALLOW_COPY_AND_ASSIGN(QuicPacketGenerator);
216 }; 216 };
217 217
218 } // namespace net 218 } // namespace net
219 219
220 #endif // NET_QUIC_CORE_QUIC_PACKET_GENERATOR_H_ 220 #endif // NET_QUIC_CORE_QUIC_PACKET_GENERATOR_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_packet_creator.h ('k') | net/quic/core/quic_packet_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698