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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 bool OnResolution(const QuicSessionKey& key, const AddressList& address_list); | 425 bool OnResolution(const QuicSessionKey& key, const AddressList& address_list); |
426 void OnJobComplete(Job* job, int rv); | 426 void OnJobComplete(Job* job, int rv); |
427 void OnCertVerifyJobComplete(CertVerifierJob* job, int rv); | 427 void OnCertVerifyJobComplete(CertVerifierJob* job, int rv); |
428 bool HasActiveSession(const QuicServerId& server_id) const; | 428 bool HasActiveSession(const QuicServerId& server_id) const; |
429 bool HasActiveJob(const QuicServerId& server_id) const; | 429 bool HasActiveJob(const QuicServerId& server_id) const; |
430 bool HasActiveCertVerifierJob(const QuicServerId& server_id) const; | 430 bool HasActiveCertVerifierJob(const QuicServerId& server_id) const; |
431 int CreateSession(const QuicSessionKey& key, | 431 int CreateSession(const QuicSessionKey& key, |
432 int cert_verify_flags, | 432 int cert_verify_flags, |
433 std::unique_ptr<QuicServerInfo> quic_server_info, | 433 std::unique_ptr<QuicServerInfo> quic_server_info, |
434 const AddressList& address_list, | 434 const AddressList& address_list, |
435 base::TimeTicks dns_resolution_start_time, | |
436 base::TimeTicks dns_resolution_end_time, | 435 base::TimeTicks dns_resolution_end_time, |
437 const BoundNetLog& net_log, | 436 const BoundNetLog& net_log, |
438 QuicChromiumClientSession** session); | 437 QuicChromiumClientSession** session); |
439 void ActivateSession(const QuicSessionKey& key, | 438 void ActivateSession(const QuicSessionKey& key, |
440 QuicChromiumClientSession* session); | 439 QuicChromiumClientSession* session); |
441 | 440 |
442 // Returns |srtt| in micro seconds from ServerNetworkStats. Returns 0 if there | 441 // Returns |srtt| in micro seconds from ServerNetworkStats. Returns 0 if there |
443 // is no |http_server_properties_| or if |http_server_properties_| doesn't | 442 // is no |http_server_properties_| or if |http_server_properties_| doesn't |
444 // have ServerNetworkStats for the given |server_id|. | 443 // have ServerNetworkStats for the given |server_id|. |
445 int64_t GetServerNetworkStatsSmoothedRttInMicroseconds( | 444 int64_t GetServerNetworkStatsSmoothedRttInMicroseconds( |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
666 const scoped_refptr<SSLConfigService> ssl_config_service_; | 665 const scoped_refptr<SSLConfigService> ssl_config_service_; |
667 | 666 |
668 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 667 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
669 | 668 |
670 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 669 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
671 }; | 670 }; |
672 | 671 |
673 } // namespace net | 672 } // namespace net |
674 | 673 |
675 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 674 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
OLD | NEW |