chromium/net/base/proxy_server.cc

// Copyright 2010 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

}  // namespace

ProxyServer::ProxyServer(Scheme scheme, const HostPortPair& host_port_pair)
      :{}

// static
ProxyServer ProxyServer::FromSchemeHostAndPort(Scheme scheme,
                                               std::string_view host,
                                               std::string_view port_str) {}

// static
ProxyServer ProxyServer::FromSchemeHostAndPort(Scheme scheme,
                                               std::string_view host,
                                               std::optional<uint16_t> port) {}

// static
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 {}

// static
int ProxyServer::GetDefaultPortForScheme(Scheme scheme) {}

std::ostream& operator<<(std::ostream& os, const ProxyServer& proxy_server) {}

}  // namespace net