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

Unified Diff: net/tools/quic/quic_dispatcher.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/tools/quic/quic_default_packet_writer.cc ('k') | net/tools/quic/quic_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_dispatcher.h
diff --git a/net/tools/quic/quic_dispatcher.h b/net/tools/quic/quic_dispatcher.h
index 0cc978be240be0a82b7fe923040be400a7f695ff..1c010abbaa1e0efcf6ffd1f8948ab25dbc37e341 100644
--- a/net/tools/quic/quic_dispatcher.h
+++ b/net/tools/quic/quic_dispatcher.h
@@ -71,6 +71,8 @@ class QuicDispatcher : public QuicPacketWriter, public QuicSessionOwner {
const IPEndPoint& peer_address,
QuicBlockedWriterInterface* writer) OVERRIDE;
virtual bool IsWriteBlockedDataBuffered() const OVERRIDE;
+ virtual bool IsWriteBlocked() const OVERRIDE;
+ virtual void SetWritable() OVERRIDE;
// Process the incoming packet by creating a new session, passing it to
// an existing session, or passing it to the TimeWaitListManager.
@@ -105,10 +107,6 @@ class QuicDispatcher : public QuicPacketWriter, public QuicSessionOwner {
const SessionMap& session_map() const { return session_map_; }
- // Uses the specified |writer| instead of QuicSocketUtils and takes ownership
- // of writer.
- void UseWriter(QuicPacketWriter* writer);
-
WriteBlockedList* write_blocked_list() { return &write_blocked_list_; }
protected:
@@ -175,10 +173,6 @@ class QuicDispatcher : public QuicPacketWriter, public QuicSessionOwner {
// The connection for client-server communication
int fd_;
- // True if the session is write blocked due to the socket returning EAGAIN.
- // False if we have gotten a call to OnCanWrite after the last failed write.
- bool write_blocked_;
-
// The helper used for all connections.
scoped_ptr<QuicEpollConnectionHelper> helper_;
« no previous file with comments | « net/tools/quic/quic_default_packet_writer.cc ('k') | net/tools/quic/quic_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698