| 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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 typedef std::set<QuicChromiumClientSession*> SessionSet; | 392 typedef std::set<QuicChromiumClientSession*> SessionSet; |
| 393 typedef std::map<IPEndPoint, SessionSet> IPAliasMap; | 393 typedef std::map<IPEndPoint, SessionSet> IPAliasMap; |
| 394 typedef std::map<QuicChromiumClientSession*, IPEndPoint> SessionPeerIPMap; | 394 typedef std::map<QuicChromiumClientSession*, IPEndPoint> SessionPeerIPMap; |
| 395 typedef std::map<Job*, std::unique_ptr<Job>> JobSet; | 395 typedef std::map<Job*, std::unique_ptr<Job>> JobSet; |
| 396 typedef std::map<QuicServerId, JobSet> JobMap; | 396 typedef std::map<QuicServerId, JobSet> JobMap; |
| 397 typedef std::set<QuicStreamRequest*> RequestSet; | 397 typedef std::set<QuicStreamRequest*> RequestSet; |
| 398 typedef std::map<QuicServerId, RequestSet> ServerIDRequestsMap; | 398 typedef std::map<QuicServerId, RequestSet> ServerIDRequestsMap; |
| 399 typedef std::map<QuicServerId, std::unique_ptr<CertVerifierJob>> | 399 typedef std::map<QuicServerId, std::unique_ptr<CertVerifierJob>> |
| 400 CertVerifierJobMap; | 400 CertVerifierJobMap; |
| 401 | 401 |
| 402 // Returns a newly created QuicHttpStream owned by the caller. | |
| 403 std::unique_ptr<QuicHttpStream> CreateFromSession( | |
| 404 QuicChromiumClientSession* session); | |
| 405 | |
| 406 bool OnResolution(const QuicSessionKey& key, const AddressList& address_list); | 402 bool OnResolution(const QuicSessionKey& key, const AddressList& address_list); |
| 407 void OnJobComplete(Job* job, int rv); | 403 void OnJobComplete(Job* job, int rv); |
| 408 void OnCertVerifyJobComplete(CertVerifierJob* job, int rv); | 404 void OnCertVerifyJobComplete(CertVerifierJob* job, int rv); |
| 409 bool HasActiveSession(const QuicServerId& server_id) const; | 405 bool HasActiveSession(const QuicServerId& server_id) const; |
| 410 bool HasActiveJob(const QuicServerId& server_id) const; | 406 bool HasActiveJob(const QuicServerId& server_id) const; |
| 411 bool HasActiveCertVerifierJob(const QuicServerId& server_id) const; | 407 bool HasActiveCertVerifierJob(const QuicServerId& server_id) const; |
| 412 int CreateSession(const QuicSessionKey& key, | 408 int CreateSession(const QuicSessionKey& key, |
| 413 int cert_verify_flags, | 409 int cert_verify_flags, |
| 414 bool require_confirmation, | 410 bool require_confirmation, |
| 415 const AddressList& address_list, | 411 const AddressList& address_list, |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 const scoped_refptr<SSLConfigService> ssl_config_service_; | 579 const scoped_refptr<SSLConfigService> ssl_config_service_; |
| 584 | 580 |
| 585 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 581 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 586 | 582 |
| 587 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 583 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 588 }; | 584 }; |
| 589 | 585 |
| 590 } // namespace net | 586 } // namespace net |
| 591 | 587 |
| 592 #endif // NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_H_ | 588 #endif // NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |