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 ff921bb294c1dac1d9a84e925eb951f7b282ac1f..288cc6859e31f2e5f35d9f57ba927d3954eee978 100644 |
--- a/net/tools/quic/quic_server_session.h |
+++ b/net/tools/quic/quic_server_session.h |
@@ -10,6 +10,7 @@ |
#include <set> |
#include <vector> |
+#include "base/basictypes.h" |
#include "base/containers/hash_tables.h" |
#include "base/memory/scoped_ptr.h" |
#include "net/quic/quic_crypto_server_stream.h" |
@@ -18,6 +19,7 @@ |
namespace net { |
+class QuicBlockedWriterInterface; |
class QuicConfig; |
class QuicConnection; |
class QuicCryptoServerConfig; |
@@ -31,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(); |
@@ -74,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); |
}; |