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

Unified Diff: components/password_manager/core/browser/affiliated_match_helper.h

Issue 1615653005: [Password manager] Human readable origins for Android credentials on chrome://settings/passwords (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Transfer multi-request logic from PasswordStore to AffiliatedMatchHelper Created 4 years, 10 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
Index: components/password_manager/core/browser/affiliated_match_helper.h
diff --git a/components/password_manager/core/browser/affiliated_match_helper.h b/components/password_manager/core/browser/affiliated_match_helper.h
index a13e9ea2e76624f515c6ff0b637ccdc3a51da83c..4d3017af937810075341a5be43112956da086d56 100644
--- a/components/password_manager/core/browser/affiliated_match_helper.h
+++ b/components/password_manager/core/browser/affiliated_match_helper.h
@@ -81,6 +81,13 @@ class AffiliatedMatchHelper : public PasswordStore::Observer,
const autofill::PasswordForm& android_form,
const AffiliatedRealmsCallback& result_callback);
+ // Retrieves realms of web sites affiliated with the Android credentials in
+ // |forms|, sets realms to form's |affiliated_web_realm| and invokes
+ // |result_callback|.
+ void FillAffiliatedWebRealms(
+ const ScopedVector<autofill::PasswordForm>& forms,
+ const base::Closure& result_callback);
+
// Removes cached affiliation data that is no longer needed.
void TrimAffiliationCache();
@@ -125,6 +132,14 @@ class AffiliatedMatchHelper : public PasswordStore::Observer,
const AffiliatedFacets& results,
bool success);
+ // Called back by AffiliationService to supply the list of facets affiliated
+ // with the Android credentials in |form|. Sets |form->affiliated_web_realm|,
+ // if |success| is true and |results| is non-empty. Invokes |barrier_closure|.
+ void FillAffiliatedWebRealm(autofill::PasswordForm* form,
+ base::Closure barrier_closure,
+ const AffiliatedFacets& results,
+ bool success);
+
// PasswordStore::Observer:
void OnLoginsChanged(const PasswordStoreChangeList& changes) override;

Powered by Google App Engine
This is Rietveld 408576698