#include "src/trace_redaction/trace_redactor.h"
#include <cstddef>
#include <string>
#include <string_view>
#include "perfetto/base/status.h"
#include "perfetto/ext/base/file_utils.h"
#include "perfetto/ext/base/scoped_file.h"
#include "perfetto/ext/base/scoped_mmap.h"
#include "perfetto/protozero/scattered_heap_buffer.h"
#include "perfetto/trace_processor/trace_blob.h"
#include "perfetto/trace_processor/trace_blob_view.h"
#include "src/trace_processor/util/status_macros.h"
#include "src/trace_redaction/broadphase_packet_filter.h"
#include "src/trace_redaction/collect_frame_cookies.h"
#include "src/trace_redaction/collect_system_info.h"
#include "src/trace_redaction/collect_timeline_events.h"
#include "src/trace_redaction/find_package_uid.h"
#include "src/trace_redaction/merge_threads.h"
#include "src/trace_redaction/populate_allow_lists.h"
#include "src/trace_redaction/prune_package_list.h"
#include "src/trace_redaction/redact_ftrace_events.h"
#include "src/trace_redaction/redact_process_events.h"
#include "src/trace_redaction/redact_process_trees.h"
#include "src/trace_redaction/scrub_process_stats.h"
#include "src/trace_redaction/trace_redaction_framework.h"
#include "src/trace_redaction/verify_integrity.h"
#include "protos/perfetto/trace/trace.pbzero.h"
namespace perfetto::trace_redaction {
Trace;
TracePacket;
TraceRedactor::TraceRedactor() = default;
TraceRedactor::~TraceRedactor() = default;
base::Status TraceRedactor::Redact(std::string_view source_filename,
std::string_view dest_filename,
Context* context) const { … }
base::Status TraceRedactor::Collect(
Context* context,
const trace_processor::TraceBlobView& view) const { … }
base::Status TraceRedactor::Transform(
const Context& context,
const trace_processor::TraceBlobView& view,
const std::string& dest_file) const { … }
std::unique_ptr<TraceRedactor> TraceRedactor::CreateInstance(
const Config& config) { … }
}