chromium/out/Default/gen/chrome/common/extensions/api/history.cc

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

// GENERATED FROM THE API DEFINITION IN
//   chrome/common/extensions/api/history.json
// by tools/json_schema_compiler.
// DO NOT EDIT.

#include "chrome/common/extensions/api/history.h"

#include <memory>
#include <optional>
#include <ostream>
#include <string>
#include <string_view>
#include <utility>
#include <vector>

#include "base/check.h"
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "tools/json_schema_compiler/util.h"
#include <string_view>


UTF8ToUTF16;

namespace extensions {
namespace api {
namespace history {
//
// Types
//

const char* ToString(TransitionType enum_param) {}

TransitionType ParseTransitionType(std::string_view enum_string) {}

std::u16string GetTransitionTypeParseError(std::string_view enum_string) {}


HistoryItem::HistoryItem()
 {}

HistoryItem::~HistoryItem() = default;
HistoryItem::HistoryItem(HistoryItem&& rhs) noexcept = default;
HistoryItem& HistoryItem::operator=(HistoryItem&& rhs) noexcept = default;
HistoryItem HistoryItem::Clone() const {}

// static
bool HistoryItem::Populate(
    const base::Value::Dict& dict, HistoryItem& out) {}

// static
bool HistoryItem::Populate(
    const base::Value& value, HistoryItem& out) {}

// static
std::optional<HistoryItem> HistoryItem::FromValue(const base::Value::Dict& value) {}

// static
std::optional<HistoryItem> HistoryItem::FromValue(const base::Value& value) {}

base::Value::Dict HistoryItem::ToValue() const {}


VisitItem::VisitItem()
:{}

VisitItem::~VisitItem() = default;
VisitItem::VisitItem(VisitItem&& rhs) noexcept = default;
VisitItem& VisitItem::operator=(VisitItem&& rhs) noexcept = default;
VisitItem VisitItem::Clone() const {}

// static
bool VisitItem::Populate(
    const base::Value::Dict& dict, VisitItem& out) {}

// static
bool VisitItem::Populate(
    const base::Value& value, VisitItem& out) {}

// static
std::optional<VisitItem> VisitItem::FromValue(const base::Value::Dict& value) {}

// static
std::optional<VisitItem> VisitItem::FromValue(const base::Value& value) {}

base::Value::Dict VisitItem::ToValue() const {}


UrlDetails::UrlDetails()
 {}

UrlDetails::~UrlDetails() = default;
UrlDetails::UrlDetails(UrlDetails&& rhs) noexcept = default;
UrlDetails& UrlDetails::operator=(UrlDetails&& rhs) noexcept = default;
UrlDetails UrlDetails::Clone() const {}

// static
bool UrlDetails::Populate(
    const base::Value::Dict& dict, UrlDetails& out) {}

// static
bool UrlDetails::Populate(
    const base::Value& value, UrlDetails& out) {}

// static
std::optional<UrlDetails> UrlDetails::FromValue(const base::Value::Dict& value) {}

// static
std::optional<UrlDetails> UrlDetails::FromValue(const base::Value& value) {}

base::Value::Dict UrlDetails::ToValue() const {}



//
// Functions
//

namespace Search {

Params::Query::Query()
 {}

Params::Query::~Query() = default;
Params::Query::Query(Query&& rhs) noexcept = default;
Params::Query& Params::Query::operator=(Query&& rhs) noexcept = default;
Params::Query Params::Query::Clone() const {}

// static
bool Params::Query::Populate(
    const base::Value::Dict& dict, Query& out) {}

// static
bool Params::Query::Populate(
    const base::Value& value, Query& out) {}

// static
std::optional<Params::Query> Params::Query::FromValue(const base::Value::Dict& value) {}

// static
std::optional<Params::Query> Params::Query::FromValue(const base::Value& value) {}


Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create(const std::vector<HistoryItem>& results) {}
}  // namespace Search

namespace GetVisits {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create(const std::vector<VisitItem>& results) {}
}  // namespace GetVisits

namespace AddUrl {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create() {}
}  // namespace AddUrl

namespace DeleteUrl {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create() {}
}  // namespace DeleteUrl

namespace DeleteRange {

Params::Range::Range()
:{}

Params::Range::~Range() = default;
Params::Range::Range(Range&& rhs) noexcept = default;
Params::Range& Params::Range::operator=(Range&& rhs) noexcept = default;
Params::Range Params::Range::Clone() const {}

// static
bool Params::Range::Populate(
    const base::Value::Dict& dict, Range& out) {}

// static
bool Params::Range::Populate(
    const base::Value& value, Range& out) {}

// static
std::optional<Params::Range> Params::Range::FromValue(const base::Value::Dict& value) {}

// static
std::optional<Params::Range> Params::Range::FromValue(const base::Value& value) {}


Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create() {}
}  // namespace DeleteRange

namespace DeleteAll {

base::Value::List Results::Create() {}
}  // namespace DeleteAll

//
// Events
//

namespace OnVisited {

const char kEventName[] =;

base::Value::List Create(const HistoryItem& result) {}

}  // namespace OnVisited

namespace OnVisitRemoved {

const char kEventName[] =;

Removed::Removed()
:{}

Removed::~Removed() = default;
Removed::Removed(Removed&& rhs) noexcept = default;
Removed& Removed::operator=(Removed&& rhs) noexcept = default;
base::Value::Dict Removed::ToValue() const {}


base::Value::List Create(const Removed& removed) {}

}  // namespace OnVisitRemoved

}  // namespace history
}  // namespace api
}  // namespace extensions