| 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_CHROMIUM_QUIC_STREAM_FACTORY_H_ | 5 #ifndef NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_H_ |
| 6 #define NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_H_ | 6 #define NET_QUIC_CHROMIUM_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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 const NetLogWithSource& net_log); | 441 const NetLogWithSource& net_log); |
| 442 | 442 |
| 443 // Returns a newly created QuicHttpStream owned by the caller. | 443 // Returns a newly created QuicHttpStream owned by the caller. |
| 444 std::unique_ptr<QuicHttpStream> CreateFromSession( | 444 std::unique_ptr<QuicHttpStream> CreateFromSession( |
| 445 QuicChromiumClientSession* session); | 445 QuicChromiumClientSession* session); |
| 446 | 446 |
| 447 bool OnResolution(const QuicSessionKey& key, const AddressList& address_list); | 447 bool OnResolution(const QuicSessionKey& key, const AddressList& address_list); |
| 448 void OnJobComplete(Job* job, int rv); | 448 void OnJobComplete(Job* job, int rv); |
| 449 void OnCertVerifyJobComplete(CertVerifierJob* job, int rv); | 449 void OnCertVerifyJobComplete(CertVerifierJob* job, int rv); |
| 450 bool HasActiveSession(const QuicServerId& server_id) const; | 450 bool HasActiveSession(const QuicServerId& server_id) const; |
| 451 bool HasActiveJob(const QuicServerId& server_id) const; | 451 bool HasActiveJob(const QuicServerId& server_id); |
| 452 bool HasActiveCertVerifierJob(const QuicServerId& server_id) const; | 452 bool HasActiveCertVerifierJob(const QuicServerId& server_id) const; |
| 453 int CreateSession(const QuicSessionKey& key, | 453 int CreateSession(const QuicSessionKey& key, |
| 454 int cert_verify_flags, | 454 int cert_verify_flags, |
| 455 std::unique_ptr<QuicServerInfo> quic_server_info, | 455 std::unique_ptr<QuicServerInfo> quic_server_info, |
| 456 bool require_confirmation, | 456 bool require_confirmation, |
| 457 const AddressList& address_list, | 457 const AddressList& address_list, |
| 458 base::TimeTicks dns_resolution_start_time, | 458 base::TimeTicks dns_resolution_start_time, |
| 459 base::TimeTicks dns_resolution_end_time, | 459 base::TimeTicks dns_resolution_end_time, |
| 460 const NetLogWithSource& net_log, | 460 const NetLogWithSource& net_log, |
| 461 QuicChromiumClientSession** session); | 461 QuicChromiumClientSession** session); |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 const NetLogWithSource& net_log); | 519 const NetLogWithSource& net_log); |
| 520 | 520 |
| 521 // Called to re-enable QUIC when QUIC has been disabled. | 521 // Called to re-enable QUIC when QUIC has been disabled. |
| 522 void OpenFactory(); | 522 void OpenFactory(); |
| 523 // If QUIC has been working well after having been recently | 523 // If QUIC has been working well after having been recently |
| 524 // disabled, clear the |consecutive_disabled_count_|. | 524 // disabled, clear the |consecutive_disabled_count_|. |
| 525 void MaybeClearConsecutiveDisabledCount(); | 525 void MaybeClearConsecutiveDisabledCount(); |
| 526 | 526 |
| 527 bool require_confirmation_; | 527 bool require_confirmation_; |
| 528 NetLog* net_log_; | 528 NetLog* net_log_; |
| 529 const NetLogWithSource quic_net_log_; |
| 529 HostResolver* host_resolver_; | 530 HostResolver* host_resolver_; |
| 530 ClientSocketFactory* client_socket_factory_; | 531 ClientSocketFactory* client_socket_factory_; |
| 531 HttpServerProperties* http_server_properties_; | 532 HttpServerProperties* http_server_properties_; |
| 532 ServerPushDelegate* push_delegate_; | 533 ServerPushDelegate* push_delegate_; |
| 533 ProxyDelegate* proxy_delegate_; | 534 ProxyDelegate* proxy_delegate_; |
| 534 TransportSecurityState* transport_security_state_; | 535 TransportSecurityState* transport_security_state_; |
| 535 CTVerifier* cert_transparency_verifier_; | 536 CTVerifier* cert_transparency_verifier_; |
| 536 std::unique_ptr<QuicServerInfoFactory> quic_server_info_factory_; | 537 std::unique_ptr<QuicServerInfoFactory> quic_server_info_factory_; |
| 537 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory_; | 538 QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory_; |
| 538 QuicRandom* random_generator_; | 539 QuicRandom* random_generator_; |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 const scoped_refptr<SSLConfigService> ssl_config_service_; | 676 const scoped_refptr<SSLConfigService> ssl_config_service_; |
| 676 | 677 |
| 677 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 678 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 678 | 679 |
| 679 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 680 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 680 }; | 681 }; |
| 681 | 682 |
| 682 } // namespace net | 683 } // namespace net |
| 683 | 684 |
| 684 #endif // NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_H_ | 685 #endif // NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |