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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 class CertVerifierJob; | 393 class CertVerifierJob; |
394 friend class test::QuicStreamFactoryPeer; | 394 friend class test::QuicStreamFactoryPeer; |
395 | 395 |
396 typedef std::map<QuicServerId, QuicChromiumClientSession*> SessionMap; | 396 typedef std::map<QuicServerId, QuicChromiumClientSession*> SessionMap; |
397 typedef std::map<QuicChromiumClientSession*, QuicSessionKey> SessionIdMap; | 397 typedef std::map<QuicChromiumClientSession*, QuicSessionKey> SessionIdMap; |
398 typedef std::set<QuicSessionKey> AliasSet; | 398 typedef std::set<QuicSessionKey> AliasSet; |
399 typedef std::map<QuicChromiumClientSession*, AliasSet> SessionAliasMap; | 399 typedef std::map<QuicChromiumClientSession*, AliasSet> SessionAliasMap; |
400 typedef std::set<QuicChromiumClientSession*> SessionSet; | 400 typedef std::set<QuicChromiumClientSession*> SessionSet; |
401 typedef std::map<IPEndPoint, SessionSet> IPAliasMap; | 401 typedef std::map<IPEndPoint, SessionSet> IPAliasMap; |
402 typedef std::map<QuicChromiumClientSession*, IPEndPoint> SessionPeerIPMap; | 402 typedef std::map<QuicChromiumClientSession*, IPEndPoint> SessionPeerIPMap; |
403 typedef std::set<Job*> JobSet; | 403 typedef std::map<Job*, std::unique_ptr<Job>> JobSet; |
404 typedef std::map<QuicServerId, JobSet> JobMap; | 404 typedef std::map<QuicServerId, JobSet> JobMap; |
405 typedef std::map<QuicStreamRequest*, QuicServerId> RequestMap; | 405 typedef std::map<QuicStreamRequest*, QuicServerId> RequestMap; |
406 typedef std::set<QuicStreamRequest*> RequestSet; | 406 typedef std::set<QuicStreamRequest*> RequestSet; |
407 typedef std::map<QuicServerId, RequestSet> ServerIDRequestsMap; | 407 typedef std::map<QuicServerId, RequestSet> ServerIDRequestsMap; |
408 typedef std::map<QuicServerId, std::unique_ptr<CertVerifierJob>> | 408 typedef std::map<QuicServerId, std::unique_ptr<CertVerifierJob>> |
409 CertVerifierJobMap; | 409 CertVerifierJobMap; |
410 | 410 |
411 enum FactoryStatus { | 411 enum FactoryStatus { |
412 OPEN, // New streams may be created. | 412 OPEN, // New streams may be created. |
413 CLOSED, // No new streams may be created temporarily. | 413 CLOSED, // No new streams may be created temporarily. |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 const scoped_refptr<SSLConfigService> ssl_config_service_; | 652 const scoped_refptr<SSLConfigService> ssl_config_service_; |
653 | 653 |
654 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; | 654 base::WeakPtrFactory<QuicStreamFactory> weak_factory_; |
655 | 655 |
656 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); | 656 DISALLOW_COPY_AND_ASSIGN(QuicStreamFactory); |
657 }; | 657 }; |
658 | 658 |
659 } // namespace net | 659 } // namespace net |
660 | 660 |
661 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ | 661 #endif // NET_QUIC_QUIC_STREAM_FACTORY_H_ |
OLD | NEW |