Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(618)

Side by Side Diff: net/http/http_network_session.h

Issue 869393005: Perform ClientHello padding if the field trial is enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@net_connection_error_uma
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 class NetLog; 45 class NetLog;
46 class NetworkDelegate; 46 class NetworkDelegate;
47 class ProxyDelegate; 47 class ProxyDelegate;
48 class ProxyService; 48 class ProxyService;
49 class QuicClock; 49 class QuicClock;
50 class QuicCryptoClientStreamFactory; 50 class QuicCryptoClientStreamFactory;
51 class QuicServerInfoFactory; 51 class QuicServerInfoFactory;
52 class SOCKSClientSocketPool; 52 class SOCKSClientSocketPool;
53 class SSLClientSocketPool; 53 class SSLClientSocketPool;
54 class SSLConfigService; 54 class SSLConfigService;
55 class SSLSocketConfigService;
55 class TransportClientSocketPool; 56 class TransportClientSocketPool;
56 class TransportSecurityState; 57 class TransportSecurityState;
57 58
58 // This class holds session objects used by HttpNetworkTransaction objects. 59 // This class holds session objects used by HttpNetworkTransaction objects.
59 class NET_EXPORT HttpNetworkSession 60 class NET_EXPORT HttpNetworkSession
60 : public base::RefCounted<HttpNetworkSession>, 61 : public base::RefCounted<HttpNetworkSession>,
61 NON_EXPORTED_BASE(public base::NonThreadSafe) { 62 NON_EXPORTED_BASE(public base::NonThreadSafe) {
62 public: 63 public:
63 struct NET_EXPORT Params { 64 struct NET_EXPORT Params {
64 Params(); 65 Params();
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 HostPortPair origin_to_force_quic_on; 123 HostPortPair origin_to_force_quic_on;
123 QuicClock* quic_clock; // Will be owned by QuicStreamFactory. 124 QuicClock* quic_clock; // Will be owned by QuicStreamFactory.
124 QuicRandom* quic_random; 125 QuicRandom* quic_random;
125 size_t quic_max_packet_length; 126 size_t quic_max_packet_length;
126 std::string quic_user_agent_id; 127 std::string quic_user_agent_id;
127 bool enable_user_alternate_protocol_ports; 128 bool enable_user_alternate_protocol_ports;
128 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory; 129 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory;
129 QuicVersionVector quic_supported_versions; 130 QuicVersionVector quic_supported_versions;
130 QuicTagVector quic_connection_options; 131 QuicTagVector quic_connection_options;
131 ProxyDelegate* proxy_delegate; 132 ProxyDelegate* proxy_delegate;
133 SSLSocketConfigService* ssl_socket_config_service;
132 }; 134 };
133 135
134 enum SocketPoolType { 136 enum SocketPoolType {
135 NORMAL_SOCKET_POOL, 137 NORMAL_SOCKET_POOL,
136 WEBSOCKET_SOCKET_POOL, 138 WEBSOCKET_SOCKET_POOL,
137 NUM_SOCKET_POOL_TYPES 139 NUM_SOCKET_POOL_TYPES
138 }; 140 };
139 141
140 explicit HttpNetworkSession(const Params& params); 142 explicit HttpNetworkSession(const Params& params);
141 143
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 249
248 NextProtoVector next_protos_; 250 NextProtoVector next_protos_;
249 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS]; 251 bool enabled_protocols_[NUM_VALID_ALTERNATE_PROTOCOLS];
250 252
251 Params params_; 253 Params params_;
252 }; 254 };
253 255
254 } // namespace net 256 } // namespace net
255 257
256 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_ 258 #endif // NET_HTTP_HTTP_NETWORK_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698