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

Unified Diff: net/quic/congestion_control/pacing_sender.cc

Issue 1009543004: Create a Perspective enum to use instead of a bool is_server to improve (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added NET_EXPORT_PRIVATE to fix compiler error Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/congestion_control/pacing_sender.h ('k') | net/quic/congestion_control/send_algorithm_interface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/congestion_control/pacing_sender.cc
diff --git a/net/quic/congestion_control/pacing_sender.cc b/net/quic/congestion_control/pacing_sender.cc
index 3df555ff81fe9f34284e119a75e44b94c60a9880..addf426b5fe10a91194f8f162ea2cbbf47ffd860 100644
--- a/net/quic/congestion_control/pacing_sender.cc
+++ b/net/quic/congestion_control/pacing_sender.cc
@@ -21,10 +21,10 @@ PacingSender::PacingSender(SendAlgorithmInterface* sender,
PacingSender::~PacingSender() {}
void PacingSender::SetFromConfig(const QuicConfig& config,
- bool is_server,
+ Perspective perspective,
bool using_pacing) {
DCHECK(using_pacing);
- sender_->SetFromConfig(config, is_server, using_pacing);
+ sender_->SetFromConfig(config, perspective, using_pacing);
}
bool PacingSender::ResumeConnectionState(
« no previous file with comments | « net/quic/congestion_control/pacing_sender.h ('k') | net/quic/congestion_control/send_algorithm_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698