#include "net/proxy_resolution/proxy_config.h"
#include <memory>
#include <utility>
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/strings/string_tokenizer.h"
#include "base/strings/string_util.h"
#include "base/values.h"
#include "net/base/proxy_server.h"
#include "net/base/proxy_string_util.h"
#include "net/proxy_resolution/proxy_info.h"
namespace net {
namespace {
void AddProxyListToValue(const char* name,
const ProxyList& proxies,
base::Value::Dict* dict) { … }
void AddProxyURIListToProxyList(std::string uri_list,
ProxyList* proxy_list,
ProxyServer::Scheme default_scheme) { … }
}
ProxyConfig::ProxyRules::ProxyRules() = default;
ProxyConfig::ProxyRules::ProxyRules(const ProxyRules& other) = default;
ProxyConfig::ProxyRules::~ProxyRules() = default;
void ProxyConfig::ProxyRules::Apply(const GURL& url, ProxyInfo* result) const { … }
void ProxyConfig::ProxyRules::ParseFromString(const std::string& proxy_rules) { … }
const ProxyList* ProxyConfig::ProxyRules::MapUrlSchemeToProxyList(
const std::string& url_scheme) const { … }
bool ProxyConfig::ProxyRules::Equals(const ProxyRules& other) const { … }
ProxyList* ProxyConfig::ProxyRules::MapUrlSchemeToProxyListNoFallback(
const std::string& scheme) { … }
const ProxyList* ProxyConfig::ProxyRules::GetProxyListForWebSocketScheme()
const { … }
ProxyConfig::ProxyConfig() = default;
ProxyConfig::ProxyConfig(const ProxyConfig& config) = default;
ProxyConfig::~ProxyConfig() = default;
ProxyConfig& ProxyConfig::operator=(const ProxyConfig& config) = default;
bool ProxyConfig::Equals(const ProxyConfig& other) const { … }
bool ProxyConfig::HasAutomaticSettings() const { … }
void ProxyConfig::ClearAutomaticSettings() { … }
base::Value ProxyConfig::ToValue() const { … }
}