chromium/components/history/core/browser/url_row.cc

// Copyright 2014 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/history/core/browser/url_row.h"

#include <algorithm>

#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "base/trace_event/memory_usage_estimator.h"

namespace history {

URLRow::URLRow() = default;

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

URLRow::URLRow(const GURL& url, URLID id) :{}

URLRow::URLRow(const URLRow& other) = default;

URLRow::URLRow(URLRow&& other) noexcept = default;

URLRow::~URLRow() = default;

URLRow& URLRow::operator=(const URLRow& other) = default;
URLRow& URLRow::operator=(URLRow&& other) noexcept = default;

void URLRow::Swap(URLRow* other) {}

size_t URLRow::EstimateMemoryUsage() const {}

// Annotations
// ----------------------------------------------------------
VisitContentModelAnnotations::Category::Category(const std::string& id,
                                                 int weight)
    :{}
VisitContentModelAnnotations::Category::Category() = default;

// static
std::optional<VisitContentModelAnnotations::Category>
VisitContentModelAnnotations::Category::FromStringVector(
    const std::vector<std::string>& vector) {}

std::string VisitContentModelAnnotations::Category::ToString() const {}

bool VisitContentModelAnnotations::Category::operator==(
    const VisitContentModelAnnotations::Category& other) const {}

bool VisitContentModelAnnotations::Category::operator!=(
    const VisitContentModelAnnotations::Category& other) const {}

VisitContentModelAnnotations::VisitContentModelAnnotations(
    float visibility_score,
    const std::vector<Category>& categories,
    int64_t page_topics_model_version,
    const std::vector<Category>& entities)
    :{}
VisitContentModelAnnotations::VisitContentModelAnnotations() = default;
VisitContentModelAnnotations::VisitContentModelAnnotations(
    const VisitContentModelAnnotations&) = default;
VisitContentModelAnnotations::~VisitContentModelAnnotations() = default;

// static
void VisitContentModelAnnotations::MergeCategoryIntoVector(
    const Category& category,
    std::vector<Category>* categories) {}

void VisitContentModelAnnotations::MergeFrom(
    const VisitContentModelAnnotations& other) {}

VisitContentAnnotations::VisitContentAnnotations(
    VisitContentAnnotationFlags annotation_flags,
    VisitContentModelAnnotations model_annotations,
    const std::vector<std::string>& related_searches,
    const GURL& search_normalized_url,
    const std::u16string& search_terms,
    const std::string& alternative_title,
    const std::string& page_language,
    PasswordState password_state,
    bool has_url_keyed_image)
    :{}
VisitContentAnnotations::VisitContentAnnotations() = default;
VisitContentAnnotations::VisitContentAnnotations(
    const VisitContentAnnotations&) = default;
VisitContentAnnotations::~VisitContentAnnotations() = default;

URLResult::URLResult() = default;

URLResult::URLResult(const GURL& url, base::Time visit_time)
    :{}

URLResult::URLResult(const URLRow& url_row) :{}

URLResult::URLResult(const URLResult& other) = default;

// TODO(bug 706963) this should be implemented as "= default" when Android
// toolchain is updated.
URLResult::URLResult(URLResult&& other) noexcept
    :{}

URLResult::~URLResult() = default;

URLResult& URLResult::operator=(const URLResult&) = default;

void URLResult::SwapResult(URLResult* other) {}

// static
bool URLResult::CompareVisitTime(const URLResult& lhs, const URLResult& rhs) {}

}  // namespace history