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

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

Issue 2840633002: Remove test-only method QuicStreamFactory::CreateFromSession() (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | 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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | net/quic/chromium/quic_stream_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698