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

Unified Diff: net/spdy/spdy_session.h

Issue 2678353003: Close idle H2 sockets when SpdySession is initialized. (Closed)
Patch Set: Self Created 3 years, 10 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
Index: net/spdy/spdy_session.h
diff --git a/net/spdy/spdy_session.h b/net/spdy/spdy_session.h
index 30150e2310cc3debca09b8c789dda2cc8cc9e668..f75c3ea0f37ff2aec269d3cddd279e646258a6a1 100644
--- a/net/spdy/spdy_session.h
+++ b/net/spdy/spdy_session.h
@@ -287,14 +287,11 @@ class NET_EXPORT SpdySession : public BufferedSpdyFramerVisitorInterface,
const std::string& old_hostname,
const std::string& new_hostname);
- // Create a new SpdySession.
- // |spdy_session_key| is the host/port that this session connects to, privacy
- // and proxy configuration settings that it's using.
- // |session| is the HttpNetworkSession. |net_log| is the NetLog that we log
- // network events to.
+ // Creates a new SpdySession.
SpdySession(const SpdySessionKey& spdy_session_key,
HttpServerProperties* http_server_properties,
TransportSecurityState* transport_security_state,
+ HttpNetworkSession* http_network_session,
bool enable_sending_initial_data,
bool enable_ping_based_connection_checking,
size_t session_max_recv_window_size,
@@ -1007,6 +1004,8 @@ class NET_EXPORT SpdySession : public BufferedSpdyFramerVisitorInterface,
TransportSecurityState* transport_security_state_;
+ HttpNetworkSession* http_network_session_;
+
// The socket handle for this session.
std::unique_ptr<ClientSocketHandle> connection_;

Powered by Google App Engine
This is Rietveld 408576698