xref: /aosp_15_r20/external/cronet/third_party/metrics_proto/ukm/web_features.proto (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1// Copyright 2024 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
5syntax = "proto2";
6
7option optimize_for = LITE_RUNTIME;
8option java_package = "org.chromium.components.metrics";
9
10package ukm;
11
12// Tracks what high-level web features are used on a web page.
13// Next tag: 4
14// TODO(crbug.com/328627687): populate this field and add parsing utils.
15message HighLevelWebFeatures {
16  // Encoding of a subset of web features used on a webpage, as a bit
17  // vector to save storage space.
18  optional bytes bit_vector = 1;
19  // The id of the Source that these web feature usage data is associated with.
20  optional int64 source_id = 2;
21  // Version of the encoding used. When WebFeature enum values have changed or
22  // been renumbered, the version number should be incremented. This is for
23  // supporting parsing of different encoding versions server-side.
24  optional uint32 encoding_version = 3 [default = 0];
25}
26