| Index: net/quic/quic_session.h
|
| diff --git a/net/quic/quic_session.h b/net/quic/quic_session.h
|
| index 712d0d60eae5f1c64cc586a3d9a28e368ab6b93e..02cb62c59cf9f25c7acc34c0d6b5c0fbc422300c 100644
|
| --- a/net/quic/quic_session.h
|
| +++ b/net/quic/quic_session.h
|
| @@ -31,7 +31,6 @@ namespace net {
|
| class QuicCryptoStream;
|
| class QuicFlowController;
|
| class ReliableQuicStream;
|
| -class VisitorShim;
|
|
|
| namespace test {
|
| class QuicSessionPeer;
|
| @@ -75,6 +74,9 @@ class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface {
|
| void OnCanWrite() override;
|
| void OnCongestionWindowChange(QuicTime /*now*/) override {}
|
| void OnConnectionMigration() override {}
|
| + // Deletes streams that are safe to be deleted now that it's safe to do so (no
|
| + // other operations are being done on the streams at this time).
|
| + void PostProcessAfterData() override;
|
| bool WillingAndAbleToWrite() const override;
|
| bool HasPendingHandshake() const override;
|
| bool HasOpenDynamicStreams() const override;
|
| @@ -248,12 +250,6 @@ class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface {
|
| // exists, the connection is closed.
|
| ReliableQuicStream* GetOrCreateDynamicStream(QuicStreamId stream_id);
|
|
|
| - // This is called after every call other than OnConnectionClose from the
|
| - // QuicConnectionVisitor to allow post-processing once the work has been done.
|
| - // In this case, it deletes streams given that it's safe to do so (no other
|
| - // operations are being done on the streams at this time)
|
| - virtual void PostProcessAfterData();
|
| -
|
| // Performs the work required to close |stream_id|. If |locally_reset|
|
| // then the stream has been reset by this endpoint, not by the peer.
|
| virtual void CloseStreamInner(QuicStreamId stream_id, bool locally_reset);
|
| @@ -326,7 +322,6 @@ class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface {
|
|
|
| private:
|
| friend class test::QuicSessionPeer;
|
| - friend class VisitorShim;
|
|
|
| // Called in OnConfigNegotiated when we receive a new stream level flow
|
| // control window in a negotiated config. Closes the connection if invalid.
|
| @@ -351,10 +346,6 @@ class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface {
|
|
|
| scoped_ptr<QuicConnection> connection_;
|
|
|
| - // A shim to stand between the connection and the session, to handle stream
|
| - // deletions.
|
| - scoped_ptr<VisitorShim> visitor_shim_;
|
| -
|
| std::vector<ReliableQuicStream*> closed_streams_;
|
|
|
| QuicConfig config_;
|
|
|