Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(393)

Unified Diff: components/password_manager/core/browser/affiliation_api.proto

Issue 996613002: Update AffiliationFetcher to use new wire format. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/password_manager/core/browser/affiliation_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/password_manager/core/browser/affiliation_api.proto
diff --git a/components/password_manager/core/browser/affiliation_api.proto b/components/password_manager/core/browser/affiliation_api.proto
index 2431b1b1024390d056b617363664e29c6171ce2a..353ab69b26dca94215c266ef1181f514dc4c188b 100644
--- a/components/password_manager/core/browser/affiliation_api.proto
+++ b/components/password_manager/core/browser/affiliation_api.proto
@@ -10,13 +10,33 @@ option optimize_for = LITE_RUNTIME;
// A collection of facets affiliated with each other, i.e. an equivalence class.
message Affiliation {
- repeated string facet = 1;
+ repeated Facet facet = 1;
+}
+
+message Facet {
+ // The URI of the facet.
+ optional string id = 1;
+ optional BrandingInfo branding_info = 2;
+}
+
+message BrandingInfo {
+ optional string name = 1;
+ optional string icon_url = 2;
+}
+
+// Specifies what additional information to return with the response.
+message LookupAffiliationMask {
+ // Whether or not to fill |branding_info| for returned Facets.
+ optional bool branding_info = 1;
+ // The locale to use for |branding_info.name| for returned Facets.
+ optional string locale = 2;
}
// Encapsulates a lookup request to the Affiliation API.
message LookupAffiliationRequest {
// The facet URIs to query.
repeated string facet = 1;
+ optional LookupAffiliationMask mask = 2;
}
// Encapsulates a lookup response from the the Affiliation API.
« no previous file with comments | « no previous file | components/password_manager/core/browser/affiliation_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698