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

Side by Side Diff: net/quic/quic_stream_factory.h

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « net/quic/quic_session_test.cc ('k') | net/quic/quic_stream_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_QUIC_QUIC_STREAM_FACTORY_H_ 5 #ifndef NET_QUIC_QUIC_STREAM_FACTORY_H_
6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_ 6 #define NET_QUIC_QUIC_STREAM_FACTORY_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 QuicClock* clock, 100 QuicClock* clock,
101 size_t max_packet_length, 101 size_t max_packet_length,
102 const std::string& user_agent_id, 102 const std::string& user_agent_id,
103 const QuicVersionVector& supported_versions, 103 const QuicVersionVector& supported_versions,
104 bool enable_port_selection, 104 bool enable_port_selection,
105 bool always_require_handshake_confirmation, 105 bool always_require_handshake_confirmation,
106 bool disable_connection_pooling, 106 bool disable_connection_pooling,
107 int load_server_info_timeout, 107 int load_server_info_timeout,
108 bool disable_loading_server_info_for_new_servers, 108 bool disable_loading_server_info_for_new_servers,
109 float load_server_info_timeout_srtt_multiplier, 109 float load_server_info_timeout_srtt_multiplier,
110 bool enable_truncated_connection_ids,
110 const QuicTagVector& connection_options); 111 const QuicTagVector& connection_options);
111 ~QuicStreamFactory() override; 112 ~QuicStreamFactory() override;
112 113
113 // Creates a new QuicHttpStream to |host_port_pair| which will be 114 // Creates a new QuicHttpStream to |host_port_pair| which will be
114 // owned by |request|. |is_https| specifies if the protocol is https or not. 115 // owned by |request|. |is_https| specifies if the protocol is https or not.
115 // If a matching session already exists, this method will return OK. If no 116 // If a matching session already exists, this method will return OK. If no
116 // matching session exists, this will return ERR_IO_PENDING and will invoke 117 // matching session exists, this will return ERR_IO_PENDING and will invoke
117 // OnRequestComplete asynchronously. 118 // OnRequestComplete asynchronously.
118 int Create(const HostPortPair& host_port_pair, 119 int Create(const HostPortPair& host_port_pair,
119 bool is_https, 120 bool is_https,
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 // servers. New servers are those servers for which there is no QUIC protocol 301 // servers. New servers are those servers for which there is no QUIC protocol
301 // entry in AlternateProtocolMap. 302 // entry in AlternateProtocolMap.
302 bool disable_loading_server_info_for_new_servers_; 303 bool disable_loading_server_info_for_new_servers_;
303 304
304 // Specifies the ratio between time to load QUIC server information from disk 305 // Specifies the ratio between time to load QUIC server information from disk
305 // cache to 'smoothed RTT'. This ratio is used to calculate the timeout in 306 // cache to 'smoothed RTT'. This ratio is used to calculate the timeout in
306 // milliseconds to wait for loading of QUIC server information. If we don't 307 // milliseconds to wait for loading of QUIC server information. If we don't
307 // want to timeout, set |load_server_info_timeout_srtt_multiplier_| to 0. 308 // want to timeout, set |load_server_info_timeout_srtt_multiplier_| to 0.
308 float load_server_info_timeout_srtt_multiplier_; 309 float load_server_info_timeout_srtt_multiplier_;
309 310
311 // Set this for setting config's BytesForConnectionIdToSend (TCID param) to 0.
312 bool enable_truncated_connection_ids_;
313
310 // Each profile will (probably) have a unique port_seed_ value. This value is 314 // Each profile will (probably) have a unique port_seed_ value. This value is
311 // used to help seed a pseudo-random number generator (PortSuggester) so that 315 // used to help seed a pseudo-random number generator (PortSuggester) so that
312 // we consistently (within this profile) suggest the same ephemeral port when 316 // we consistently (within this profile) suggest the same ephemeral port when
313 // we re-connect to any given server/port. The differences between profiles 317 // we re-connect to any given server/port. The differences between profiles
314 // (probablistically) prevent two profiles from colliding in their ephemeral 318 // (probablistically) prevent two profiles from colliding in their ephemeral
315 // port requests. 319 // port requests.
316 uint64 port_seed_; 320 uint64 port_seed_;
317 321
318 // Local address of socket that was created in CreateSession. 322 // Local address of socket that was created in CreateSession.
319 IPEndPoint local_address_; 323 IPEndPoint local_address_;
320 bool check_persisted_supports_quic_; 324 bool check_persisted_supports_quic_;
321 std::set<HostPortPair> quic_supported_servers_at_startup_; 325 std::set<HostPortPair> quic_supported_servers_at_startup_;
322 326
323 base::TaskRunner* task_runner_; 327 base::TaskRunner* task_runner_;
324 328
325 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 329 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
326 330
327 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 331 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
328 }; 332 };
329 333
330 } // namespace net 334 } // namespace net
331 335
332 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 336 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW
« no previous file with comments | « net/quic/quic_session_test.cc ('k') | net/quic/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698