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 #ifndef COMPONENTS_METRICS_STRUCTURED_ENUMS_H_ 6 #define COMPONENTS_METRICS_STRUCTURED_ENUMS_H_ 7 8 #include "third_party/metrics_proto/structured_data.pb.h" 9 10 namespace metrics { 11 namespace structured { 12 13 using EventType = StructuredEventProto_EventType; 14 15 // Specifies the type of identifier attached to an event. 16 enum class IdType { 17 // Events are attached to a per-event (or per-project) id. 18 kProjectId = 0, 19 // Events are attached to the UMA client_id. 20 kUmaId = 1, 21 // Events are attached to no id. 22 kUnidentified = 2, 23 }; 24 25 // Specifies whether an identifier is used different for each profile, or is 26 // shared for all profiles on a device. 27 enum class IdScope { 28 kPerProfile = 0, 29 kPerDevice = 1, 30 }; 31 32 } // namespace structured 33 } // namespace metrics 34 35 #endif // COMPONENTS_METRICS_STRUCTURED_ENUMS_H_ 36