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