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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/threading/non_thread_safe.h" | 11 #include "base/threading/non_thread_safe.h" |
12 #include "net/base/host_port_pair.h" | 12 #include "net/base/host_port_pair.h" |
13 #include "net/base/host_resolver.h" | 13 #include "net/base/host_resolver.h" |
14 #include "net/base/net_export.h" | 14 #include "net/base/net_export.h" |
15 #include "net/base/ssl_client_auth_cache.h" | 15 #include "net/base/ssl_client_auth_cache.h" |
16 #include "net/http/http_auth_cache.h" | 16 #include "net/http/http_auth_cache.h" |
17 #include "net/http/http_stream_factory.h" | 17 #include "net/http/http_stream_factory.h" |
18 #include "net/socket/client_socket_pool_manager.h" | |
Yuta Kitamura
2012/03/20 19:24:35
This line had to be removed to avoid cyclic #inclu
| |
19 #include "net/spdy/spdy_session_pool.h" | 18 #include "net/spdy/spdy_session_pool.h" |
20 #include "net/spdy/spdy_settings_storage.h" | 19 #include "net/spdy/spdy_settings_storage.h" |
21 | 20 |
22 namespace base { | 21 namespace base { |
23 class Value; | 22 class Value; |
24 } | 23 } |
25 | 24 |
26 namespace net { | 25 namespace net { |
27 | 26 |
28 class CertVerifier; | 27 class CertVerifier; |
29 class ClientSocketFactory; | 28 class ClientSocketFactory; |
29 class ClientSocketPoolManager; | |
30 class HostResolver; | 30 class HostResolver; |
31 class HttpAuthHandlerFactory; | 31 class HttpAuthHandlerFactory; |
32 class HttpNetworkSessionPeer; | 32 class HttpNetworkSessionPeer; |
33 class HttpProxyClientSocketPool; | 33 class HttpProxyClientSocketPool; |
34 class HttpResponseBodyDrainer; | 34 class HttpResponseBodyDrainer; |
35 class HttpServerProperties; | 35 class HttpServerProperties; |
36 class NetLog; | 36 class NetLog; |
37 class NetworkDelegate; | 37 class NetworkDelegate; |
38 class OriginBoundCertService; | 38 class OriginBoundCertService; |
39 class ProxyService; | 39 class ProxyService; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
79 HttpServerProperties* http_server_properties; | 79 HttpServerProperties* http_server_properties; |
80 NetLog* net_log; | 80 NetLog* net_log; |
81 bool force_http_pipelining; | 81 bool force_http_pipelining; |
82 }; | 82 }; |
83 | 83 |
84 enum SocketPoolType { | 84 enum SocketPoolType { |
85 NORMAL_SOCKET_POOL, | 85 NORMAL_SOCKET_POOL, |
86 WEBSOCKET_SOCKET_POOL | 86 WEBSOCKET_SOCKET_POOL |
87 }; | 87 }; |
88 | 88 |
89 static const int kNumSocketPoolTypes = 2; | |
willchan no longer on Chromium
2012/03/20 22:33:30
Why don't you do NORMAL_SOCKET_POOL = 0, WEBSOCKET
Yuta Kitamura
2012/03/21 00:47:02
Done.
| |
90 | |
89 explicit HttpNetworkSession(const Params& params); | 91 explicit HttpNetworkSession(const Params& params); |
90 | 92 |
91 HttpAuthCache* http_auth_cache() { return &http_auth_cache_; } | 93 HttpAuthCache* http_auth_cache() { return &http_auth_cache_; } |
92 SSLClientAuthCache* ssl_client_auth_cache() { | 94 SSLClientAuthCache* ssl_client_auth_cache() { |
93 return &ssl_client_auth_cache_; | 95 return &ssl_client_auth_cache_; |
94 } | 96 } |
95 | 97 |
96 void AddResponseDrainer(HttpResponseBodyDrainer* drainer); | 98 void AddResponseDrainer(HttpResponseBodyDrainer* drainer); |
97 | 99 |
98 void RemoveResponseDrainer(HttpResponseBodyDrainer* drainer); | 100 void RemoveResponseDrainer(HttpResponseBodyDrainer* drainer); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
171 SpdySessionPool spdy_session_pool_; | 173 SpdySessionPool spdy_session_pool_; |
172 scoped_ptr<HttpStreamFactory> http_stream_factory_; | 174 scoped_ptr<HttpStreamFactory> http_stream_factory_; |
173 std::set<HttpResponseBodyDrainer*> response_drainers_; | 175 std::set<HttpResponseBodyDrainer*> response_drainers_; |
174 | 176 |
175 Params params_; | 177 Params params_; |
176 }; | 178 }; |
177 | 179 |
178 } // namespace net | 180 } // namespace net |
179 | 181 |
180 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 182 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
OLD | NEW |