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

Side by Side Diff: net/tools/quic/quic_packet_writer_wrapper.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_TOOLS_QUIC_QUIC_PACKET_WRITER_WRAPPER_H_ 5 #ifndef NET_TOOLS_QUIC_QUIC_PACKET_WRITER_WRAPPER_H_
6 #define NET_TOOLS_QUIC_QUIC_PACKET_WRITER_WRAPPER_H_ 6 #define NET_TOOLS_QUIC_QUIC_PACKET_WRITER_WRAPPER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "net/quic/quic_packet_writer.h" 9 #include "net/quic/quic_packet_writer.h"
10 10
(...skipping 12 matching lines...) Expand all
23 23
24 // Default implementation of the QuicPacketWriter interface. Passes everything 24 // Default implementation of the QuicPacketWriter interface. Passes everything
25 // to |writer_|. 25 // to |writer_|.
26 WriteResult WritePacket(const char* buffer, 26 WriteResult WritePacket(const char* buffer,
27 size_t buf_len, 27 size_t buf_len,
28 const IPAddressNumber& self_address, 28 const IPAddressNumber& self_address,
29 const IPEndPoint& peer_address) override; 29 const IPEndPoint& peer_address) override;
30 bool IsWriteBlockedDataBuffered() const override; 30 bool IsWriteBlockedDataBuffered() const override;
31 bool IsWriteBlocked() const override; 31 bool IsWriteBlocked() const override;
32 void SetWritable() override; 32 void SetWritable() override;
33 QuicByteCount GetMaxPacketSize(const IPEndPoint& peer_address) const override;
33 34
34 // Takes ownership of |writer|. 35 // Takes ownership of |writer|.
35 void set_writer(QuicPacketWriter* writer); 36 void set_writer(QuicPacketWriter* writer);
36 37
37 private: 38 private:
38 scoped_ptr<QuicPacketWriter> writer_; 39 scoped_ptr<QuicPacketWriter> writer_;
39 40
40 DISALLOW_COPY_AND_ASSIGN(QuicPacketWriterWrapper); 41 DISALLOW_COPY_AND_ASSIGN(QuicPacketWriterWrapper);
41 }; 42 };
42 43
43 } // namespace tools 44 } // namespace tools
44 } // namespace net 45 } // namespace net
45 46
46 #endif // NET_TOOLS_QUIC_QUIC_PACKET_WRITER_WRAPPER_H_ 47 #endif // NET_TOOLS_QUIC_QUIC_PACKET_WRITER_WRAPPER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_default_packet_writer.cc ('k') | net/tools/quic/quic_packet_writer_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698