Chromium Code Reviews| 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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 217 const HostPortPair& socks_proxy); | 217 const HostPortPair& socks_proxy); |
| 218 HttpProxyClientSocketPool* GetSocketPoolForHTTPProxy( | 218 HttpProxyClientSocketPool* GetSocketPoolForHTTPProxy( |
| 219 SocketPoolType pool_type, | 219 SocketPoolType pool_type, |
| 220 const HostPortPair& http_proxy); | 220 const HostPortPair& http_proxy); |
| 221 SSLClientSocketPool* GetSocketPoolForSSLWithProxy( | 221 SSLClientSocketPool* GetSocketPoolForSSLWithProxy( |
| 222 SocketPoolType pool_type, | 222 SocketPoolType pool_type, |
| 223 const HostPortPair& proxy_server); | 223 const HostPortPair& proxy_server); |
| 224 | 224 |
| 225 CertVerifier* cert_verifier() { return cert_verifier_; } | 225 CertVerifier* cert_verifier() { return cert_verifier_; } |
| 226 ProxyService* proxy_service() { return proxy_service_; } | 226 ProxyService* proxy_service() { return proxy_service_; } |
| 227 SSLConfigService* ssl_config_service() { return ssl_config_service_.get(); } | 227 SSLConfigService* ssl_config_service() { return ssl_config_service_.get(); } |
|
mmenke
2016/04/13 16:21:04
Do we still need to expose this?
nharper
2016/04/18 22:22:55
There are a few other places still using this. Bid
| |
| 228 SpdySessionPool* spdy_session_pool() { return &spdy_session_pool_; } | 228 SpdySessionPool* spdy_session_pool() { return &spdy_session_pool_; } |
| 229 QuicStreamFactory* quic_stream_factory() { return &quic_stream_factory_; } | 229 QuicStreamFactory* quic_stream_factory() { return &quic_stream_factory_; } |
| 230 HttpAuthHandlerFactory* http_auth_handler_factory() { | 230 HttpAuthHandlerFactory* http_auth_handler_factory() { |
| 231 return http_auth_handler_factory_; | 231 return http_auth_handler_factory_; |
| 232 } | 232 } |
| 233 base::WeakPtr<HttpServerProperties> http_server_properties() { | 233 base::WeakPtr<HttpServerProperties> http_server_properties() { |
| 234 return http_server_properties_; | 234 return http_server_properties_; |
| 235 } | 235 } |
| 236 HttpStreamFactory* http_stream_factory() { | 236 HttpStreamFactory* http_stream_factory() { |
| 237 return http_stream_factory_.get(); | 237 return http_stream_factory_.get(); |
| (...skipping 22 matching lines...) Expand all 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 |config| based on this session and |request|. | |
| 271 void GetSSLConfig(const HttpRequestInfo& request, SSLConfig* config) const; | |
| 272 | |
| 270 private: | 273 private: |
| 271 friend class HttpNetworkSessionPeer; | 274 friend class HttpNetworkSessionPeer; |
| 272 | 275 |
| 273 ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type); | 276 ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type); |
| 274 | 277 |
| 275 NetLog* const net_log_; | 278 NetLog* const net_log_; |
| 276 const base::WeakPtr<HttpServerProperties> http_server_properties_; | 279 const base::WeakPtr<HttpServerProperties> http_server_properties_; |
| 277 CertVerifier* const cert_verifier_; | 280 CertVerifier* const cert_verifier_; |
| 278 HttpAuthHandlerFactory* const http_auth_handler_factory_; | 281 HttpAuthHandlerFactory* const http_auth_handler_factory_; |
| 279 | 282 |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 293 | 296 |
| 294 NextProtoVector next_protos_; | 297 NextProtoVector next_protos_; |
| 295 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; | 298 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; |
| 296 | 299 |
| 297 Params params_; | 300 Params params_; |
| 298 }; | 301 }; |
| 299 | 302 |
| 300 } // namespace net | 303 } // namespace net |
| 301 | 304 |
| 302 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 305 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
| OLD | NEW |