Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(607)

Side by Side Diff: net/quic/chromium/quic_stream_factory.h

Issue 2842883002: Change QuicStreamFactory::active_jobs_ to a Map from QuicServerId to Job (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/log/net_log_event_type_list.h ('k') | net/quic/chromium/quic_stream_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/log/net_log_event_type_list.h ('k') | net/quic/chromium/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698