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