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

Unified Diff: net/quic/quic_packet_writer.h

Issue 127503002: Make QuicPacketWriter keep track of socket writability; expose the (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 side-by-side diff with in-line comments
Download patch
Index: net/quic/quic_packet_writer.h
diff --git a/net/quic/quic_packet_writer.h b/net/quic/quic_packet_writer.h
index 5df30c8fa148c0ac4f3f5b38933c4d7202b37bb2..fbea660cf6f1c03d86fc61930dd6bb7dab416877 100644
--- a/net/quic/quic_packet_writer.h
+++ b/net/quic/quic_packet_writer.h
@@ -34,6 +34,13 @@ class NET_EXPORT_PRIVATE QuicPacketWriter {
// when an attempt to write results in the underlying socket becoming
// write blocked.
virtual bool IsWriteBlockedDataBuffered() const = 0;
+
+ // Returns true if the network socket is not writable.
+ virtual bool IsWriteBlocked() const = 0;
+
+ // Records that the socket has become writable, for example when an EPOLLOUT
+ // is received or an asynchronous write completes.
+ virtual void SetWritable() = 0;
};
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698