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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 bool OnResolution(const QuicSessionKey& key, const AddressList& address_list); | 422 bool OnResolution(const QuicSessionKey& key, const AddressList& address_list); |
423 void OnJobComplete(Job* job, int rv); | 423 void OnJobComplete(Job* job, int rv); |
424 void OnCertVerifyJobComplete(CertVerifierJob* job, int rv); | 424 void OnCertVerifyJobComplete(CertVerifierJob* job, int rv); |
425 bool HasActiveSession(const QuicServerId& server_id) const; | 425 bool HasActiveSession(const QuicServerId& server_id) const; |
426 bool HasActiveJob(const QuicServerId& server_id) const; | 426 bool HasActiveJob(const QuicServerId& server_id) const; |
427 bool HasActiveCertVerifierJob(const QuicServerId& server_id) const; | 427 bool HasActiveCertVerifierJob(const QuicServerId& server_id) const; |
428 int CreateSession(const QuicSessionKey& key, | 428 int CreateSession(const QuicSessionKey& key, |
429 int cert_verify_flags, | 429 int cert_verify_flags, |
430 std::unique_ptr<QuicServerInfo> quic_server_info, | 430 std::unique_ptr<QuicServerInfo> quic_server_info, |
431 const AddressList& address_list, | 431 const AddressList& address_list, |
| 432 base::TimeTicks dns_resolution_start_time, |
432 base::TimeTicks dns_resolution_end_time, | 433 base::TimeTicks dns_resolution_end_time, |
433 const BoundNetLog& net_log, | 434 const BoundNetLog& net_log, |
434 QuicChromiumClientSession** session); | 435 QuicChromiumClientSession** session); |
435 void ActivateSession(const QuicSessionKey& key, | 436 void ActivateSession(const QuicSessionKey& key, |
436 QuicChromiumClientSession* session); | 437 QuicChromiumClientSession* session); |
437 | 438 |
438 // Returns |srtt| in micro seconds from ServerNetworkStats. Returns 0 if there | 439 // Returns |srtt| in micro seconds from ServerNetworkStats. Returns 0 if there |
439 // is no |http_server_properties_| or if |http_server_properties_| doesn't | 440 // is no |http_server_properties_| or if |http_server_properties_| doesn't |
440 // have ServerNetworkStats for the given |server_id|. | 441 // have ServerNetworkStats for the given |server_id|. |
441 int64_t GetServerNetworkStatsSmoothedRttInMicroseconds( | 442 int64_t GetServerNetworkStatsSmoothedRttInMicroseconds( |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 const scoped_refptr<SSLConfigService> ssl_config_service_; | 647 const scoped_refptr<SSLConfigService> ssl_config_service_; |
647 | 648 |
648 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 649 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
649 | 650 |
650 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 651 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
651 }; | 652 }; |
652 | 653 |
653 } // namespace net | 654 } // namespace net |
654 | 655 |
655 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 656 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
OLD | NEW |