chromium/third_party/webrtc/rtc_base/network_constants.h

/*
 *  Copyright 2004 The WebRTC Project Authors. All rights reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */

#ifndef RTC_BASE_NETWORK_CONSTANTS_H_
#define RTC_BASE_NETWORK_CONSTANTS_H_

#include <stdint.h>

#include <string>

namespace rtc {

constexpr uint16_t kNetworkCostMax =;
constexpr uint16_t kNetworkCostCellular2G =;
constexpr uint16_t kNetworkCostCellular3G =;
constexpr uint16_t kNetworkCostCellular =;
constexpr uint16_t kNetworkCostCellular4G =;
constexpr uint16_t kNetworkCostCellular5G =;
constexpr uint16_t kNetworkCostUnknown =;
constexpr uint16_t kNetworkCostLow =;
constexpr uint16_t kNetworkCostMin =;

// Add 1 to network cost of underlying network type
// so that e.g a "plain" WIFI is prefered over a VPN over WIFI
// everything else being equal.
constexpr uint16_t kNetworkCostVpn =;

// alias
constexpr uint16_t kNetworkCostHigh =;

enum AdapterType {};

std::string AdapterTypeToString(AdapterType type);

// Useful for testing!
constexpr AdapterType kAllAdapterTypes[] =;

}  // namespace rtc

#endif  // RTC_BASE_NETWORK_CONSTANTS_H_