chromium/components/page_load_metrics/renderer/page_timing_metadata_recorder.cc

// Copyright 2020 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/page_load_metrics/renderer/page_timing_metadata_recorder.h"

#include <cstdint>
#include <string_view>

namespace page_load_metrics {
namespace {
bool IsTimeTicksRangeSensible(base::TimeTicks start, base::TimeTicks end) {}
}  // namespace

// The next instance id to use for a PageTimingMetadataRecorder.
uint32_t g_next_instance_id =;

PageTimingMetadataRecorder::MonotonicTiming::MonotonicTiming() = default;
PageTimingMetadataRecorder::MonotonicTiming::MonotonicTiming(
    const MonotonicTiming&) = default;
PageTimingMetadataRecorder::MonotonicTiming&
PageTimingMetadataRecorder::MonotonicTiming::operator=(const MonotonicTiming&) =
    default;
PageTimingMetadataRecorder::MonotonicTiming::MonotonicTiming(
    MonotonicTiming&&) = default;
PageTimingMetadataRecorder::MonotonicTiming&
PageTimingMetadataRecorder::MonotonicTiming::operator=(MonotonicTiming&&) =
    default;

PageTimingMetadataRecorder::PageTimingMetadataRecorder(
    const MonotonicTiming& initial_timing,
    const bool is_main_frame)
    :{}

PageTimingMetadataRecorder::~PageTimingMetadataRecorder() = default;

void PageTimingMetadataRecorder::UpdateMetadata(const MonotonicTiming& timing) {}

void PageTimingMetadataRecorder::ApplyMetadataToPastSamples(
    base::TimeTicks period_start,
    base::TimeTicks period_end,
    std::string_view name,
    int64_t key,
    int64_t value,
    base::SampleMetadataScope scope) {}

void PageTimingMetadataRecorder::UpdateFirstInputDelayMetadata(
    const std::optional<base::TimeTicks>& first_input_timestamp,
    const std::optional<base::TimeDelta>& first_input_delay) {}

void PageTimingMetadataRecorder::UpdateFirstContentfulPaintMetadata(
    const std::optional<base::TimeTicks>& navigation_start,
    const std::optional<base::TimeTicks>& first_contentful_paint) {}

int64_t PageTimingMetadataRecorder::CreateInteractionDurationMetadataKey(
    const uint32_t instance_id,
    const uint32_t interaction_id) {}

void PageTimingMetadataRecorder::AddInteractionDurationMetadata(
    const base::TimeTicks interaction_start,
    const base::TimeTicks interaction_end) {}

void PageTimingMetadataRecorder::AddInteractionDurationAfterQueueingMetadata(
    const base::TimeTicks interaction_start,
    const base::TimeTicks interaction_queued_main_thread,
    const base::TimeTicks interaction_commit_finish,
    const base::TimeTicks interaction_end) {}

void PageTimingMetadataRecorder::UpdateLargestContentfulPaintMetadata(
    const std::optional<base::TimeTicks>& navigation_start,
    const std::optional<base::TimeTicks>& largest_contentful_paint) {}

}  // namespace page_load_metrics