chromium/url/scheme_host_port.cc

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

#include "url/scheme_host_port.h"

#include <stdint.h>
#include <string.h>

#include <ostream>
#include <string_view>
#include <tuple>

#include "base/check_op.h"
#include "base/containers/contains.h"
#include "base/notreached.h"
#include "base/numerics/safe_conversions.h"
#include "base/strings/string_number_conversions.h"
#include "base/trace_event/memory_usage_estimator.h"
#include "url/gurl.h"
#include "url/third_party/mozilla/url_parse.h"
#include "url/url_canon.h"
#include "url/url_canon_stdstring.h"
#include "url/url_constants.h"
#include "url/url_features.h"
#include "url/url_util.h"

namespace url {

namespace {

bool IsCanonicalHost(const std::string_view& host) {}

// Note: When changing IsValidInput, consider also updating
// ShouldTreatAsOpaqueOrigin in Blink (there might be existing differences in
// behavior between these 2 layers, but we should avoid introducing new
// differences).
bool IsValidInput(const std::string_view& scheme,
                  const std::string_view& host,
                  uint16_t port,
                  SchemeHostPort::ConstructPolicy policy) {}

}  // namespace

SchemeHostPort::SchemeHostPort() = default;

SchemeHostPort::SchemeHostPort(std::string scheme,
                               std::string host,
                               uint16_t port,
                               ConstructPolicy policy) {}

SchemeHostPort::SchemeHostPort(std::string_view scheme,
                               std::string_view host,
                               uint16_t port)
    :{}

SchemeHostPort::SchemeHostPort(const GURL& url) {}

SchemeHostPort::~SchemeHostPort() = default;

bool SchemeHostPort::IsValid() const {}

std::string SchemeHostPort::Serialize() const {}

GURL SchemeHostPort::GetURL() const {}

size_t SchemeHostPort::EstimateMemoryUsage() const {}

bool SchemeHostPort::operator<(const SchemeHostPort& other) const {}

std::string SchemeHostPort::SerializeInternal(url::Parsed* parsed) const {}

bool SchemeHostPort::ShouldDiscardHostAndPort(const std::string_view scheme) {}

std::ostream& operator<<(std::ostream& out,
                         const SchemeHostPort& scheme_host_port) {}

}  // namespace url