| 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 class CertVerifierJob; | 385 class CertVerifierJob; |
| 386 friend class test::QuicStreamFactoryPeer; | 386 friend class test::QuicStreamFactoryPeer; |
| 387 | 387 |
| 388 typedef std::map<QuicServerId, QuicChromiumClientSession*> SessionMap; | 388 typedef std::map<QuicServerId, QuicChromiumClientSession*> SessionMap; |
| 389 typedef std::map<QuicChromiumClientSession*, QuicSessionKey> SessionIdMap; | 389 typedef std::map<QuicChromiumClientSession*, QuicSessionKey> SessionIdMap; |
| 390 typedef std::set<QuicSessionKey> AliasSet; | 390 typedef std::set<QuicSessionKey> AliasSet; |
| 391 typedef std::map<QuicChromiumClientSession*, AliasSet> SessionAliasMap; | 391 typedef std::map<QuicChromiumClientSession*, AliasSet> SessionAliasMap; |
| 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<QuicServerId, std::unique_ptr<Job>> JobMap; |
| 396 typedef std::map<QuicServerId, JobSet> JobMap; | |
| 397 typedef std::set<QuicStreamRequest*> RequestSet; | 396 typedef std::set<QuicStreamRequest*> RequestSet; |
| 398 typedef std::map<QuicServerId, RequestSet> ServerIDRequestsMap; | 397 typedef std::map<QuicServerId, RequestSet> ServerIDRequestsMap; |
| 399 typedef std::map<QuicServerId, std::unique_ptr<CertVerifierJob>> | 398 typedef std::map<QuicServerId, std::unique_ptr<CertVerifierJob>> |
| 400 CertVerifierJobMap; | 399 CertVerifierJobMap; |
| 401 | 400 |
| 402 bool OnResolution(const QuicSessionKey& key, const AddressList& address_list); | 401 bool OnResolution(const QuicSessionKey& key, const AddressList& address_list); |
| 403 void OnJobComplete(Job* job, int rv); | 402 void OnJobComplete(Job* job, int rv); |
| 404 void OnCertVerifyJobComplete(CertVerifierJob* job, int rv); | 403 void OnCertVerifyJobComplete(CertVerifierJob* job, int rv); |
| 405 bool HasActiveSession(const QuicServerId& server_id) const; | 404 bool HasActiveSession(const QuicServerId& server_id) const; |
| 406 bool HasActiveJob(const QuicServerId& server_id) const; | 405 bool HasActiveJob(const QuicServerId& server_id) const; |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 const scoped_refptr<SSLConfigService> ssl_config_service_; | 578 const scoped_refptr<SSLConfigService> ssl_config_service_; |
| 580 | 579 |
| 581 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 580 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
| 582 | 581 |
| 583 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 582 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
| 584 }; | 583 }; |
| 585 | 584 |
| 586 } // namespace net | 585 } // namespace net |
| 587 | 586 |
| 588 #endif // NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_H_ | 587 #endif // NET_QUIC_CHROMIUM_QUIC_STREAM_FACTORY_H_ |
| OLD | NEW |