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 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 // Creates a Value summary of the state of the QUIC sessions and | 261 // Creates a Value summary of the state of the QUIC sessions and |
262 // configuration. | 262 // configuration. |
263 std::unique_ptr<base::Value> QuicInfoToValue() const; | 263 std::unique_ptr<base::Value> QuicInfoToValue() const; |
264 | 264 |
265 void CloseAllConnections(); | 265 void CloseAllConnections(); |
266 void CloseIdleConnections(); | 266 void CloseIdleConnections(); |
267 | 267 |
268 // Returns the original Params used to construct this session. | 268 // Returns the original Params used to construct this session. |
269 const Params& params() const { return params_; } | 269 const Params& params() const { return params_; } |
270 | 270 |
271 bool IsProtocolEnabled(NextProto protocol) const; | 271 bool IsProtocolEnabled(AlternateProtocol protocol) const; |
272 | 272 |
273 // Populates |*alpn_protos| with protocols to be used with ALPN. | 273 // Populates |*alpn_protos| with protocols to be used with ALPN. |
274 void GetAlpnProtos(NextProtoVector* alpn_protos) const; | 274 void GetAlpnProtos(NextProtoVector* alpn_protos) const; |
275 | 275 |
276 // Populates |server_config| and |proxy_config| based on this session and | 276 // Populates |server_config| and |proxy_config| based on this session and |
277 // |request|. | 277 // |request|. |
278 void GetSSLConfig(const HttpRequestInfo& request, | 278 void GetSSLConfig(const HttpRequestInfo& request, |
279 SSLConfig* server_config, | 279 SSLConfig* server_config, |
280 SSLConfig* proxy_config) const; | 280 SSLConfig* proxy_config) const; |
281 | 281 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 NextProtoVector next_protos_; | 315 NextProtoVector next_protos_; |
316 | 316 |
317 Params params_; | 317 Params params_; |
318 | 318 |
319 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 319 std::unique_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
320 }; | 320 }; |
321 | 321 |
322 } // namespace net | 322 } // namespace net |
323 | 323 |
324 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 324 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
OLD | NEW |