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

Side by Side Diff: net/quic/quic_packet_writer.h

Issue 127633002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_packet_creator_test.cc ('k') | net/quic/quic_sent_packet_manager.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_QUIC_PACKET_WRITER_H_ 5 #ifndef NET_QUIC_QUIC_PACKET_WRITER_H_
6 #define NET_QUIC_QUIC_PACKET_WRITER_H_ 6 #define NET_QUIC_QUIC_PACKET_WRITER_H_
7 7
8 #include "net/base/ip_endpoint.h" 8 #include "net/base/ip_endpoint.h"
9 #include "net/quic/quic_protocol.h" 9 #include "net/quic/quic_protocol.h"
10 10
(...skipping 16 matching lines...) Expand all
27 virtual WriteResult WritePacket( 27 virtual WriteResult WritePacket(
28 const char* buffer, size_t buf_len, 28 const char* buffer, size_t buf_len,
29 const net::IPAddressNumber& self_address, 29 const net::IPAddressNumber& self_address,
30 const net::IPEndPoint& peer_address, 30 const net::IPEndPoint& peer_address,
31 QuicBlockedWriterInterface* blocked_writer) = 0; 31 QuicBlockedWriterInterface* blocked_writer) = 0;
32 32
33 // Returns true if the writer buffers and subsequently rewrites data 33 // Returns true if the writer buffers and subsequently rewrites data
34 // when an attempt to write results in the underlying socket becoming 34 // when an attempt to write results in the underlying socket becoming
35 // write blocked. 35 // write blocked.
36 virtual bool IsWriteBlockedDataBuffered() const = 0; 36 virtual bool IsWriteBlockedDataBuffered() const = 0;
37
38 // Returns true if the network socket is not writable.
39 virtual bool IsWriteBlocked() const = 0;
40
41 // Records that the socket has become writable, for example when an EPOLLOUT
42 // is received or an asynchronous write completes.
43 virtual void SetWritable() = 0;
37 }; 44 };
38 45
39 } // namespace net 46 } // namespace net
40 47
41 #endif // NET_QUIC_QUIC_PACKET_WRITER_H_ 48 #endif // NET_QUIC_QUIC_PACKET_WRITER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_packet_creator_test.cc ('k') | net/quic/quic_sent_packet_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698