| 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 const Params& params() const { return params_; } | 260 const Params& params() const { return params_; } |
| 261 | 261 |
| 262 bool IsProtocolEnabled(AlternateProtocol protocol) const; | 262 bool IsProtocolEnabled(AlternateProtocol protocol) const; |
| 263 | 263 |
| 264 // Populates |*alpn_protos| with protocols to be used with ALPN. | 264 // Populates |*alpn_protos| with protocols to be used with ALPN. |
| 265 void GetAlpnProtos(NextProtoVector* alpn_protos) const; | 265 void GetAlpnProtos(NextProtoVector* alpn_protos) const; |
| 266 | 266 |
| 267 // Populates |*npn_protos| with protocols to be used with NPN. | 267 // Populates |*npn_protos| with protocols to be used with NPN. |
| 268 void GetNpnProtos(NextProtoVector* npn_protos) const; | 268 void GetNpnProtos(NextProtoVector* npn_protos) const; |
| 269 | 269 |
| 270 // Populates |server_config| and |proxy_config| based on this session and |
| 271 // |request|. |
| 272 void GetSSLConfig(const HttpRequestInfo& request, |
| 273 SSLConfig* server_config, |
| 274 SSLConfig* proxy_config) const; |
| 275 |
| 270 private: | 276 private: |
| 271 friend class HttpNetworkSessionPeer; | 277 friend class HttpNetworkSessionPeer; |
| 272 | 278 |
| 273 ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type); | 279 ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type); |
| 274 | 280 |
| 275 NetLog* const net_log_; | 281 NetLog* const net_log_; |
| 276 const base::WeakPtr<HttpServerProperties> http_server_properties_; | 282 const base::WeakPtr<HttpServerProperties> http_server_properties_; |
| 277 CertVerifier* const cert_verifier_; | 283 CertVerifier* const cert_verifier_; |
| 278 HttpAuthHandlerFactory* const http_auth_handler_factory_; | 284 HttpAuthHandlerFactory* const http_auth_handler_factory_; |
| 279 | 285 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 293 | 299 |
| 294 NextProtoVector next_protos_; | 300 NextProtoVector next_protos_; |
| 295 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; | 301 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; |
| 296 | 302 |
| 297 Params params_; | 303 Params params_; |
| 298 }; | 304 }; |
| 299 | 305 |
| 300 } // namespace net | 306 } // namespace net |
| 301 | 307 |
| 302 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 308 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |