blob: f2be0cfd375288427bd67f897e003cb40b3f1335 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_METRICS_STRUCTURED_ENUMS_H_
#define COMPONENTS_METRICS_STRUCTURED_ENUMS_H_
#include "third_party/metrics_proto/structured_data.pb.h"
namespace metrics {
namespace structured {
using EventType = StructuredEventProto_EventType;
// Specifies the type of identifier attached to an event.
enum class IdType {
// Events are attached to a per-event (or per-project) id.
kProjectId = 0,
// Events are attached to the UMA client_id.
kUmaId = 1,
// Events are attached to no id.
kUnidentified = 2,
};
// Specifies whether an identifier is used different for each profile, or is
// shared for all profiles on a device.
enum class IdScope {
kPerProfile = 0,
kPerDevice = 1,
};
} // namespace structured
} // namespace metrics
#endif // COMPONENTS_METRICS_STRUCTURED_ENUMS_H_
|