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 #include "event_validator.h" 9 10 namespace metrics { 11 namespace structured { 12 EventValidator(uint64_t event_hash,bool force_record)13EventValidator::EventValidator(uint64_t event_hash, bool force_record) 14 : event_hash_(event_hash), force_record_(force_record) {} 15 EventValidator::~EventValidator() = default; 16 event_hash() const17uint64_t EventValidator::event_hash() const { 18 return event_hash_; 19 } 20 can_force_record() const21bool EventValidator::can_force_record() const { 22 return force_record_; 23 } 24 25 } // namespace structured 26 } // namespace metrics 27