Add configuration file proto in chromium
Syncing with the other sources when this is merged. Usage of this proto will be implemented in a following CL, breaking them up to make it easier to review. BUG=b:289117140 Change-Id: I96ee9ad9994a6886603c9372ff17254706a8fa86 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4804123 Commit-Queue: Hong Xu <xuhong@google.com> Commit-Queue: Alberto Juarez <albertojuarez@google.com> Reviewed-by: Hong Xu <xuhong@google.com> Auto-Submit: Alberto Juarez <albertojuarez@google.com> Cr-Commit-Position: refs/heads/main@{#1186724}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
60a623bef7
commit
3859e15177
components/reporting/proto
@@ -103,3 +103,11 @@ proto_library("upload_tracker_proto") {
|
|||||||
|
|
||||||
deps = [ ":status_proto" ]
|
deps = [ ":status_proto" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
proto_library("configuration_file_proto") {
|
||||||
|
proto_in_dir = "//"
|
||||||
|
|
||||||
|
sources = [ "synced/configuration_file.proto" ]
|
||||||
|
|
||||||
|
deps = [ ":record_constants" ]
|
||||||
|
}
|
||||||
|
32
components/reporting/proto/synced/configuration_file.proto
Normal file
32
components/reporting/proto/synced/configuration_file.proto
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
// Copyright 2023 The Chromium Authors
|
||||||
|
// Use of this source code is governed by a BSD-style license that can be
|
||||||
|
// found in the LICENSE file.
|
||||||
|
|
||||||
|
syntax = "proto2";
|
||||||
|
|
||||||
|
option optimize_for = LITE_RUNTIME;
|
||||||
|
|
||||||
|
package reporting;
|
||||||
|
|
||||||
|
import "components/reporting/proto/synced/record_constants.proto";
|
||||||
|
|
||||||
|
// Proto returned from the reporting server if requested by the client, this
|
||||||
|
// proto tells the client if any destinations should be blocked at the moment.
|
||||||
|
message ConfigFile {
|
||||||
|
// Blocked destinations.
|
||||||
|
repeated EventConfig event_configs = 1;
|
||||||
|
// Verified by the client to make sure that the response wasn't altered.
|
||||||
|
optional bytes config_file_signature = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Control by destination.
|
||||||
|
message EventConfig {
|
||||||
|
optional Destination destination = 1;
|
||||||
|
// Minimum version where a destination should be blocked.
|
||||||
|
// Inclusive. [minimum_release_version, current or maximum_release_version]
|
||||||
|
// If these fields are not included the destination will be blocked on
|
||||||
|
// all versions.
|
||||||
|
optional int32 minimum_release_version = 2;
|
||||||
|
// Maximum version where a destination should be blocked. See above.
|
||||||
|
optional int32 maximum_release_version = 3;
|
||||||
|
}
|
Reference in New Issue
Block a user