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

Side by Side Diff: net/tools/quic/quic_per_connection_packet_writer.h

Issue 1660533002: Landing Recent QUIC changes until 01/26/2016 18:14 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_TOOLS_QUIC_QUIC_PER_CONNECTION_PACKET_WRITER_H_ 5 #ifndef NET_TOOLS_QUIC_QUIC_PER_CONNECTION_PACKET_WRITER_H_
6 #define NET_TOOLS_QUIC_QUIC_PER_CONNECTION_PACKET_WRITER_H_ 6 #define NET_TOOLS_QUIC_QUIC_PER_CONNECTION_PACKET_WRITER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 10 matching lines...) Expand all
21 QuicPerConnectionPacketWriter(QuicPacketWriter* shared_writer); 21 QuicPerConnectionPacketWriter(QuicPacketWriter* shared_writer);
22 ~QuicPerConnectionPacketWriter() override; 22 ~QuicPerConnectionPacketWriter() override;
23 23
24 QuicPacketWriter* shared_writer() const { return shared_writer_; } 24 QuicPacketWriter* shared_writer() const { return shared_writer_; }
25 25
26 // Default implementation of the QuicPacketWriter interface: Passes everything 26 // Default implementation of the QuicPacketWriter interface: Passes everything
27 // to |shared_writer_|. 27 // to |shared_writer_|.
28 WriteResult WritePacket(const char* buffer, 28 WriteResult WritePacket(const char* buffer,
29 size_t buf_len, 29 size_t buf_len,
30 const IPAddressNumber& self_address, 30 const IPAddressNumber& self_address,
31 const IPEndPoint& peer_address) override; 31 const IPEndPoint& peer_address,
32 PerPacketOptions* options) override;
32 bool IsWriteBlockedDataBuffered() const override; 33 bool IsWriteBlockedDataBuffered() const override;
33 bool IsWriteBlocked() const override; 34 bool IsWriteBlocked() const override;
34 void SetWritable() override; 35 void SetWritable() override;
35 QuicByteCount GetMaxPacketSize(const IPEndPoint& peer_address) const override; 36 QuicByteCount GetMaxPacketSize(const IPEndPoint& peer_address) const override;
36 37
37 private: 38 private:
38 QuicPacketWriter* shared_writer_; // Not owned. 39 QuicPacketWriter* shared_writer_; // Not owned.
39 40
40 DISALLOW_COPY_AND_ASSIGN(QuicPerConnectionPacketWriter); 41 DISALLOW_COPY_AND_ASSIGN(QuicPerConnectionPacketWriter);
41 }; 42 };
42 43
43 44
44 } // namespace net 45 } // namespace net
45 46
46 #endif // NET_TOOLS_QUIC_QUIC_PER_CONNECTION_PACKET_WRITER_H_ 47 #endif // NET_TOOLS_QUIC_QUIC_PER_CONNECTION_PACKET_WRITER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_packet_writer_wrapper.cc ('k') | net/tools/quic/quic_per_connection_packet_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698