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

Unified Diff: net/quic/quic_client_session.h

Issue 1208933004: QUIC - disable QUIC under recent pathological connection errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: net-internals additions Created 5 years, 6 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
Index: net/quic/quic_client_session.h
diff --git a/net/quic/quic_client_session.h b/net/quic/quic_client_session.h
index 414b9069b105cbdfdbbf5f2927d9857475d2f1f1..998be417f2ac5550d8edb6b504bf95bed38f39bc 100644
--- a/net/quic/quic_client_session.h
+++ b/net/quic/quic_client_session.h
@@ -194,6 +194,8 @@ class NET_EXPORT_PRIVATE QuicClientSession : public QuicClientSessionBase,
const QuicServerId& server_id() const { return server_id_; }
+ const QuicDisabledReason disabled_reason() const { return disabled_reason_; }
+
protected:
// QuicSession methods:
QuicDataStream* CreateIncomingDynamicStream(QuicStreamId id) override;
@@ -261,6 +263,7 @@ class NET_EXPORT_PRIVATE QuicClientSession : public QuicClientSessionBase,
// True when the session is going away, and streams may no longer be created
// on this session. Existing stream will continue to be processed.
bool going_away_;
+ QuicDisabledReason disabled_reason_;
base::WeakPtrFactory<QuicClientSession> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(QuicClientSession);

Powered by Google App Engine
This is Rietveld 408576698