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

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

Issue 1320303009: relnote: Allow individual QUIC writers to limit the maximum packet size. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0909_1
Patch Set: Created 5 years, 3 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_QUIC_TOOLS_QUIC_SIMPLE_PER_CONNECTION_PACKET_WRITER_H_ 5 #ifndef NET_QUIC_TOOLS_QUIC_SIMPLE_PER_CONNECTION_PACKET_WRITER_H_
6 #define NET_QUIC_TOOLS_QUIC_SIMPLE_PER_CONNECTION_PACKET_WRITER_H_ 6 #define NET_QUIC_TOOLS_QUIC_SIMPLE_PER_CONNECTION_PACKET_WRITER_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "net/quic/quic_connection.h" 9 #include "net/quic/quic_connection.h"
10 #include "net/quic/quic_packet_writer.h" 10 #include "net/quic/quic_packet_writer.h"
(...skipping 20 matching lines...) Expand all
31 31
32 // Default implementation of the QuicPacketWriter interface: Passes everything 32 // Default implementation of the QuicPacketWriter interface: Passes everything
33 // to |shared_writer_|. 33 // to |shared_writer_|.
34 WriteResult WritePacket(const char* buffer, 34 WriteResult WritePacket(const char* buffer,
35 size_t buf_len, 35 size_t buf_len,
36 const IPAddressNumber& self_address, 36 const IPAddressNumber& self_address,
37 const IPEndPoint& peer_address) override; 37 const IPEndPoint& peer_address) override;
38 bool IsWriteBlockedDataBuffered() const override; 38 bool IsWriteBlockedDataBuffered() const override;
39 bool IsWriteBlocked() const override; 39 bool IsWriteBlocked() const override;
40 void SetWritable() override; 40 void SetWritable() override;
41 QuicByteCount GetMaxPacketSize(const IPEndPoint& peer_address) const override;
41 42
42 private: 43 private:
43 void OnWriteComplete(WriteResult result); 44 void OnWriteComplete(WriteResult result);
44 45
45 QuicSimpleServerPacketWriter* shared_writer_; // Not owned. 46 QuicSimpleServerPacketWriter* shared_writer_; // Not owned.
46 QuicConnection* connection_; // Not owned. 47 QuicConnection* connection_; // Not owned.
47 48
48 base::WeakPtrFactory<QuicSimplePerConnectionPacketWriter> weak_factory_; 49 base::WeakPtrFactory<QuicSimplePerConnectionPacketWriter> weak_factory_;
49 50
50 DISALLOW_COPY_AND_ASSIGN(QuicSimplePerConnectionPacketWriter); 51 DISALLOW_COPY_AND_ASSIGN(QuicSimplePerConnectionPacketWriter);
51 }; 52 };
52 53
53 } // namespace tools 54 } // namespace tools
54 } // namespace net 55 } // namespace net
55 56
56 #endif // NET_QUIC_TOOLS_QUIC_SIMPLE_PER_CONNECTION_PACKET_WRITER_H_ 57 #endif // NET_QUIC_TOOLS_QUIC_SIMPLE_PER_CONNECTION_PACKET_WRITER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_per_connection_packet_writer.cc ('k') | net/tools/quic/quic_simple_per_connection_packet_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698