Chromium Code Reviews| 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); |
| }; |