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> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/callback.h" | |
13 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
14 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
15 #include "base/threading/non_thread_safe.h" | 16 #include "base/threading/non_thread_safe.h" |
16 #include "net/base/host_port_pair.h" | 17 #include "net/base/host_port_pair.h" |
17 #include "net/base/net_export.h" | 18 #include "net/base/net_export.h" |
18 #include "net/dns/host_resolver.h" | 19 #include "net/dns/host_resolver.h" |
19 #include "net/http/http_auth_cache.h" | 20 #include "net/http/http_auth_cache.h" |
20 #include "net/http/http_stream_factory.h" | 21 #include "net/http/http_stream_factory.h" |
21 #include "net/quic/quic_stream_factory.h" | 22 #include "net/quic/quic_stream_factory.h" |
22 #include "net/socket/next_proto.h" | 23 #include "net/socket/next_proto.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
113 bool enable_quic_time_based_loss_detection; | 114 bool enable_quic_time_based_loss_detection; |
114 HostPortPair origin_to_force_quic_on; | 115 HostPortPair origin_to_force_quic_on; |
115 QuicClock* quic_clock; // Will be owned by QuicStreamFactory. | 116 QuicClock* quic_clock; // Will be owned by QuicStreamFactory. |
116 QuicRandom* quic_random; | 117 QuicRandom* quic_random; |
117 size_t quic_max_packet_length; | 118 size_t quic_max_packet_length; |
118 std::string quic_user_agent_id; | 119 std::string quic_user_agent_id; |
119 bool enable_user_alternate_protocol_ports; | 120 bool enable_user_alternate_protocol_ports; |
120 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory; | 121 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory; |
121 QuicVersionVector quic_supported_versions; | 122 QuicVersionVector quic_supported_versions; |
122 QuicTagVector quic_connection_options; | 123 QuicTagVector quic_connection_options; |
124 base::Callback<void(const net::HostPortPair&, HttpRequestHeaders*)> | |
125 before_proxy_tunnel_request_callback; | |
mef
2014/09/02 17:08:36
Is there particular reason why it is a separate ca
| |
123 }; | 126 }; |
124 | 127 |
125 enum SocketPoolType { | 128 enum SocketPoolType { |
126 NORMAL_SOCKET_POOL, | 129 NORMAL_SOCKET_POOL, |
127 WEBSOCKET_SOCKET_POOL, | 130 WEBSOCKET_SOCKET_POOL, |
128 NUM_SOCKET_POOL_TYPES | 131 NUM_SOCKET_POOL_TYPES |
129 }; | 132 }; |
130 | 133 |
131 explicit HttpNetworkSession(const Params& params); | 134 explicit HttpNetworkSession(const Params& params); |
132 | 135 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
237 | 240 |
238 std::vector<std::string> next_protos_; | 241 std::vector<std::string> next_protos_; |
239 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; | 242 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; |
240 | 243 |
241 Params params_; | 244 Params params_; |
242 }; | 245 }; |
243 | 246 |
244 } // namespace net | 247 } // namespace net |
245 | 248 |
246 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ | 249 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ |
OLD | NEW |