29 lines
870 B
C++
29 lines
870 B
C++
// 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/project_validator.h"
|
|
|
|
#include <cstdint>
|
|
|
|
#include "components/metrics/structured/enums.h"
|
|
|
|
namespace metrics {
|
|
namespace structured {
|
|
|
|
ProjectValidator::ProjectValidator(uint64_t project_hash,
|
|
IdType id_type,
|
|
IdScope id_scope,
|
|
EventType event_type,
|
|
int key_rotation_period)
|
|
: project_hash_(project_hash),
|
|
id_type_(id_type),
|
|
id_scope_(id_scope),
|
|
event_type_(event_type),
|
|
key_rotation_period_(key_rotation_period) {}
|
|
|
|
ProjectValidator::~ProjectValidator() = default;
|
|
|
|
} // namespace structured
|
|
} // namespace metrics
|