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

Unified Diff: net/spdy/spdy_session.h

Issue 2678353003: Close idle H2 sockets when SpdySession is initialized. (Closed)
Patch Set: 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..d832ac6fe075bbf560c03ebc794428b67d4057a0 100644
--- a/net/spdy/spdy_session.h
+++ b/net/spdy/spdy_session.h
@@ -290,11 +290,12 @@ class NET_EXPORT SpdySession : public BufferedSpdyFramerVisitorInterface,
// Create a new SpdySession.
// |spdy_session_key| is the host/port that this session connects to, privacy
Bence 2017/02/08 00:18:52 Optional: remove lines 291--294, because they real
xunjieli 2017/02/08 14:15:40 Done.
// and proxy configuration settings that it's using.
- // |session| is the HttpNetworkSession. |net_log| is the NetLog that we log
- // network events to.
+ // |http_network_session| is the HttpNetworkSession. |net_log| is the NetLog
+ // that we log network events to.
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 +1008,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