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

Side by Side Diff: net/quic/core/quic_version_manager.h

Issue 2547583002: Landing Recent QUIC changes until Fri Nov 18 23:21:04 2016 +0000 (Closed)
Patch Set: Remove explicit HTTP/2 enum usage Created 4 years 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 unified diff | Download patch
« no previous file with comments | « net/quic/core/quic_unacked_packet_map.cc ('k') | net/quic/core/quic_version_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef NET_QUIC_CORE_QUIC_VERSION_MANAGER_H_
6 #define NET_QUIC_CORE_QUIC_VERSION_MANAGER_H_
7
8 #include "net/quic/core/quic_versions.h"
9
10 namespace net {
11
12 // Used to generate filtered supported versions based on flags.
13 class NET_EXPORT_PRIVATE QuicVersionManager {
14 public:
15 explicit QuicVersionManager(QuicVersionVector supported_versions);
16 virtual ~QuicVersionManager();
17
18 // Returns currently supported QUIC versions.
19 const QuicVersionVector& GetSupportedVersions();
20
21 protected:
22 // Maybe refilter filtered_supported_versions_ based on flags.
23 void MaybeRefilterSupportedVersions();
24
25 // Refilters filtered_supported_versions_.
26 virtual void RefilterSupportedVersions();
27
28 const QuicVersionVector& filtered_supported_versions() const {
29 return filtered_supported_versions_;
30 }
31
32 private:
33 // FLAGS_quic_enable_version_36_v3
34 bool enable_version_36_;
35 // The list of versions that may be supported.
36 QuicVersionVector allowed_supported_versions_;
37 // This vector contains QUIC versions which are currently supported based on
38 // flags.
39 QuicVersionVector filtered_supported_versions_;
40 };
41
42 } // namespace net
43
44 #endif // NET_QUIC_CORE_QUIC_VERSION_MANAGER_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_unacked_packet_map.cc ('k') | net/quic/core/quic_version_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698