Commit 2c62bb5d authored by Sebastien Marchand's avatar Sebastien Marchand Committed by Commit Bot

RC: Add the Intervention Policy Database proto.

Bug: 773383
Change-Id: Ibf4bb5fe5881248489d01bf52fc6100f31c9266c
Reviewed-on: https://chromium-review.googlesource.com/1099681
Commit-Queue: Sébastien Marchand <sebmarchand@chromium.org>
Reviewed-by: default avatarChris Hamilton <chrisha@chromium.org>
Cr-Commit-Position: refs/heads/master@{#567114}
parent 18f77504
...@@ -23,3 +23,9 @@ mojom("mojo_bindings") { ...@@ -23,3 +23,9 @@ mojom("mojo_bindings") {
"lifecycle_unit_state.mojom", "lifecycle_unit_state.mojom",
] ]
} }
proto_library("intervention_policy_database_proto") {
sources = [
"intervention_policy_database.proto",
]
}
syntax = "proto2";
option optimize_for = LITE_RUNTIME;
// Information about an origin and the intervention it supports.
// Next Id: 4
message OriginInterventions {
// The MD5 hash of the origin, the value used to generate this hash
// should be the ‘host’ part of the origin, e.g. in
// “http://example.com/foo” the host is “example.com”.
required string host_hash = 1;
// Policy associated with an intervention. A DEFAULT value indicates
// that the existing heuristics should be applied.
enum InterventionPolicy {
OPT_IN = 0;
OPT_OUT = 1;
DEFAULT = 2;
}
// The discarding policy.
required InterventionPolicy discarding_policy = 2;
// The freezing policy.
required InterventionPolicy freezing_policy = 3;
}
// The database that contains all the origins and the interventions they
// support.
// Next Id: 2
message OriginInterventionsDatabase {
repeated OriginInterventions origin_interventions = 1;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment