chromium/components/proxy_config/proxy_config_dictionary.cc

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

#include "components/proxy_config/proxy_config_dictionary.h"

#include <memory>
#include <utility>

#include "base/check.h"
#include "net/base/proxy_server.h"
#include "net/base/proxy_string_util.h"
#include "net/proxy_resolution/proxy_config.h"

namespace {

// Integer to specify the type of proxy settings.
// See ProxyPrefs for possible values and interactions with the other proxy
// preferences.
const char kProxyMode[] =;
// String specifying the proxy server. For a specification of the expected
// syntax see net::ProxyConfig::ProxyRules::ParseFromString().
const char kProxyServer[] =;
// URL to the proxy .pac file.
const char kProxyPacUrl[] =;
// Optional boolean flag indicating whether a valid PAC script is mandatory.
// If true, network traffic does not fall back to direct connections in case the
// PAC script is not available.
const char kProxyPacMandatory[] =;
// String containing proxy bypass rules. For a specification of the
// expected syntax see net::ProxyBypassRules::ParseFromString().
const char kProxyBypassList[] =;

}  // namespace

ProxyConfigDictionary::ProxyConfigDictionary(base::Value::Dict dict)
    :{}

ProxyConfigDictionary::ProxyConfigDictionary(ProxyConfigDictionary&& other) {}

ProxyConfigDictionary::~ProxyConfigDictionary() = default;

bool ProxyConfigDictionary::GetMode(ProxyPrefs::ProxyMode* out) const {}

bool ProxyConfigDictionary::GetPacUrl(std::string* out) const {}

bool ProxyConfigDictionary::GetPacMandatory(bool* out) const {}

bool ProxyConfigDictionary::GetProxyServer(std::string* out) const {}

bool ProxyConfigDictionary::GetBypassList(std::string* out) const {}

bool ProxyConfigDictionary::HasBypassList() const {}

const base::Value::Dict& ProxyConfigDictionary::GetDictionary() const {}

// static
base::Value::Dict ProxyConfigDictionary::CreateDirect() {}

// static
base::Value::Dict ProxyConfigDictionary::CreateAutoDetect() {}

// static
base::Value::Dict ProxyConfigDictionary::CreatePacScript(
    const std::string& pac_url,
    bool pac_mandatory) {}

// static
base::Value::Dict ProxyConfigDictionary::CreateFixedServers(
    const std::string& proxy_server,
    const std::string& bypass_list) {}

// static
base::Value::Dict ProxyConfigDictionary::CreateSystem() {}

// static
base::Value::Dict ProxyConfigDictionary::CreateDictionary(
    ProxyPrefs::ProxyMode mode,
    const std::string& pac_url,
    bool pac_mandatory,
    const std::string& proxy_server,
    const std::string& bypass_list) {}

// static
void ProxyConfigDictionary::EncodeAndAppendProxyServer(
    const std::string& url_scheme,
    const net::ProxyServer& server,
    std::string* spec) {}

bool ProxyConfigDictionary::GetString(const char* key, std::string* out) const {}