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

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

Issue 2561893002: Add QUIC_EXPORT macros (Closed)
Patch Set: More 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_utils.h ('k') | net/quic/core/quic_versions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_QUIC_CORE_QUIC_VERSION_MANAGER_H_ 5 #ifndef NET_QUIC_CORE_QUIC_VERSION_MANAGER_H_
6 #define NET_QUIC_CORE_QUIC_VERSION_MANAGER_H_ 6 #define NET_QUIC_CORE_QUIC_VERSION_MANAGER_H_
7 7
8 #include "net/quic/core/quic_versions.h" 8 #include "net/quic/core/quic_versions.h"
9 #include "net/quic/platform/api/quic_export.h"
9 10
10 namespace net { 11 namespace net {
11 12
12 // Used to generate filtered supported versions based on flags. 13 // Used to generate filtered supported versions based on flags.
13 class NET_EXPORT_PRIVATE QuicVersionManager { 14 class QUIC_EXPORT_PRIVATE QuicVersionManager {
14 public: 15 public:
15 explicit QuicVersionManager(QuicVersionVector supported_versions); 16 explicit QuicVersionManager(QuicVersionVector supported_versions);
16 virtual ~QuicVersionManager(); 17 virtual ~QuicVersionManager();
17 18
18 // Returns currently supported QUIC versions. 19 // Returns currently supported QUIC versions.
19 const QuicVersionVector& GetSupportedVersions(); 20 const QuicVersionVector& GetSupportedVersions();
20 21
21 protected: 22 protected:
22 // Maybe refilter filtered_supported_versions_ based on flags. 23 // Maybe refilter filtered_supported_versions_ based on flags.
23 void MaybeRefilterSupportedVersions(); 24 void MaybeRefilterSupportedVersions();
(...skipping 11 matching lines...) Expand all
35 // The list of versions that may be supported. 36 // The list of versions that may be supported.
36 QuicVersionVector allowed_supported_versions_; 37 QuicVersionVector allowed_supported_versions_;
37 // This vector contains QUIC versions which are currently supported based on 38 // This vector contains QUIC versions which are currently supported based on
38 // flags. 39 // flags.
39 QuicVersionVector filtered_supported_versions_; 40 QuicVersionVector filtered_supported_versions_;
40 }; 41 };
41 42
42 } // namespace net 43 } // namespace net
43 44
44 #endif // NET_QUIC_CORE_QUIC_VERSION_MANAGER_H_ 45 #endif // NET_QUIC_CORE_QUIC_VERSION_MANAGER_H_
OLDNEW
« no previous file with comments | « net/quic/core/quic_utils.h ('k') | net/quic/core/quic_versions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698