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, |
435 base::TimeTicks dns_resolution_end_time, | 436 base::TimeTicks dns_resolution_end_time, |
436 const BoundNetLog& net_log, | 437 const BoundNetLog& net_log, |
437 QuicChromiumClientSession** session); | 438 QuicChromiumClientSession** session); |
438 void ActivateSession(const QuicSessionKey& key, | 439 void ActivateSession(const QuicSessionKey& key, |
439 QuicChromiumClientSession* session); | 440 QuicChromiumClientSession* session); |
440 | 441 |
441 // Returns |srtt| in micro seconds from ServerNetworkStats. Returns 0 if there | 442 // Returns |srtt| in micro seconds from ServerNetworkStats. Returns 0 if there |
442 // is no |http_server_properties_| or if |http_server_properties_| doesn't | 443 // is no |http_server_properties_| or if |http_server_properties_| doesn't |
443 // have ServerNetworkStats for the given |server_id|. | 444 // have ServerNetworkStats for the given |server_id|. |
444 int64_t GetServerNetworkStatsSmoothedRttInMicroseconds( | 445 int64_t GetServerNetworkStatsSmoothedRttInMicroseconds( |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 const scoped_refptr<SSLConfigService> ssl_config_service_; | 666 const scoped_refptr<SSLConfigService> ssl_config_service_; |
666 | 667 |
667 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 668 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
668 | 669 |
669 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 670 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
670 }; | 671 }; |
671 | 672 |
672 } // namespace net | 673 } // namespace net |
673 | 674 |
674 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 675 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
OLD | NEW |