| Index: net/quic/chromium/quic_http_stream.h
|
| diff --git a/net/quic/chromium/quic_http_stream.h b/net/quic/chromium/quic_http_stream.h
|
| index 062c13b00dd853e802558aea08fe4672c6351aee..ab23cd7cab8d20036e38714695434b870eefc49c 100644
|
| --- a/net/quic/chromium/quic_http_stream.h
|
| +++ b/net/quic/chromium/quic_http_stream.h
|
| @@ -36,12 +36,11 @@ class QuicHttpStreamPeer;
|
| // non-owning pointer to a QuicChromiumClientStream which it uses to
|
| // send and receive data.
|
| class NET_EXPORT_PRIVATE QuicHttpStream
|
| - : public QuicChromiumClientSession::Observer,
|
| - public QuicChromiumClientStream::Delegate,
|
| + : public QuicChromiumClientStream::Delegate,
|
| public QuicClientPushPromiseIndex::Delegate,
|
| public MultiplexedHttpStream {
|
| public:
|
| - QuicHttpStream(const base::WeakPtr<QuicChromiumClientSession>& session,
|
| + QuicHttpStream(QuicChromiumClientSession::Handle session,
|
| HttpServerProperties* http_server_properties);
|
|
|
| ~QuicHttpStream() override;
|
| @@ -77,11 +76,6 @@ class NET_EXPORT_PRIVATE QuicHttpStream
|
| void OnError(int error) override;
|
| bool HasSendHeadersComplete() override;
|
|
|
| - // QuicChromiumClientSession::Observer implementation
|
| - void OnCryptoHandshakeConfirmed() override;
|
| - void OnSuccessfulVersionNegotiation(const QuicVersion& version) override;
|
| - void OnSessionClosed(int error, bool port_migration_detected) override;
|
| -
|
| // QuicClientPushPromiseIndex::Delegate implementation
|
| bool CheckVary(const SpdyHeaderBlock& client_request,
|
| const SpdyHeaderBlock& promise_request,
|
| @@ -147,14 +141,10 @@ class NET_EXPORT_PRIVATE QuicHttpStream
|
|
|
| State next_state_;
|
|
|
| - base::WeakPtr<QuicChromiumClientSession> session_;
|
| - const QuicServerId server_id_; // The ID of the QUIC server for this stream.
|
| + QuicChromiumClientSession::Handle session_;
|
|
|
| HttpServerProperties* http_server_properties_; // Unowned.
|
|
|
| - QuicVersion quic_version_;
|
| - int session_error_; // Error code from the connection shutdown.
|
| - bool was_handshake_confirmed_; // True if the crypto handshake succeeded.
|
| std::unique_ptr<QuicChromiumClientSession::StreamRequest> stream_request_;
|
| QuicChromiumClientStream* stream_; // Non-owning.
|
|
|
| @@ -214,12 +204,10 @@ class NET_EXPORT_PRIVATE QuicHttpStream
|
|
|
| NetLogWithSource stream_net_log_;
|
|
|
| + int session_error_; // Error code from the connection shutdown.
|
| QuicErrorCode quic_connection_error_; // Cached connection error code.
|
| QuicRstStreamErrorCode quic_stream_error_; // Cached stream error code.
|
|
|
| - // True when this stream receives a go away from server due to port migration.
|
| - bool port_migration_detected_;
|
| -
|
| bool found_promise_;
|
| // |QuicClientPromisedInfo| owns this. It will be set when |Try()|
|
| // is asynchronous, i.e. it returned QUIC_PENDING, and remains valid
|
|
|