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

Unified Diff: net/quic/core/quic_session.h

Issue 2487613002: Landing Recent QUIC changes until 12:43 PM, Nov 5, 2016 UTC+8 (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/core/quic_server_session_base_test.cc ('k') | net/quic/core/quic_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_session.h
diff --git a/net/quic/core/quic_session.h b/net/quic/core/quic_session.h
index 7d8818b319c8f62442696302550db5b05b1b003d..f25b50f7f5ee8aac045c91ba20d46a73c673736e 100644
--- a/net/quic/core/quic_session.h
+++ b/net/quic/core/quic_session.h
@@ -26,14 +26,14 @@
#include "net/quic/core/quic_crypto_stream.h"
#include "net/quic/core/quic_packet_creator.h"
#include "net/quic/core/quic_protocol.h"
+#include "net/quic/core/quic_stream.h"
#include "net/quic/core/quic_write_blocked_list.h"
-#include "net/quic/core/reliable_quic_stream.h"
namespace net {
class QuicCryptoStream;
class QuicFlowController;
-class ReliableQuicStream;
+class QuicStream;
namespace test {
class QuicSessionPeer;
@@ -118,7 +118,7 @@ class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface {
// If provided, |ack_notifier_delegate| will be registered to be notified when
// we have seen ACKs for all packets resulting from this call.
virtual QuicConsumedData WritevData(
- ReliableQuicStream* stream,
+ QuicStream* stream,
QuicStreamId id,
QuicIOVector iov,
QuicStreamOffset offset,
@@ -238,7 +238,7 @@ class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface {
// such stream exists, and |stream_id| is a peer-created dynamic stream id,
// then a new stream is created and returned. In all other cases, nullptr is
// returned.
- ReliableQuicStream* GetOrCreateStream(const QuicStreamId stream_id);
+ QuicStream* GetOrCreateStream(const QuicStreamId stream_id);
// Mark a stream as draining.
virtual void StreamDraining(QuicStreamId id);
@@ -248,30 +248,29 @@ class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface {
protected:
using StaticStreamMap =
- base::SmallMap<std::unordered_map<QuicStreamId, ReliableQuicStream*>, 2>;
+ base::SmallMap<std::unordered_map<QuicStreamId, QuicStream*>, 2>;
using DynamicStreamMap = base::SmallMap<
- std::unordered_map<QuicStreamId, std::unique_ptr<ReliableQuicStream>>,
+ std::unordered_map<QuicStreamId, std::unique_ptr<QuicStream>>,
10>;
- using ClosedStreams = std::vector<std::unique_ptr<ReliableQuicStream>>;
+ using ClosedStreams = std::vector<std::unique_ptr<QuicStream>>;
// Creates a new stream to handle a peer-initiated stream.
// Caller does not own the returned stream.
// Returns nullptr and does error handling if the stream can not be created.
- virtual ReliableQuicStream* CreateIncomingDynamicStream(QuicStreamId id) = 0;
+ virtual QuicStream* CreateIncomingDynamicStream(QuicStreamId id) = 0;
// Create a new stream to handle a locally-initiated stream.
// Caller does not own the returned stream.
// Returns nullptr if max streams have already been opened.
- virtual ReliableQuicStream* CreateOutgoingDynamicStream(
- SpdyPriority priority) = 0;
+ virtual QuicStream* CreateOutgoingDynamicStream(SpdyPriority priority) = 0;
// Return the reserved crypto stream.
virtual QuicCryptoStream* GetCryptoStream() = 0;
// Adds |stream| to the dynamic stream map.
- virtual void ActivateStream(std::unique_ptr<ReliableQuicStream> stream);
+ virtual void ActivateStream(std::unique_ptr<QuicStream> stream);
// Returns the stream ID for a new outgoing stream, and increments the
// underlying counter.
@@ -282,7 +281,7 @@ class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface {
// returned. However if |stream_id| is a locally-created id and no such stream
// exists, the connection is closed.
// Caller does not own the returned stream.
- ReliableQuicStream* GetOrCreateDynamicStream(QuicStreamId stream_id);
+ QuicStream* GetOrCreateDynamicStream(QuicStreamId stream_id);
// Performs the work required to close |stream_id|. If |locally_reset|
// then the stream has been reset by this endpoint, not by the peer.
@@ -372,7 +371,7 @@ class NET_EXPORT_PRIVATE QuicSession : public QuicConnectionVisitorInterface {
// Debug helper for |OnCanWrite()|, check that OnStreamWrite() makes
// forward progress. Returns false if busy loop detected.
- bool CheckStreamNotBusyLooping(ReliableQuicStream* stream,
+ bool CheckStreamNotBusyLooping(QuicStream* stream,
uint64_t previous_bytes_written,
bool previous_fin_sent);
« no previous file with comments | « net/quic/core/quic_server_session_base_test.cc ('k') | net/quic/core/quic_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698