Index: net/tools/quic/quic_server_session.h |
diff --git a/net/tools/quic/quic_server_session.h b/net/tools/quic/quic_server_session.h |
index 7722294c581d0c35543351570a1061e8318be2fd..288cc6859e31f2e5f35d9f57ba927d3954eee978 100644 |
--- a/net/tools/quic/quic_server_session.h |
+++ b/net/tools/quic/quic_server_session.h |
@@ -19,6 +19,7 @@ |
namespace net { |
+class QuicBlockedWriterInterface; |
class QuicConfig; |
class QuicConnection; |
class QuicCryptoServerConfig; |
@@ -32,22 +33,24 @@ class QuicServerSessionPeer; |
// An interface from the session to the entity owning the session. |
// This lets the session notify its owner (the Dispatcher) when the connection |
-// is closed. |
-class QuicSessionOwner { |
+// is closed or blocked. |
+class QuicServerSessionVisitor { |
public: |
- virtual ~QuicSessionOwner() {} |
+ virtual ~QuicServerSessionVisitor() {} |
virtual void OnConnectionClosed(QuicGuid guid, QuicErrorCode error) = 0; |
+ virtual void OnWriteBlocked(QuicBlockedWriterInterface* writer) = 0; |
}; |
class QuicServerSession : public QuicSession { |
public: |
QuicServerSession(const QuicConfig& config, |
QuicConnection *connection, |
- QuicSessionOwner* owner); |
+ QuicServerSessionVisitor* visitor); |
// Override the base class to notify the owner of the connection close. |
virtual void OnConnectionClosed(QuicErrorCode error, bool from_peer) OVERRIDE; |
+ virtual void OnWriteBlocked() OVERRIDE; |
virtual ~QuicServerSession(); |
@@ -75,7 +78,7 @@ class QuicServerSession : public QuicSession { |
friend class test::QuicServerSessionPeer; |
scoped_ptr<QuicCryptoServerStream> crypto_stream_; |
- QuicSessionOwner* owner_; |
+ QuicServerSessionVisitor* visitor_; |
DISALLOW_COPY_AND_ASSIGN(QuicServerSession); |
}; |