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

Side by Side Diff: net/quic/quic_stream_factory.cc

Issue 1812823010: Rename net::BidirectionalStream*Job to net::BidirectionalStream*Impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 9 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/quic/quic_stream_factory.h ('k') | net/spdy/bidirectional_stream_spdy_impl.h » ('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 #include "net/quic/quic_stream_factory.h" 5 #include "net/quic/quic_stream_factory.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 10 matching lines...) Expand all
21 #include "base/thread_task_runner_handle.h" 21 #include "base/thread_task_runner_handle.h"
22 #include "base/values.h" 22 #include "base/values.h"
23 #include "net/base/ip_address.h" 23 #include "net/base/ip_address.h"
24 #include "net/base/net_errors.h" 24 #include "net/base/net_errors.h"
25 #include "net/base/socket_performance_watcher.h" 25 #include "net/base/socket_performance_watcher.h"
26 #include "net/base/socket_performance_watcher_factory.h" 26 #include "net/base/socket_performance_watcher_factory.h"
27 #include "net/cert/cert_verifier.h" 27 #include "net/cert/cert_verifier.h"
28 #include "net/cert/ct_verifier.h" 28 #include "net/cert/ct_verifier.h"
29 #include "net/dns/host_resolver.h" 29 #include "net/dns/host_resolver.h"
30 #include "net/dns/single_request_host_resolver.h" 30 #include "net/dns/single_request_host_resolver.h"
31 #include "net/http/bidirectional_stream_job.h" 31 #include "net/http/bidirectional_stream_impl.h"
32 #include "net/quic/bidirectional_stream_quic_impl.h" 32 #include "net/quic/bidirectional_stream_quic_impl.h"
33 #include "net/quic/crypto/channel_id_chromium.h" 33 #include "net/quic/crypto/channel_id_chromium.h"
34 #include "net/quic/crypto/proof_verifier_chromium.h" 34 #include "net/quic/crypto/proof_verifier_chromium.h"
35 #include "net/quic/crypto/properties_based_quic_server_info.h" 35 #include "net/quic/crypto/properties_based_quic_server_info.h"
36 #include "net/quic/crypto/quic_random.h" 36 #include "net/quic/crypto/quic_random.h"
37 #include "net/quic/crypto/quic_server_info.h" 37 #include "net/quic/crypto/quic_server_info.h"
38 #include "net/quic/port_suggester.h" 38 #include "net/quic/port_suggester.h"
39 #include "net/quic/quic_chromium_client_session.h" 39 #include "net/quic/quic_chromium_client_session.h"
40 #include "net/quic/quic_chromium_connection_helper.h" 40 #include "net/quic/quic_chromium_connection_helper.h"
41 #include "net/quic/quic_chromium_packet_reader.h" 41 #include "net/quic/quic_chromium_packet_reader.h"
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 return factory_->GetTimeDelayForWaitingJob( 550 return factory_->GetTimeDelayForWaitingJob(
551 QuicServerId(host_port_pair_, privacy_mode_)); 551 QuicServerId(host_port_pair_, privacy_mode_));
552 } 552 }
553 553
554 scoped_ptr<QuicHttpStream> QuicStreamRequest::CreateStream() { 554 scoped_ptr<QuicHttpStream> QuicStreamRequest::CreateStream() {
555 if (!session_) 555 if (!session_)
556 return nullptr; 556 return nullptr;
557 return make_scoped_ptr(new QuicHttpStream(session_)); 557 return make_scoped_ptr(new QuicHttpStream(session_));
558 } 558 }
559 559
560 scoped_ptr<BidirectionalStreamJob> 560 scoped_ptr<BidirectionalStreamImpl>
561 QuicStreamRequest::CreateBidirectionalStreamJob() { 561 QuicStreamRequest::CreateBidirectionalStreamImpl() {
562 if (!session_) 562 if (!session_)
563 return nullptr; 563 return nullptr;
564 return make_scoped_ptr(new BidirectionalStreamQuicImpl(session_)); 564 return make_scoped_ptr(new BidirectionalStreamQuicImpl(session_));
565 } 565 }
566 566
567 QuicStreamFactory::QuicStreamFactory( 567 QuicStreamFactory::QuicStreamFactory(
568 HostResolver* host_resolver, 568 HostResolver* host_resolver,
569 ClientSocketFactory* client_socket_factory, 569 ClientSocketFactory* client_socket_factory,
570 base::WeakPtr<HttpServerProperties> http_server_properties, 570 base::WeakPtr<HttpServerProperties> http_server_properties,
571 CertVerifier* cert_verifier, 571 CertVerifier* cert_verifier,
(...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1746 // Since the session was active, there's no longer an 1746 // Since the session was active, there's no longer an
1747 // HttpStreamFactoryImpl::Job running which can mark it broken, unless the TCP 1747 // HttpStreamFactoryImpl::Job running which can mark it broken, unless the TCP
1748 // job also fails. So to avoid not using QUIC when we otherwise could, we mark 1748 // job also fails. So to avoid not using QUIC when we otherwise could, we mark
1749 // it as recently broken, which means that 0-RTT will be disabled but we'll 1749 // it as recently broken, which means that 0-RTT will be disabled but we'll
1750 // still race. 1750 // still race.
1751 http_server_properties_->MarkAlternativeServiceRecentlyBroken( 1751 http_server_properties_->MarkAlternativeServiceRecentlyBroken(
1752 alternative_service); 1752 alternative_service);
1753 } 1753 }
1754 1754
1755 } // namespace net 1755 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_stream_factory.h ('k') | net/spdy/bidirectional_stream_spdy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698