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

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

Issue 2825083003: Landing Recent QUIC changes until Mon Apr 17 2017 (Closed)
Patch Set: Format 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
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/chromium/quic_stream_factory.h" 5 #include "net/quic/chromium/quic_stream_factory.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <tuple> 8 #include <tuple>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "net/quic/chromium/quic_chromium_alarm_factory.h" 44 #include "net/quic/chromium/quic_chromium_alarm_factory.h"
45 #include "net/quic/chromium/quic_chromium_connection_helper.h" 45 #include "net/quic/chromium/quic_chromium_connection_helper.h"
46 #include "net/quic/chromium/quic_chromium_packet_reader.h" 46 #include "net/quic/chromium/quic_chromium_packet_reader.h"
47 #include "net/quic/chromium/quic_chromium_packet_writer.h" 47 #include "net/quic/chromium/quic_chromium_packet_writer.h"
48 #include "net/quic/chromium/quic_crypto_client_stream_factory.h" 48 #include "net/quic/chromium/quic_crypto_client_stream_factory.h"
49 #include "net/quic/chromium/quic_server_info.h" 49 #include "net/quic/chromium/quic_server_info.h"
50 #include "net/quic/core/crypto/proof_verifier.h" 50 #include "net/quic/core/crypto/proof_verifier.h"
51 #include "net/quic/core/crypto/quic_random.h" 51 #include "net/quic/core/crypto/quic_random.h"
52 #include "net/quic/core/quic_client_promised_info.h" 52 #include "net/quic/core/quic_client_promised_info.h"
53 #include "net/quic/core/quic_connection.h" 53 #include "net/quic/core/quic_connection.h"
54 #include "net/quic/core/quic_flags.h"
55 #include "net/quic/platform/api/quic_clock.h" 54 #include "net/quic/platform/api/quic_clock.h"
55 #include "net/quic/platform/api/quic_flags.h"
56 #include "net/socket/client_socket_factory.h" 56 #include "net/socket/client_socket_factory.h"
57 #include "net/socket/next_proto.h" 57 #include "net/socket/next_proto.h"
58 #include "net/socket/socket_performance_watcher.h" 58 #include "net/socket/socket_performance_watcher.h"
59 #include "net/socket/socket_performance_watcher_factory.h" 59 #include "net/socket/socket_performance_watcher_factory.h"
60 #include "net/socket/udp_client_socket.h" 60 #include "net/socket/udp_client_socket.h"
61 #include "net/ssl/token_binding.h" 61 #include "net/ssl/token_binding.h"
62 #include "third_party/boringssl/src/include/openssl/aead.h" 62 #include "third_party/boringssl/src/include/openssl/aead.h"
63 #include "url/gurl.h" 63 #include "url/gurl.h"
64 #include "url/url_constants.h" 64 #include "url/url_constants.h"
65 65
(...skipping 1612 matching lines...) Expand 10 before | Expand all | Expand 10 after
1678 1678
1679 QuicChromiumPacketWriter* writer = new QuicChromiumPacketWriter(socket.get()); 1679 QuicChromiumPacketWriter* writer = new QuicChromiumPacketWriter(socket.get());
1680 QuicConnection* connection = new QuicConnection( 1680 QuicConnection* connection = new QuicConnection(
1681 connection_id, QuicSocketAddress(QuicSocketAddressImpl(addr)), 1681 connection_id, QuicSocketAddress(QuicSocketAddressImpl(addr)),
1682 helper_.get(), alarm_factory_.get(), writer, true /* owns_writer */, 1682 helper_.get(), alarm_factory_.get(), writer, true /* owns_writer */,
1683 Perspective::IS_CLIENT, supported_versions_); 1683 Perspective::IS_CLIENT, supported_versions_);
1684 connection->set_ping_timeout(ping_timeout_); 1684 connection->set_ping_timeout(ping_timeout_);
1685 connection->SetMaxPacketLength(max_packet_length_); 1685 connection->SetMaxPacketLength(max_packet_length_);
1686 1686
1687 QuicConfig config = config_; 1687 QuicConfig config = config_;
1688 config.SetSocketReceiveBufferToSend(kQuicSocketReceiveBufferSize);
1689 config.set_max_undecryptable_packets(kMaxUndecryptablePackets); 1688 config.set_max_undecryptable_packets(kMaxUndecryptablePackets);
1690 config.SetInitialSessionFlowControlWindowToSend( 1689 config.SetInitialSessionFlowControlWindowToSend(
1691 kQuicSessionMaxRecvWindowSize); 1690 kQuicSessionMaxRecvWindowSize);
1692 config.SetInitialStreamFlowControlWindowToSend(kQuicStreamMaxRecvWindowSize); 1691 config.SetInitialStreamFlowControlWindowToSend(kQuicStreamMaxRecvWindowSize);
1693 config.SetBytesForConnectionIdToSend(0); 1692 config.SetBytesForConnectionIdToSend(0);
1694 ConfigureInitialRttEstimate(server_id, &config); 1693 ConfigureInitialRttEstimate(server_id, &config);
1695 1694
1696 if (force_hol_blocking_) 1695 if (force_hol_blocking_)
1697 config.SetForceHolBlocking(); 1696 config.SetForceHolBlocking();
1698 1697
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
1965 // Since the session was active, there's no longer an 1964 // Since the session was active, there's no longer an
1966 // HttpStreamFactoryImpl::Job running which can mark it broken, unless the TCP 1965 // HttpStreamFactoryImpl::Job running which can mark it broken, unless the TCP
1967 // job also fails. So to avoid not using QUIC when we otherwise could, we mark 1966 // job also fails. So to avoid not using QUIC when we otherwise could, we mark
1968 // it as recently broken, which means that 0-RTT will be disabled but we'll 1967 // it as recently broken, which means that 0-RTT will be disabled but we'll
1969 // still race. 1968 // still race.
1970 http_server_properties_->MarkAlternativeServiceRecentlyBroken( 1969 http_server_properties_->MarkAlternativeServiceRecentlyBroken(
1971 alternative_service); 1970 alternative_service);
1972 } 1971 }
1973 1972
1974 } // namespace net 1973 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_network_transaction_unittest.cc ('k') | net/quic/core/congestion_control/bbr_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698