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

Unified Diff: net/tools/quic/quic_client_session.h

Issue 2862563003: Landing Recent QUIC changes until Sat Apr 29 00:22:04 2017 +0000 (Closed)
Patch Set: rebase and fix test bugs detected by swarm bot. Created 3 years, 7 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/tools/quic/quic_client_base.cc ('k') | net/tools/quic/quic_client_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_client_session.h
diff --git a/net/tools/quic/quic_client_session.h b/net/tools/quic/quic_client_session.h
index 8dbdf2c03510ec64071e4e7885468890d8b3b402..a7dc18043071ea01a80a0360ff698836d4a56d3a 100644
--- a/net/tools/quic/quic_client_session.h
+++ b/net/tools/quic/quic_client_session.h
@@ -37,6 +37,8 @@ class QuicClientSession : public QuicClientSessionBase {
// QuicSession methods:
QuicSpdyClientStream* CreateOutgoingDynamicStream(
SpdyPriority priority) override;
+ QuicSpdyClientStream* MaybeCreateOutgoingDynamicStream(
+ SpdyPriority priority) override;
QuicCryptoClientStreamBase* GetMutableCryptoStream() override;
const QuicCryptoClientStreamBase* GetCryptoStream() const override;
@@ -57,10 +59,6 @@ class QuicClientSession : public QuicClientSessionBase {
int GetNumReceivedServerConfigUpdates() const;
- void set_respect_goaway(bool respect_goaway) {
- respect_goaway_ = respect_goaway;
- }
-
protected:
// QuicSession methods:
QuicSpdyStream* CreateIncomingDynamicStream(QuicStreamId id) override;
@@ -69,10 +67,14 @@ class QuicClientSession : public QuicClientSessionBase {
// If an incoming stream can be created, return true.
bool ShouldCreateIncomingDynamicStream(QuicStreamId id) override;
+ QuicSpdyStream* MaybeCreateIncomingDynamicStream(QuicStreamId id) override;
+ std::unique_ptr<QuicStream> CreateStream(QuicStreamId id) override;
// Create the crypto stream. Called by Initialize().
virtual std::unique_ptr<QuicCryptoClientStreamBase> CreateQuicCryptoStream();
+ // TODO(ckrasic) remove when
+ // quic_reloadable_flag_quic_refactor_stream_creation is deprecated.
// Unlike CreateOutgoingDynamicStream, which applies a bunch of sanity checks,
// this simply returns a new QuicSpdyClientStream. This may be used by
// subclasses which want to use a subclass of QuicSpdyClientStream for streams
@@ -87,10 +89,6 @@ class QuicClientSession : public QuicClientSessionBase {
QuicServerId server_id_;
QuicCryptoClientConfig* crypto_config_;
- // If this is set to false, the client will ignore server GOAWAYs and allow
- // the creation of streams regardless of the high chance they will fail.
- bool respect_goaway_;
-
DISALLOW_COPY_AND_ASSIGN(QuicClientSession);
};
« no previous file with comments | « net/tools/quic/quic_client_base.cc ('k') | net/tools/quic/quic_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698