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: 5 14message HighLevelWebFeatures { 15 // Encoding of a subset of web features used on a webpage, as a bit 16 // vector to save storage space. 17 optional bytes bit_vector = 1; 18 19 // The max value in blink::mojom::WebDxFeature when the bit vector is encoded. 20 // This is used to distinguish between the case where a feature at an index 21 // existed but is unused by the client and the case where a feature wasn't 22 // yet defined for a Chrome client running an older binary. 23 optional int32 max_index = 4; 24 25 // The id of the Source that these web feature usage data is associated with. 26 optional int64 source_id = 2; 27 28 // Version of the encoding used. When WebFeature enum values have changed or 29 // been renumbered, the version number should be incremented. This is for 30 // supporting parsing of different encoding versions server-side. 31 optional uint32 encoding_version = 3 [default = 0]; 32} 33