chromium/net/http/http_auth_filter.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/http/http_auth_filter.h"

#include "base/strings/string_util.h"
#include "url/gurl.h"
#include "url/scheme_host_port.h"

namespace net {

// TODO(ahendrickson) -- Determine if we want separate allowlists for HTTP and
// HTTPS, one for both, or only an HTTP one.  My understanding is that the HTTPS
// entries in the registry mean that you are only allowed to connect to the site
// via HTTPS and still be considered 'safe'.

HttpAuthFilterAllowlist::HttpAuthFilterAllowlist(
    const std::string& server_allowlist) {}

HttpAuthFilterAllowlist::~HttpAuthFilterAllowlist() = default;

// Add a new domain |filter| to the allowlist, if it's not already there
bool HttpAuthFilterAllowlist::AddFilter(const std::string& filter,
                                        HttpAuth::Target target) {}

bool HttpAuthFilterAllowlist::IsValid(
    const url::SchemeHostPort& scheme_host_port,
    HttpAuth::Target target) const {}

void HttpAuthFilterAllowlist::SetAllowlist(
    const std::string& server_allowlist) {}

}  // namespace net