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

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

Issue 2585253002: Integration of PasswordReuseDetector into PasswordStore. (Closed)
Patch Set: more tests Created 4 years 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/password_manager_client.h
diff --git a/components/password_manager/core/browser/password_manager_client.h b/components/password_manager/core/browser/password_manager_client.h
index f0dfd13c56a4dc79ab71123fa2f0f1072edcb89b..27431bcbe4923dea5102049c006f349bbe1fb763 100644
--- a/components/password_manager/core/browser/password_manager_client.h
+++ b/components/password_manager/core/browser/password_manager_client.h
@@ -24,6 +24,7 @@ namespace password_manager {
class LogManager;
class PasswordFormManager;
class PasswordManager;
+class PasswordReuseDetectorConsumer;
class PasswordStore;
enum PasswordSyncState {
@@ -195,6 +196,15 @@ class PasswordManagerClient {
// Record that we saw a password field on this page.
virtual void AnnotateNavigationEntry(bool has_password_field);
+ // Checks that some suffix of |input| equals to a password saved on another
+ // registry controlled domain than |domain|.
+ // If such suffix is found, |consumer|->OnReuseFound() is called on the same
+ // thread on which this method is called.
+ // |consumer| should not be null.
vabr (Chromium) 2016/12/20 18:11:44 optional nit: should not -> may not
dvadym 2016/12/21 12:15:35 Done.
+ virtual void CheckReuse(const base::string16& input,
+ const std::string& domain,
+ PasswordReuseDetectorConsumer* consumer);
+
private:
DISALLOW_COPY_AND_ASSIGN(PasswordManagerClient);
};

Powered by Google App Engine
This is Rietveld 408576698