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

Side by Side Diff: net/quic/congestion_control/tcp_cubic_sender.cc

Issue 1406023017: Remove unused member variables. No functional change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@106451721
Patch Set: 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/congestion_control/tcp_cubic_sender.h ('k') | no next file » | 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/congestion_control/tcp_cubic_sender.h" 5 #include "net/quic/congestion_control/tcp_cubic_sender.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/metrics/histogram_macros.h" 9 #include "base/metrics/histogram_macros.h"
10 #include "net/quic/congestion_control/prr_sender.h" 10 #include "net/quic/congestion_control/prr_sender.h"
(...skipping 30 matching lines...) Expand all
41 num_connections_(kDefaultNumConnections), 41 num_connections_(kDefaultNumConnections),
42 congestion_window_count_(0), 42 congestion_window_count_(0),
43 largest_sent_packet_number_(0), 43 largest_sent_packet_number_(0),
44 largest_acked_packet_number_(0), 44 largest_acked_packet_number_(0),
45 largest_sent_at_last_cutback_(0), 45 largest_sent_at_last_cutback_(0),
46 congestion_window_(initial_tcp_congestion_window), 46 congestion_window_(initial_tcp_congestion_window),
47 min_congestion_window_(kDefaultMinimumCongestionWindow), 47 min_congestion_window_(kDefaultMinimumCongestionWindow),
48 min4_mode_(false), 48 min4_mode_(false),
49 slowstart_threshold_(max_tcp_congestion_window), 49 slowstart_threshold_(max_tcp_congestion_window),
50 last_cutback_exited_slowstart_(false), 50 last_cutback_exited_slowstart_(false),
51 max_tcp_congestion_window_(max_tcp_congestion_window), 51 max_tcp_congestion_window_(max_tcp_congestion_window) {}
52 clock_(clock) {}
53 52
54 TcpCubicSender::~TcpCubicSender() { 53 TcpCubicSender::~TcpCubicSender() {
55 UMA_HISTOGRAM_COUNTS("Net.QuicSession.FinalTcpCwnd", congestion_window_); 54 UMA_HISTOGRAM_COUNTS("Net.QuicSession.FinalTcpCwnd", congestion_window_);
56 } 55 }
57 56
58 void TcpCubicSender::SetFromConfig(const QuicConfig& config, 57 void TcpCubicSender::SetFromConfig(const QuicConfig& config,
59 Perspective perspective) { 58 Perspective perspective) {
60 if (perspective == Perspective::IS_SERVER) { 59 if (perspective == Perspective::IS_SERVER) {
61 if (config.HasReceivedConnectionOptions() && 60 if (config.HasReceivedConnectionOptions() &&
62 ContainsQuicTag(config.ReceivedConnectionOptions(), kIW03)) { 61 ContainsQuicTag(config.ReceivedConnectionOptions(), kIW03)) {
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 hybrid_slow_start_.Restart(); 361 hybrid_slow_start_.Restart();
363 slowstart_threshold_ = congestion_window_ / 2; 362 slowstart_threshold_ = congestion_window_ / 2;
364 congestion_window_ = min_congestion_window_; 363 congestion_window_ = min_congestion_window_;
365 } 364 }
366 365
367 CongestionControlType TcpCubicSender::GetCongestionControlType() const { 366 CongestionControlType TcpCubicSender::GetCongestionControlType() const {
368 return reno_ ? kReno : kCubic; 367 return reno_ ? kReno : kCubic;
369 } 368 }
370 369
371 } // namespace net 370 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/congestion_control/tcp_cubic_sender.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698