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

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

Issue 2296763007: [m54 merge] Use a field trial to decide if QUIC should attempt to prevent packet fragmentation. (Closed)
Patch Set: Created 4 years, 3 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/http/http_network_session.cc ('k') | net/quic/chromium/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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 int max_server_configs_stored_in_properties, 189 int max_server_configs_stored_in_properties,
190 bool close_sessions_on_ip_change, 190 bool close_sessions_on_ip_change,
191 bool disable_quic_on_timeout_with_open_streams, 191 bool disable_quic_on_timeout_with_open_streams,
192 int idle_connection_timeout_seconds, 192 int idle_connection_timeout_seconds,
193 int packet_reader_yield_after_duration_milliseconds, 193 int packet_reader_yield_after_duration_milliseconds,
194 bool migrate_sessions_on_network_change, 194 bool migrate_sessions_on_network_change,
195 bool migrate_sessions_early, 195 bool migrate_sessions_early,
196 bool allow_server_migration, 196 bool allow_server_migration,
197 bool force_hol_blocking, 197 bool force_hol_blocking,
198 bool race_cert_verification, 198 bool race_cert_verification,
199 bool quic_do_not_fragment,
199 const QuicTagVector& connection_options, 200 const QuicTagVector& connection_options,
200 bool enable_token_binding); 201 bool enable_token_binding);
201 ~QuicStreamFactory() override; 202 ~QuicStreamFactory() override;
202 203
203 // Returns true if there is an existing session for |server_id| or if the 204 // Returns true if there is an existing session for |server_id| or if the
204 // request can be pooled to an existing session to the IP address of 205 // request can be pooled to an existing session to the IP address of
205 // |destination|. 206 // |destination|.
206 bool CanUseExistingSession(const QuicServerId& server_id, 207 bool CanUseExistingSession(const QuicServerId& server_id,
207 const HostPortPair& destination); 208 const HostPortPair& destination);
208 209
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
613 // If set, allows migration of connection to server-specified alternate 614 // If set, allows migration of connection to server-specified alternate
614 // server address. 615 // server address.
615 const bool allow_server_migration_; 616 const bool allow_server_migration_;
616 617
617 // If set, force HOL blocking. For measurement purposes. 618 // If set, force HOL blocking. For measurement purposes.
618 const bool force_hol_blocking_; 619 const bool force_hol_blocking_;
619 620
620 // Set if cert verification is to be raced with host resolution. 621 // Set if cert verification is to be raced with host resolution.
621 bool race_cert_verification_; 622 bool race_cert_verification_;
622 623
624 // If set, configure QUIC sockets to not fragment packets.
625 bool quic_do_not_fragment_;
626
623 // Each profile will (probably) have a unique port_seed_ value. This value 627 // Each profile will (probably) have a unique port_seed_ value. This value
624 // is used to help seed a pseudo-random number generator (PortSuggester) so 628 // is used to help seed a pseudo-random number generator (PortSuggester) so
625 // that we consistently (within this profile) suggest the same ephemeral 629 // that we consistently (within this profile) suggest the same ephemeral
626 // port when we re-connect to any given server/port. The differences between 630 // port when we re-connect to any given server/port. The differences between
627 // profiles (probablistically) prevent two profiles from colliding in their 631 // profiles (probablistically) prevent two profiles from colliding in their
628 // ephemeral port requests. 632 // ephemeral port requests.
629 uint64_t port_seed_; 633 uint64_t port_seed_;
630 634
631 // Local address of socket that was created in CreateSession. 635 // Local address of socket that was created in CreateSession.
632 IPEndPoint local_address_; 636 IPEndPoint local_address_;
(...skipping 15 matching lines...) Expand all
648 const scoped_refptr<SSLConfigService> ssl_config_service_; 652 const scoped_refptr<SSLConfigService> ssl_config_service_;
649 653
650 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 654 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
651 655
652 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 656 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
653 }; 657 };
654 658
655 } // namespace net 659 } // namespace net
656 660
657 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 661 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/quic/chromium/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698