#include "remoting/protocol/ice_config.h"
#include <algorithm>
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "base/logging.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/values.h"
#include "net/base/url_util.h"
#include "remoting/proto/remoting/v1/network_traversal_messages.pb.h"
namespace remoting::protocol {
namespace {
const int kDefaultStunTurnPort = …;
const int kDefaultTurnsPort = …;
bool ParseLifetime(const std::string& string, base::TimeDelta* result) { … }
bool AddServerToConfig(std::string url,
const std::string& username,
const std::string& password,
IceConfig* config) { … }
int MinimumSpecified(int value1, int value2) { … }
}
IceConfig::IceConfig() = default;
IceConfig::IceConfig(const IceConfig& other) = default;
IceConfig::~IceConfig() = default;
IceConfig IceConfig::Parse(const base::Value::Dict& dictionary) { … }
IceConfig IceConfig::Parse(const std::string& config_json) { … }
IceConfig IceConfig::Parse(const apis::v1::GetIceConfigResponse& config) { … }
}