chromium/components/metrics/structured/event.cc

// Copyright 2021 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/metrics/structured/event.h"

#include <map>
#include <memory>
#include <string>

#include "base/uuid.h"
#include "base/values.h"

namespace metrics::structured {

Event::MetricValue::MetricValue(MetricType type, base::Value value)
    :{}

Event::MetricValue::MetricValue(Event::MetricValue&& other) = default;
Event::MetricValue& Event::MetricValue::operator=(Event::MetricValue&& other) =
    default;

bool Event::MetricValue::operator==(const Event::MetricValue& rhs) const {}

Event::MetricValue::~MetricValue() = default;

Event::EventSequenceMetadata::EventSequenceMetadata(int reset_counter)
    :{}

Event::EventSequenceMetadata::EventSequenceMetadata(
    const Event::EventSequenceMetadata& other) = default;
Event::EventSequenceMetadata& Event::EventSequenceMetadata::operator=(
    const Event::EventSequenceMetadata& other) = default;

Event::EventSequenceMetadata::~EventSequenceMetadata() = default;

Event::Event() = default;
Event::Event(const std::string& project_name, const std::string& event_name)
    :{}
Event::Event(const std::string& project_name,
             const std::string& event_name,
             bool is_event_sequence)
    :{}

Event::~Event() = default;

Event::Event(Event&& other)
    :{}

Event& Event::operator=(Event&& other) {}

bool Event::IsEventSequenceType() const {}

Event Event::Clone() const {}

const Event::EventSequenceMetadata& Event::event_sequence_metadata() const {}

const base::TimeDelta Event::recorded_time_since_boot() const {}

bool Event::AddMetric(const std::string& metric_name,
                      Event::MetricType type,
                      base::Value&& value) {}

void Event::SetEventSequenceMetadata(
    const Event::EventSequenceMetadata& event_sequence_metadata) {}

void Event::SetRecordedTimeSinceBoot(base::TimeDelta recorded_time_since_boot) {}

}  // namespace metrics::structured