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

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

Issue 1411063004: Remove insecure QUIC support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enough! Created 5 years, 1 month 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_sent_packet_manager.h ('k') | net/quic/quic_sent_packet_manager_test.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_sent_packet_manager.h" 5 #include "net/quic/quic_sent_packet_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 } // namespace 60 } // namespace
61 61
62 #define ENDPOINT \ 62 #define ENDPOINT \
63 (perspective_ == Perspective::IS_SERVER ? "Server: " : "Client: ") 63 (perspective_ == Perspective::IS_SERVER ? "Server: " : "Client: ")
64 64
65 QuicSentPacketManager::QuicSentPacketManager( 65 QuicSentPacketManager::QuicSentPacketManager(
66 Perspective perspective, 66 Perspective perspective,
67 const QuicClock* clock, 67 const QuicClock* clock,
68 QuicConnectionStats* stats, 68 QuicConnectionStats* stats,
69 CongestionControlType congestion_control_type, 69 CongestionControlType congestion_control_type,
70 LossDetectionType loss_type, 70 LossDetectionType loss_type)
71 bool is_secure)
72 : unacked_packets_(&ack_notifier_manager_), 71 : unacked_packets_(&ack_notifier_manager_),
73 perspective_(perspective), 72 perspective_(perspective),
74 clock_(clock), 73 clock_(clock),
75 stats_(stats), 74 stats_(stats),
76 debug_delegate_(nullptr), 75 debug_delegate_(nullptr),
77 network_change_visitor_(nullptr), 76 network_change_visitor_(nullptr),
78 initial_congestion_window_(is_secure ? kInitialCongestionWindowSecure 77 initial_congestion_window_(kInitialCongestionWindow),
79 : kInitialCongestionWindowInsecure),
80 send_algorithm_( 78 send_algorithm_(
81 SendAlgorithmInterface::Create(clock, 79 SendAlgorithmInterface::Create(clock,
82 &rtt_stats_, 80 &rtt_stats_,
83 congestion_control_type, 81 congestion_control_type,
84 stats, 82 stats,
85 initial_congestion_window_)), 83 initial_congestion_window_)),
86 loss_algorithm_(LossDetectionInterface::Create(loss_type)), 84 loss_algorithm_(LossDetectionInterface::Create(loss_type)),
87 n_connection_simulation_(false), 85 n_connection_simulation_(false),
88 receive_buffer_bytes_(kDefaultSocketReceiveBuffer), 86 receive_buffer_bytes_(kDefaultSocketReceiveBuffer),
89 least_packet_awaited_by_peer_(1), 87 least_packet_awaited_by_peer_(1),
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 // Set up a pacing sender with a 1 millisecond alarm granularity, the same as 955 // Set up a pacing sender with a 1 millisecond alarm granularity, the same as
958 // the default granularity of the Linux kernel's FQ qdisc. 956 // the default granularity of the Linux kernel's FQ qdisc.
959 using_pacing_ = true; 957 using_pacing_ = true;
960 send_algorithm_.reset( 958 send_algorithm_.reset(
961 new PacingSender(send_algorithm_.release(), 959 new PacingSender(send_algorithm_.release(),
962 QuicTime::Delta::FromMilliseconds(1), 960 QuicTime::Delta::FromMilliseconds(1),
963 kInitialUnpacedBurst)); 961 kInitialUnpacedBurst));
964 } 962 }
965 963
966 } // namespace net 964 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_sent_packet_manager.h ('k') | net/quic/quic_sent_packet_manager_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698