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 #include <vector> | 10 #include <vector> |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 scoped_ptr<base::Value> QuicInfoToValue() const; | 199 scoped_ptr<base::Value> QuicInfoToValue() const; |
200 | 200 |
201 void CloseAllConnections(); | 201 void CloseAllConnections(); |
202 void CloseIdleConnections(); | 202 void CloseIdleConnections(); |
203 | 203 |
204 // Returns the original Params used to construct this session. | 204 // Returns the original Params used to construct this session. |
205 const Params& params() const { return params_; } | 205 const Params& params() const { return params_; } |
206 | 206 |
207 bool IsProtocolEnabled(AlternateProtocol protocol) const; | 207 bool IsProtocolEnabled(AlternateProtocol protocol) const; |
208 | 208 |
209 // Populates |*next_protos| with protocols. | 209 // Populates |*alpn_protos| with protocols to be used with ALPN. |
210 void GetNextProtos(NextProtoVector* next_protos) const; | 210 void GetAlpnProtos(NextProtoVector* alpn_protos) const; |
| 211 |
| 212 // Populates |*npn_protos| with protocols to be used with NPN. |
| 213 void GetNpnProtos(NextProtoVector* npn_protos) const; |
211 | 214 |
212 // Convenience function for searching through |params_| for | 215 // Convenience function for searching through |params_| for |
213 // |forced_spdy_exclusions|. | 216 // |forced_spdy_exclusions|. |
214 bool HasSpdyExclusion(HostPortPair host_port_pair) const; | 217 bool HasSpdyExclusion(HostPortPair host_port_pair) const; |
215 | 218 |
216 private: | 219 private: |
217 friend class HttpNetworkSessionPeer; | 220 friend class HttpNetworkSessionPeer; |
218 | 221 |
219 ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type); | 222 ClientSocketPoolManager* GetSocketPoolManager(SocketPoolType pool_type); |
220 | 223 |
(...skipping 19 matching lines...) Expand all Loading... |
240 | 243 |
241 NextProtoVector next_protos_; | 244 NextProtoVector next_protos_; |
242 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; | 245 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; |
243 | 246 |
244 Params params_; | 247 Params params_; |
245 }; | 248 }; |
246 | 249 |
247 } // namespace net | 250 } // namespace net |
248 | 251 |
249 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 252 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
OLD | NEW |