chromium/components/autofill/core/browser/logging/text_log_receiver.cc

// Copyright 2022 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/autofill/core/browser/logging/text_log_receiver.h"

#include "base/logging.h"
#include "base/notreached.h"
#include "base/ranges/algorithm.h"
#include "base/strings/strcat.h"

namespace autofill {

namespace {

std::vector<std::string> RenderEntries(const base::Value::List& entries);

// Renders an HTML element to text at a best effort basis.
// This is a bit like calling Element.textContent on a DOM node and not super
// fancy but sufficient for debugging.
std::vector<std::string> RenderElement(const base::Value::Dict& entry) {}

// Returns a text node to a vector with a single element representing the text.
std::vector<std::string> RenderText(const base::Value::Dict& entry) {}

// Concatenates the rendered contents of a document fragment into a vector of
// strings.
std::vector<std::string> RenderFragment(const base::Value::Dict& entry) {}

// Entry point into the rendering, you can pass any json object generated
// by the log buffer and it will dispatch the rendering to the correct
// functions.
// The output is a vector of strings that can be concatenated.
std::vector<std::string> RenderEntry(const base::Value::Dict& entry) {}

// Concatenates the rendered contents of a list of log entries.
std::vector<std::string> RenderEntries(const base::Value::List& entries) {}

}  // namespace

std::string TextLogReceiver::LogEntryToText(
    const base::Value::Dict& entry) const {}

void TextLogReceiver::LogEntry(const base::Value::Dict& entry) {}

}  // namespace autofill