set_quic_flag.h 696 B

12345678910111213141516171819202122
  1. // Copyright 2022 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. #ifndef NET_QUIC_SET_QUIC_FLAG_H_
  5. #define NET_QUIC_SET_QUIC_FLAG_H_
  6. #include <string>
  7. #include "net/base/net_export.h"
  8. namespace net {
  9. // Sets the flag named |flag_name| to the value of |value| after converting
  10. // it from a string to the appropriate type. If |value| is invalid or out of
  11. // range, the flag will be unchanged.
  12. NET_EXPORT_PRIVATE void SetQuicFlagByName(const std::string& flag_name,
  13. const std::string& value);
  14. } // namespace net
  15. #endif // NET_QUIC_SET_QUIC_FLAG_H_