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

Unified Diff: net/spdy/chromium/multiplexed_http_stream.h

Issue 2334943002: Add a new QuicChromiumClientSession::Handle class (Closed)
Patch Set: fixes Created 3 years, 7 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/quic/chromium/quic_stream_factory_test.cc ('k') | net/spdy/chromium/multiplexed_http_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/chromium/multiplexed_http_stream.h
diff --git a/net/spdy/chromium/multiplexed_http_stream.h b/net/spdy/chromium/multiplexed_http_stream.h
index 9b0ef5f9cff45f3276b99625e6d65e4686e60e8a..15bd7ffc3e5d713d4b218c3ad6c3611e40d4fe1e 100644
--- a/net/spdy/chromium/multiplexed_http_stream.h
+++ b/net/spdy/chromium/multiplexed_http_stream.h
@@ -13,7 +13,8 @@ namespace net {
// Base class for SPDY and QUIC HttpStream subclasses.
class NET_EXPORT_PRIVATE MultiplexedHttpStream : public HttpStream {
public:
- explicit MultiplexedHttpStream(MultiplexedSessionHandle session);
+ explicit MultiplexedHttpStream(
+ std::unique_ptr<MultiplexedSessionHandle> session);
~MultiplexedHttpStream() override;
bool GetRemoteEndpoint(IPEndPoint* endpoint) override;
@@ -30,8 +31,12 @@ class NET_EXPORT_PRIVATE MultiplexedHttpStream : public HttpStream {
// Caches SSL info from the underlying session.
void SaveSSLInfo();
+ protected:
+ MultiplexedSessionHandle* session() { return session_.get(); }
+ const MultiplexedSessionHandle* session() const { return session_.get(); }
+
private:
- MultiplexedSessionHandle session_;
+ const std::unique_ptr<MultiplexedSessionHandle> session_;
};
} // namespace net
« no previous file with comments | « net/quic/chromium/quic_stream_factory_test.cc ('k') | net/spdy/chromium/multiplexed_http_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698