Commit 6f6e253a authored by Jan Wilken Dörrie's avatar Jan Wilken Dörrie Committed by Commit Bot

[Passwords] Update affiliation_api.proto

This change updates Chromium's copy of the affiliation_api.proto to the
most recent version from the server (http://shortn/_IVIGZCTREH).

Bug: 437865
Change-Id: I3634fdc0ad17679268a433ba1c88af983233b39e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2302174
Auto-Submit: Jan Wilken Dörrie <jdoerrie@chromium.org>
Commit-Queue: Vasilii Sukhanov <vasilii@chromium.org>
Reviewed-by: default avatarVasilii Sukhanov <vasilii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#789431}
parent 5172a979
......@@ -8,39 +8,132 @@ package affiliation_pb;
option optimize_for = LITE_RUNTIME;
// A collection of facets affiliated with each other, i.e. an equivalence class.
// Contains a list of affiliated facets.
// Affiliated facets are allowed to share credentials among each other.
message Affiliation {
// See the top level comment.
repeated Facet facet = 1;
reserved 2;
}
// A website or Android app within the affiliation.
message Facet {
// The URI of the facet.
// URL the uniquely identifies the website or Android app.
optional string id = 1;
// Branding info for this Facet.
optional BrandingInfo branding_info = 2;
// Top private domain of a facet. Exists only if facet ID refers to a website
// (starts with "http://" or "https://").
// See go/internet-domain-name for Top Private Domain definition.
// If no top private domain can be calculated (e.g. for IP addresses), then
// the domain in the facet ID is returned without changes.
// Examples (facet ID -> main_domain):
// http://www.facebook.com -> facebook.com
// https://google.com -> google.com
// http://192.168.0.1 -> 192.168.0.1
// http://somethinginvalid$%#^ -> somethinginvalid$%#^
// android://xyz@com.facebook -> field is not populated
optional string main_domain = 3;
}
// Message representing set of facets that should be grouped together in the UI.
message FacetGroup {
// Set of facets that can be grouped together in the UI.
// Do no use this for credential sharing - Affiliation.facet field is intended
// for that.
// Also, see the top level comment of Affiliation message.
repeated Facet facet = 1;
// Branding info (display name and the icon info) for the Group.
optional GroupBrandingInfo group_branding_info = 2;
}
// Branding info (display name and the icon info) for an affiliated group.
message GroupBrandingInfo {
// Display name of the group.
optional string name = 1;
// Eliding info for the name.
optional BrandingInfo.ElideInfo elide_info = 5;
// Icon URL of the group.
optional string icon_url = 2;
// Width and height of the icon. These fields are populated only when we're
// able to find or detect them.
optional int32 icon_width = 3;
optional int32 icon_height = 4;
}
// Branding info for a single facet.
message BrandingInfo {
enum ElideInfo {
UNKNOWN_ELIDE = 0;
// Elide the name from the front if it doesn't fit.
// Example: "https://www.facebook.evildomain.com" -> "...ook.evildomain.com"
ELIDE_FROM_FRONT = 1;
// Elide the name from the back if it doesn't fit.
// Example: "Facebook - The awesome app" -> "Facebook - The awe..."
ELIDE_FROM_BACK = 2;
}
// Display name.
optional string name = 1;
// Eliding info for the name.
optional ElideInfo elide_info = 6;
// Icon URL.
optional string icon_url = 2;
// Width and height of the icon. These fields are populated only when we're
// able to find or detect them.
optional int32 icon_width = 4;
optional int32 icon_height = 5;
}
// Specifies what additional information to return with the response.
// Request mask for LookupAffiliationRequest.
message LookupAffiliationMask {
// Whether or not to fill |branding_info| for returned Facets.
// If true, branding info for Android apps will be returned.
optional bool branding_info = 1;
// The locale to use for |branding_info.name| for returned Facets.
// Preferred size of the icon returned in BrandingInfo or
// GroupBrandingInfo. Applies both to width and height of the image.
// This field can be set only if at least one of branding_info or
// affiliation_branding_info is set to true.
optional int32 preferred_icon_size = 4;
// If set, the display name for the specified locale will be returned.
optional string locale = 2;
// If true, insecure affiliation (e.g. with HTTP websites) will be returned.
// Note that this does not affect the returned grouping information.
optional bool insecure_affiliation = 3;
// If true the information required for password grouping.
optional bool grouping_info = 6;
// If true, an instance of GroupBrandingInfo will be populated in the
// grouping response. Can be set only if grouping_info and branding_info is
// set to true.
optional bool group_branding_info = 5;
}
// Encapsulates a lookup request to the Affiliation API.
// Request message for AffiliationService.Lookup.
message LookupAffiliationRequest {
// The facet URIs to query.
// Facet IDs to query.
repeated string facet = 1;
// Request mask.
optional LookupAffiliationMask mask = 2;
}
// Encapsulates a lookup response from the the Affiliation API.
// Response message for AffiliationService.Lookup.
message LookupAffiliationResponse {
// For each queried facet, the corresponding equivalence class, if any.
// Affiliations containing the requested facets.
repeated Affiliation affiliation = 1;
}
\ No newline at end of file
// Information required for grouping facets in the UI.
repeated FacetGroup group = 2;
}
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