1 // Copyright 2021 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "components/metrics/structured/event_validator.h" 6 7 #include <cstdint> 8 9 namespace metrics { 10 namespace structured { 11 EventValidator(uint64_t event_hash)12EventValidator::EventValidator(uint64_t event_hash) : event_hash_(event_hash) {} 13 EventValidator::~EventValidator() = default; 14 event_hash() const15uint64_t EventValidator::event_hash() const { 16 return event_hash_; 17 } 18 19 } // namespace structured 20 } // namespace metrics 21