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

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

Issue 2100863003: Disable QUIC v29 and earlier. Protected by FLAGS_quic_disable_pre_30. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@home
Patch Set: Fixing compile error on android. Created 4 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
« no previous file with comments | « net/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/quic_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_dispatcher.h
diff --git a/net/tools/quic/quic_dispatcher.h b/net/tools/quic/quic_dispatcher.h
index ee25fed6137c6392a1712e1c706481931f61c5cc..db972530435ba65b8951d40310ce5f0828864dd7 100644
--- a/net/tools/quic/quic_dispatcher.h
+++ b/net/tools/quic/quic_dispatcher.h
@@ -180,9 +180,7 @@ class QuicDispatcher : public QuicServerSessionBase::Visitor,
return time_wait_list_manager_.get();
}
- const QuicVersionVector& supported_versions() const {
- return supported_versions_;
- }
+ const QuicVersionVector& GetSupportedVersions();
const IPEndPoint& current_server_address() { return current_server_address_; }
const IPEndPoint& current_client_address() { return current_client_address_; }
@@ -222,8 +220,7 @@ class QuicDispatcher : public QuicServerSessionBase::Visitor,
void SetLastError(QuicErrorCode error);
// Called when the public header has been parsed and the session has been
- // looked up, and the session was not found in the active std::list of
- // sessions.
+ // looked up, and the session was not found in the active list of sessions.
// Returns false if processing should stop after this call.
virtual bool OnUnauthenticatedUnknownPublicHeader(
const QuicPacketPublicHeader& header);
@@ -282,7 +279,13 @@ class QuicDispatcher : public QuicServerSessionBase::Visitor,
// This should be ordered such that the highest supported version is the first
// element, with subsequent elements in descending order (versions can be
// skipped as necessary).
- const QuicVersionVector supported_versions_;
+ QuicVersionVector supported_versions_;
+
+ // FLAGS_quic_disable_pre_30
+ bool disable_quic_pre_30_;
+ // The list of versions that may be supported by this dispatcher.
+ // |supported_versions| is derived from this list and |disable_quic_pre_30_|.
+ const QuicVersionVector allowed_supported_versions_;
// Information about the packet currently being handled.
IPEndPoint current_client_address_;
« no previous file with comments | « net/tools/quic/end_to_end_test.cc ('k') | net/tools/quic/quic_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698