chromium/net/base/proxy_string_util.cc

// Copyright 2021 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_string_util.h"

#include <string>
#include <string_view>

#include "base/notreached.h"
#include "base/strings/strcat.h"
#include "base/strings/string_util.h"
#include "net/base/proxy_server.h"
#include "net/base/url_util.h"
#include "net/http/http_util.h"
#include "url/third_party/mozilla/url_parse.h"

namespace net {

namespace {

// Parses the proxy type from a PAC string, to a ProxyServer::Scheme.
// This mapping is case-insensitive. If no type could be matched
// returns SCHEME_INVALID.
ProxyServer::Scheme GetSchemeFromPacTypeInternal(std::string_view type) {}

std::string ConstructHostPortString(std::string_view hostname, uint16_t port) {}

std::tuple<std::string_view, std::string_view>
PacResultElementToSchemeAndHostPort(std::string_view pac_result_element) {}

}  // namespace

ProxyChain PacResultElementToProxyChain(std::string_view pac_result_element) {}

ProxyServer PacResultElementToProxyServer(std::string_view pac_result_element) {}

std::string ProxyServerToPacResultElement(const ProxyServer& proxy_server) {}

ProxyChain ProxyUriToProxyChain(std::string_view uri,
                                ProxyServer::Scheme default_scheme) {}

ProxyServer ProxyUriToProxyServer(std::string_view uri,
                                  ProxyServer::Scheme default_scheme) {}

std::string ProxyServerToProxyUri(const ProxyServer& proxy_server) {}

ProxyServer ProxySchemeHostAndPortToProxyServer(
    ProxyServer::Scheme scheme,
    std::string_view host_and_port) {}

ProxyServer::Scheme GetSchemeFromUriScheme(std::string_view scheme) {}

}  // namespace net