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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 185 |
186 // Creates a Value summary of the state of the socket pools. The caller is | 186 // Creates a Value summary of the state of the socket pools. The caller is |
187 // responsible for deleting the returned value. | 187 // responsible for deleting the returned value. |
188 base::Value* SocketPoolInfoToValue() const; | 188 base::Value* SocketPoolInfoToValue() const; |
189 | 189 |
190 // Creates a Value summary of the state of the SPDY sessions. The caller is | 190 // Creates a Value summary of the state of the SPDY sessions. The caller is |
191 // responsible for deleting the returned value. | 191 // responsible for deleting the returned value. |
192 base::Value* SpdySessionPoolInfoToValue() const; | 192 base::Value* SpdySessionPoolInfoToValue() const; |
193 | 193 |
194 // Creates a Value summary of the state of the QUIC sessions and | 194 // Creates a Value summary of the state of the QUIC sessions and |
195 // configuration. The caller is responsible for deleting the returned value. | 195 // configuration. |
196 base::Value* QuicInfoToValue() const; | 196 scoped_ptr<base::Value> QuicInfoToValue() const; |
197 | 197 |
198 void CloseAllConnections(); | 198 void CloseAllConnections(); |
199 void CloseIdleConnections(); | 199 void CloseIdleConnections(); |
200 | 200 |
201 // Returns the original Params used to construct this session. | 201 // Returns the original Params used to construct this session. |
202 const Params& params() const { return params_; } | 202 const Params& params() const { return params_; } |
203 | 203 |
204 bool IsProtocolEnabled(AlternateProtocol protocol) const; | 204 bool IsProtocolEnabled(AlternateProtocol protocol) const; |
205 | 205 |
206 // Populates |*next_protos| with protocols. | 206 // Populates |*next_protos| with protocols. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 | 240 |
241 NextProtoVector next_protos_; | 241 NextProtoVector next_protos_; |
242 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; | 242 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; |
243 | 243 |
244 Params params_; | 244 Params params_; |
245 }; | 245 }; |
246 | 246 |
247 } // namespace net | 247 } // namespace net |
248 | 248 |
249 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 249 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
OLD | NEW |