1 /* This file might later be auto-generated */
2 
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4  * License, v. 2.0. If a copy of the MPL was not distributed with this
5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 
7 #ifndef mozilla_TelemetryOriginEnums_h
8 #define mozilla_TelemetryOriginEnums_h
9 
10 #include <stdint.h>
11 
12 namespace mozilla {
13 namespace Telemetry {
14 
15 enum class OriginMetricID : uint32_t {
16   // category: content.blocking
17   ContentBlocking_Blocked = 0,
18   ContentBlocking_Blocked_TestOnly = 1,
19   ContentBlocking_StorageAccessAPIExempt = 2,
20   ContentBlocking_StorageAccessAPIExempt_TestOnly = 3,
21   ContentBlocking_OpenerAfterUserInteractionExempt = 4,
22   ContentBlocking_OpenerAfterUserInteractionExempt_TestOnly = 5,
23   ContentBlocking_OpenerExempt = 6,
24   ContentBlocking_OpenerExempt_TestOnly = 7,
25   // category: telemetry.test
26   TelemetryTest_Test1 = 8,
27   TelemetryTest_Test2 = 9,
28   // meta
29   Count = 10,
30 };
31 
32 static const char* const MetricIDToString[10] = {
33     "content.blocking_blocked",
34     "content.blocking_blocked_TESTONLY",
35     "content.blocking_storage_access_api_exempt",
36     "content.blocking_storage_access_api_exempt_TESTONLY",
37     "content.blocking_opener_after_user_interaction_exempt",
38     "content.blocking_opener_after_user_interaction_exempt_TESTONLY",
39     "content.blocking_opener_exempt",
40     "content.blocking_opener_exempt_TESTONLY",
41     "telemetry.test_test1",
42     "telemetry.test_test2",
43 };
44 
45 }  // namespace Telemetry
46 }  // namespace mozilla
47 
48 #endif  // mozilla_TelemetryOriginEnums_h
49