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

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

Issue 1165283004: Add a new prefer_aes finch options for QUIC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 6 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/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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 size_t max_packet_length, 108 size_t max_packet_length,
109 const std::string& user_agent_id, 109 const std::string& user_agent_id,
110 const QuicVersionVector& supported_versions, 110 const QuicVersionVector& supported_versions,
111 bool enable_port_selection, 111 bool enable_port_selection,
112 bool always_require_handshake_confirmation, 112 bool always_require_handshake_confirmation,
113 bool disable_connection_pooling, 113 bool disable_connection_pooling,
114 float load_server_info_timeout_srtt_multiplier, 114 float load_server_info_timeout_srtt_multiplier,
115 bool enable_connection_racing, 115 bool enable_connection_racing,
116 bool enable_non_blocking_io, 116 bool enable_non_blocking_io,
117 bool disable_disk_cache, 117 bool disable_disk_cache,
118 bool prefer_aes,
118 int max_number_of_lossy_connections, 119 int max_number_of_lossy_connections,
119 float packet_loss_threshold, 120 float packet_loss_threshold,
120 int socket_receive_buffer_size, 121 int socket_receive_buffer_size,
121 const QuicTagVector& connection_options); 122 const QuicTagVector& connection_options);
122 ~QuicStreamFactory() override; 123 ~QuicStreamFactory() override;
123 124
124 // Creates a new QuicHttpStream to |host_port_pair| which will be 125 // Creates a new QuicHttpStream to |host_port_pair| which will be
125 // owned by |request|. |is_https| specifies if the protocol is https or not. 126 // owned by |request|. |is_https| specifies if the protocol is https or not.
126 // If a matching session already exists, this method will return OK. If no 127 // If a matching session already exists, this method will return OK. If no
127 // matching session exists, this will return ERR_IO_PENDING and will invoke 128 // matching session exists, this will return ERR_IO_PENDING and will invoke
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 // INCHOATE_HELLO and another connection that sends CHLO after loading server 339 // INCHOATE_HELLO and another connection that sends CHLO after loading server
339 // config from the disk cache. 340 // config from the disk cache.
340 bool enable_connection_racing_; 341 bool enable_connection_racing_;
341 342
342 // Set if experimental non-blocking IO should be used on windows sockets. 343 // Set if experimental non-blocking IO should be used on windows sockets.
343 bool enable_non_blocking_io_; 344 bool enable_non_blocking_io_;
344 345
345 // Set if we do not want to load server config from the disk cache. 346 // Set if we do not want to load server config from the disk cache.
346 bool disable_disk_cache_; 347 bool disable_disk_cache_;
347 348
349 // Set if AES-GCM should be preferred, even if there is no hardware support.
350 bool prefer_aes_;
351
348 // Set if we want to disable QUIC when there is high packet loss rate. 352 // Set if we want to disable QUIC when there is high packet loss rate.
349 // Specifies the maximum number of connections with high packet loss in a row 353 // Specifies the maximum number of connections with high packet loss in a row
350 // after which QUIC will be disabled. 354 // after which QUIC will be disabled.
351 int max_number_of_lossy_connections_; 355 int max_number_of_lossy_connections_;
352 // Specifies packet loss rate in fraction after which a connection is closed 356 // Specifies packet loss rate in fraction after which a connection is closed
353 // and is considered as a lossy connection. 357 // and is considered as a lossy connection.
354 float packet_loss_threshold_; 358 float packet_loss_threshold_;
355 // Count number of lossy connections by port. 359 // Count number of lossy connections by port.
356 std::map<uint16, int> number_of_lossy_connections_; 360 std::map<uint16, int> number_of_lossy_connections_;
357 361
(...skipping 18 matching lines...) Expand all
376 base::TaskRunner* task_runner_; 380 base::TaskRunner* task_runner_;
377 381
378 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; 382 base::WeakPtrFactory<QuicStreamFactory> weak_factory_;
379 383
380 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); 384 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory);
381 }; 385 };
382 386
383 } // namespace net 387 } // namespace net
384 388
385 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ 389 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_
OLDNEW
« no previous file with comments | « net/http/http_network_session.cc ('k') | net/quic/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698