xref: /aosp_15_r20/external/cronet/net/quic/set_quic_flag.h (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1 // Copyright 2022 The Chromium Authors
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_SET_QUIC_FLAG_H_
6 #define NET_QUIC_SET_QUIC_FLAG_H_
7 
8 #include <string>
9 
10 #include "net/base/net_export.h"
11 
12 namespace net {
13 
14 // Sets the flag named |flag_name| to the value of |value| after converting
15 // it from a string to the appropriate type. If |value| is invalid or out of
16 // range, the flag will be unchanged.
17 NET_EXPORT_PRIVATE void SetQuicFlagByName(const std::string& flag_name,
18                                           const std::string& value);
19 
20 }  // namespace net
21 
22 #endif  // NET_QUIC_SET_QUIC_FLAG_H_
23