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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 const HostPortPair& proxy_server); | 132 const HostPortPair& proxy_server); |
133 | 133 |
134 CertVerifier* cert_verifier() { return cert_verifier_; } | 134 CertVerifier* cert_verifier() { return cert_verifier_; } |
135 ProxyService* proxy_service() { return proxy_service_; } | 135 ProxyService* proxy_service() { return proxy_service_; } |
136 SSLConfigService* ssl_config_service() { return ssl_config_service_.get(); } | 136 SSLConfigService* ssl_config_service() { return ssl_config_service_.get(); } |
137 SpdySessionPool* spdy_session_pool() { return &spdy_session_pool_; } | 137 SpdySessionPool* spdy_session_pool() { return &spdy_session_pool_; } |
138 QuicStreamFactory* quic_stream_factory() { return &quic_stream_factory_; } | 138 QuicStreamFactory* quic_stream_factory() { return &quic_stream_factory_; } |
139 HttpAuthHandlerFactory* http_auth_handler_factory() { | 139 HttpAuthHandlerFactory* http_auth_handler_factory() { |
140 return http_auth_handler_factory_; | 140 return http_auth_handler_factory_; |
141 } | 141 } |
142 NetworkDelegate* network_delegate() { | 142 NetworkDelegate* network_delegate() { return network_delegate_; } |
143 return network_delegate_; | |
144 } | |
145 base::WeakPtr<HttpServerProperties> http_server_properties() { | 143 base::WeakPtr<HttpServerProperties> http_server_properties() { |
146 return http_server_properties_; | 144 return http_server_properties_; |
147 } | 145 } |
148 HttpStreamFactory* http_stream_factory() { | 146 HttpStreamFactory* http_stream_factory() { |
149 return http_stream_factory_.get(); | 147 return http_stream_factory_.get(); |
150 } | 148 } |
151 HttpStreamFactory* http_stream_factory_for_websocket() { | 149 HttpStreamFactory* http_stream_factory_for_websocket() { |
152 return http_stream_factory_for_websocket_.get(); | 150 return http_stream_factory_for_websocket_.get(); |
153 } | 151 } |
154 NetLog* net_log() { | 152 NetLog* net_log() { return net_log_; } |
155 return net_log_; | |
156 } | |
157 HpackHuffmanAggregator* huffman_aggregator() { | 153 HpackHuffmanAggregator* huffman_aggregator() { |
158 return huffman_aggregator_.get(); | 154 return huffman_aggregator_.get(); |
159 } | 155 } |
160 | 156 |
161 // Creates a Value summary of the state of the socket pools. The caller is | 157 // Creates a Value summary of the state of the socket pools. The caller is |
162 // responsible for deleting the returned value. | 158 // responsible for deleting the returned value. |
163 base::Value* SocketPoolInfoToValue() const; | 159 base::Value* SocketPoolInfoToValue() const; |
164 | 160 |
165 // Creates a Value summary of the state of the SPDY sessions. The caller is | 161 // Creates a Value summary of the state of the SPDY sessions. The caller is |
166 // responsible for deleting the returned value. | 162 // responsible for deleting the returned value. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 209 |
214 // TODO(jgraettinger): Remove when Huffman collection is complete. | 210 // TODO(jgraettinger): Remove when Huffman collection is complete. |
215 scoped_ptr<HpackHuffmanAggregator> huffman_aggregator_; | 211 scoped_ptr<HpackHuffmanAggregator> huffman_aggregator_; |
216 | 212 |
217 Params params_; | 213 Params params_; |
218 }; | 214 }; |
219 | 215 |
220 } // namespace net | 216 } // namespace net |
221 | 217 |
222 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 218 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
OLD | NEW |