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

Unified Diff: net/quic/quic_session.h

Issue 1421633002: Rename GetNextStreamId to GetNextOutgoingStreamId in QuicSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@105530242
Patch Set: Created 5 years, 2 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_chromium_client_session.cc ('k') | net/quic/quic_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_session.h
diff --git a/net/quic/quic_session.h b/net/quic/quic_session.h
index 4ef7389ca960edbf4795f216ecd4fa31b30e7145..bfcce4b4edea2a15fb2f265d5677391e9d21677a 100644
--- a/net/quic/quic_session.h
+++ b/net/quic/quic_session.h
@@ -221,8 +221,9 @@ class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface {
// Adds 'stream' to the active stream map.
virtual void ActivateStream(ReliableQuicStream* stream);
- // Returns the stream id for a new stream.
- QuicStreamId GetNextStreamId();
+ // Returns the stream ID for a new outgoing stream, and increments the
+ // underlying counter.
+ QuicStreamId GetNextOutgoingStreamId();
ReliableQuicStream* GetIncomingDynamicStream(QuicStreamId stream_id);
@@ -307,7 +308,9 @@ class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface {
// Map from StreamId to pointers to streams that are owned by the caller.
StreamMap dynamic_stream_map_;
- QuicStreamId next_stream_id_;
+
+ // The ID to use for the next outgoing stream.
+ QuicStreamId next_outgoing_stream_id_;
// Set of stream ids that are less than the largest stream id that has been
// received, but are nonetheless available to be created.
« no previous file with comments | « net/quic/quic_chromium_client_session.cc ('k') | net/quic/quic_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698