OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |