#include "components/page_content_annotations/core/page_content_annotations_common.h"
#include <algorithm>
#include <ostream>
#include "base/check_op.h"
#include "base/json/json_writer.h"
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
namespace page_content_annotations {
WeightedIdentifier::WeightedIdentifier(int32_t value, double weight)
: … { … }
WeightedIdentifier::WeightedIdentifier(const WeightedIdentifier&) = default;
WeightedIdentifier::~WeightedIdentifier() = default;
bool WeightedIdentifier::operator==(const WeightedIdentifier& other) const { … }
std::string WeightedIdentifier::ToString() const { … }
base::Value WeightedIdentifier::AsValue() const { … }
std::ostream& operator<<(std::ostream& stream, const WeightedIdentifier& ws) { … }
BatchAnnotationResult::BatchAnnotationResult() = default;
BatchAnnotationResult::BatchAnnotationResult(const BatchAnnotationResult&) =
default;
BatchAnnotationResult::~BatchAnnotationResult() = default;
bool BatchAnnotationResult::HasOutputForType() const { … }
base::Value BatchAnnotationResult::AsValue() const { … }
std::string BatchAnnotationResult::ToJSON() const { … }
std::string BatchAnnotationResult::ToString() const { … }
std::ostream& operator<<(std::ostream& stream,
const BatchAnnotationResult& result) { … }
BatchAnnotationResult BatchAnnotationResult::CreateContentVisibilityResult(
const std::string& input,
std::optional<double> visibility_score) { … }
BatchAnnotationResult BatchAnnotationResult::CreateEmptyAnnotationsResult(
const std::string& input) { … }
bool BatchAnnotationResult::operator==(
const BatchAnnotationResult& other) const { … }
std::vector<BatchAnnotationResult> CreateEmptyBatchAnnotationResults(
const std::vector<std::string>& inputs) { … }
PageContentAnnotationsResult
PageContentAnnotationsResult::CreateContentVisibilityScoreResult(
const PageContentAnnotationsResult::ContentVisibilityScore& score) { … }
PageContentAnnotationsResult::PageContentAnnotationsResult() = default;
PageContentAnnotationsResult::PageContentAnnotationsResult(
const PageContentAnnotationsResult&) = default;
PageContentAnnotationsResult& PageContentAnnotationsResult::operator=(
const PageContentAnnotationsResult&) = default;
PageContentAnnotationsResult::~PageContentAnnotationsResult() = default;
AnnotationType PageContentAnnotationsResult::GetType() const { … }
PageContentAnnotationsResult::ContentVisibilityScore
PageContentAnnotationsResult::GetContentVisibilityScore() const { … }
}