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

Side by Side Diff: net/http/http_network_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 unified diff | Download patch
« no previous file with comments | « no previous file | net/http/http_network_session.cc » ('j') | net/socket/client_socket_pool_base.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_H_ 5 #ifndef NET_HTTP_HTTP_NETWORK_SESSION_H_
6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_ 6 #define NET_HTTP_HTTP_NETWORK_SESSION_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 274
275 // Creates a Value summary of the state of the SPDY sessions. 275 // Creates a Value summary of the state of the SPDY sessions.
276 std::unique_ptr<base::Value> SpdySessionPoolInfoToValue() const; 276 std::unique_ptr<base::Value> SpdySessionPoolInfoToValue() const;
277 277
278 // Creates a Value summary of the state of the QUIC sessions and 278 // Creates a Value summary of the state of the QUIC sessions and
279 // configuration. 279 // configuration.
280 std::unique_ptr<base::Value> QuicInfoToValue() const; 280 std::unique_ptr<base::Value> QuicInfoToValue() const;
281 281
282 void CloseAllConnections(); 282 void CloseAllConnections();
283 void CloseIdleConnections(); 283 void CloseIdleConnections();
284 void CloseIdleConnectionsInGroup(const std::string& group_name);
284 285
285 // Returns the original Params used to construct this session. 286 // Returns the original Params used to construct this session.
286 const Params& params() const { return params_; } 287 const Params& params() const { return params_; }
287 288
288 bool IsProtocolEnabled(NextProto protocol) const; 289 bool IsProtocolEnabled(NextProto protocol) const;
289 290
290 void SetServerPushDelegate(std::unique_ptr<ServerPushDelegate> push_delegate); 291 void SetServerPushDelegate(std::unique_ptr<ServerPushDelegate> push_delegate);
291 292
292 // Populates |*alpn_protos| with protocols to be used with ALPN. 293 // Populates |*alpn_protos| with protocols to be used with ALPN.
293 void GetAlpnProtos(NextProtoVector* alpn_protos) const; 294 void GetAlpnProtos(NextProtoVector* alpn_protos) const;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 NextProtoVector next_protos_; 347 NextProtoVector next_protos_;
347 348
348 Params params_; 349 Params params_;
349 350
350 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; 351 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_;
351 }; 352 };
352 353
353 } // namespace net 354 } // namespace net
354 355
355 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 356 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_network_session.cc » ('j') | net/socket/client_socket_pool_base.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698