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, | |
433 base::TimeTicks dns_resolution_end_time, | 432 base::TimeTicks dns_resolution_end_time, |
434 const BoundNetLog& net_log, | 433 const BoundNetLog& net_log, |
435 QuicChromiumClientSession** session); | 434 QuicChromiumClientSession** session); |
436 void ActivateSession(const QuicSessionKey& key, | 435 void ActivateSession(const QuicSessionKey& key, |
437 QuicChromiumClientSession* session); | 436 QuicChromiumClientSession* session); |
438 | 437 |
439 // Returns |srtt| in micro seconds from ServerNetworkStats. Returns 0 if there | 438 // Returns |srtt| in micro seconds from ServerNetworkStats. Returns 0 if there |
440 // is no |http_server_properties_| or if |http_server_properties_| doesn't | 439 // is no |http_server_properties_| or if |http_server_properties_| doesn't |
441 // have ServerNetworkStats for the given |server_id|. | 440 // have ServerNetworkStats for the given |server_id|. |
442 int64_t GetServerNetworkStatsSmoothedRttInMicroseconds( | 441 int64_t GetServerNetworkStatsSmoothedRttInMicroseconds( |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 const scoped_refptr<SSLConfigService> ssl_config_service_; | 636 const scoped_refptr<SSLConfigService> ssl_config_service_; |
638 | 637 |
639 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 638 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
640 | 639 |
641 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 640 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
642 }; | 641 }; |
643 | 642 |
644 } // namespace net | 643 } // namespace net |
645 | 644 |
646 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 645 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
OLD | NEW |