| 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_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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 | 371 |
| 372 bool enable_port_selection() const { return enable_port_selection_; } | 372 bool enable_port_selection() const { return enable_port_selection_; } |
| 373 | 373 |
| 374 bool has_quic_server_info_factory() { | 374 bool has_quic_server_info_factory() { |
| 375 return quic_server_info_factory_.get() != nullptr; | 375 return quic_server_info_factory_.get() != nullptr; |
| 376 } | 376 } |
| 377 | 377 |
| 378 void set_quic_server_info_factory( | 378 void set_quic_server_info_factory( |
| 379 QuicServerInfoFactory* quic_server_info_factory); | 379 QuicServerInfoFactory* quic_server_info_factory); |
| 380 | 380 |
| 381 void set_server_push_delegate(ServerPushDelegate* push_delegate) { |
| 382 push_delegate_ = push_delegate; |
| 383 } |
| 384 |
| 381 bool enable_connection_racing() const { return enable_connection_racing_; } | 385 bool enable_connection_racing() const { return enable_connection_racing_; } |
| 382 void set_enable_connection_racing(bool enable_connection_racing) { | 386 void set_enable_connection_racing(bool enable_connection_racing) { |
| 383 enable_connection_racing_ = enable_connection_racing; | 387 enable_connection_racing_ = enable_connection_racing; |
| 384 } | 388 } |
| 385 | 389 |
| 386 int socket_receive_buffer_size() const { return socket_receive_buffer_size_; } | 390 int socket_receive_buffer_size() const { return socket_receive_buffer_size_; } |
| 387 | 391 |
| 388 bool delay_tcp_race() const { return delay_tcp_race_; } | 392 bool delay_tcp_race() const { return delay_tcp_race_; } |
| 389 | 393 |
| 390 bool migrate_sessions_on_network_change() const { | 394 bool migrate_sessions_on_network_change() const { |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 void OpenFactory(); | 499 void OpenFactory(); |
| 496 // If QUIC has been working well after having been recently | 500 // If QUIC has been working well after having been recently |
| 497 // disabled, clear the |consecutive_disabled_count_|. | 501 // disabled, clear the |consecutive_disabled_count_|. |
| 498 void MaybeClearConsecutiveDisabledCount(); | 502 void MaybeClearConsecutiveDisabledCount(); |
| 499 | 503 |
| 500 bool require_confirmation_; | 504 bool require_confirmation_; |
| 501 NetLog* net_log_; | 505 NetLog* net_log_; |
| 502 HostResolver* host_resolver_; | 506 HostResolver* host_resolver_; |
| 503 ClientSocketFactory* client_socket_factory_; | 507 ClientSocketFactory* client_socket_factory_; |
| 504 HttpServerProperties* http_server_properties_; | 508 HttpServerProperties* http_server_properties_; |
| 509 ServerPushDelegate* push_delegate_; |
| 505 ProxyDelegate* proxy_delegate_; | 510 ProxyDelegate* proxy_delegate_; |
| 506 TransportSecurityState* transport_security_state_; | 511 TransportSecurityState* transport_security_state_; |
| 507 CTVerifier* cert_transparency_verifier_; | 512 CTVerifier* cert_transparency_verifier_; |
| 508 std::unique_ptr<QuicServerInfoFactory> quic_server_info_factory_; | 513 std::unique_ptr<QuicServerInfoFactory> quic_server_info_factory_; |
| 509 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory_; | 514 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory_; |
| 510 QuicRandom* random_generator_; | 515 QuicRandom* random_generator_; |
| 511 std::unique_ptr<QuicClock> clock_; | 516 std::unique_ptr<QuicClock> clock_; |
| 512 const size_t max_packet_length_; | 517 const size_t max_packet_length_; |
| 513 QuicClockSkewDetector clock_skew_detector_; | 518 QuicClockSkewDetector clock_skew_detector_; |
| 514 | 519 |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 const scoped_refptr<SSLConfigService> ssl_config_service_; | 662 const scoped_refptr<SSLConfigService> ssl_config_service_; |
| 658 | 663 |
| 659 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 664 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 660 | 665 |
| 661 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 666 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 662 }; | 667 }; |
| 663 | 668 |
| 664 } // namespace net | 669 } // namespace net |
| 665 | 670 |
| 666 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 671 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |