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

Unified Diff: net/tools/quic/quic_default_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/tools/quic/quic_default_packet_writer.h
diff --git a/net/tools/quic/quic_default_packet_writer.h b/net/tools/quic/quic_default_packet_writer.h
index 20f5fb0db616ed79db3a1edc655277ce55c0656a..75f77571eb56285f1eacd3a5cddb97182b098707 100644
--- a/net/tools/quic/quic_default_packet_writer.h
+++ b/net/tools/quic/quic_default_packet_writer.h
@@ -16,6 +16,10 @@ struct WriteResult;
namespace tools {
+namespace test {
+class QuicDispatcherPeer;
+} // namespace test
+
// Default packet writer which wraps QuicSocketUtils WritePacket.
class QuicDefaultPacketWriter : public QuicPacketWriter {
public:
@@ -29,9 +33,12 @@ class QuicDefaultPacketWriter : public QuicPacketWriter {
const net::IPEndPoint& peer_address,
QuicBlockedWriterInterface* blocked_writer) OVERRIDE;
virtual bool IsWriteBlockedDataBuffered() const OVERRIDE;
+ virtual bool IsWriteBlocked() const OVERRIDE;
+ virtual void SetWritable() OVERRIDE;
private:
int fd_;
+ bool write_blocked_;
};
} // namespace tools

Powered by Google App Engine
This is Rietveld 408576698