#include "net/base/proxy_server.h"
#include <stdint.h>
#include <optional>
#include <ostream>
#include <string>
#include <string_view>
#include "base/check_op.h"
#include "base/numerics/safe_conversions.h"
#include "base/pickle.h"
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "net/base/proxy_string_util.h"
#include "url/third_party/mozilla/url_parse.h"
#include "url/url_canon.h"
#include "url/url_canon_stdstring.h"
namespace net {
namespace {
bool IsValidSchemeInt(int scheme_int) { … }
}
ProxyServer::ProxyServer(Scheme scheme, const HostPortPair& host_port_pair)
: … { … }
ProxyServer ProxyServer::FromSchemeHostAndPort(Scheme scheme,
std::string_view host,
std::string_view port_str) { … }
ProxyServer ProxyServer::FromSchemeHostAndPort(Scheme scheme,
std::string_view host,
std::optional<uint16_t> port) { … }
ProxyServer ProxyServer::CreateFromPickle(base::PickleIterator* pickle_iter) { … }
void ProxyServer::Persist(base::Pickle* pickle) const { … }
std::string ProxyServer::GetHost() const { … }
uint16_t ProxyServer::GetPort() const { … }
const HostPortPair& ProxyServer::host_port_pair() const { … }
int ProxyServer::GetDefaultPortForScheme(Scheme scheme) { … }
std::ostream& operator<<(std::ostream& os, const ProxyServer& proxy_server) { … }
}