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

Unified Diff: net/quic/quic_flow_controller.h

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/quic_dispatcher.cc ('k') | net/quic/quic_flow_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_flow_controller.h
diff --git a/net/quic/quic_flow_controller.h b/net/quic/quic_flow_controller.h
index 1b5ed613e0ae3bd51a570785ace81f58b6a5f14c..afa022b1cf2c8812905fbfe8756289326aab0665 100644
--- a/net/quic/quic_flow_controller.h
+++ b/net/quic/quic_flow_controller.h
@@ -27,7 +27,7 @@ class NET_EXPORT_PRIVATE QuicFlowController {
public:
QuicFlowController(QuicConnection* connection,
QuicStreamId id,
- bool is_server,
+ Perspective perspective,
QuicStreamOffset send_window_offset,
QuicStreamOffset receive_window_offset,
QuicByteCount max_receive_window);
@@ -83,8 +83,8 @@ class NET_EXPORT_PRIVATE QuicFlowController {
// connection level flow controller.
QuicStreamId id_;
- // True if this is owned by a server.
- bool is_server_;
+ // Tracks if this is owned by a server or a client.
+ Perspective perspective_;
// Track number of bytes received from the peer, which have been consumed
// locally.
« no previous file with comments | « net/quic/quic_dispatcher.cc ('k') | net/quic/quic_flow_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698