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