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 99f1282258cbf8a7f39a5c327fab276a2ea89664..474469115eaa056f45dcedae3024ed9113fbf7d9 100644 |
--- a/components/password_manager/core/browser/password_manager_client.h |
+++ b/components/password_manager/core/browser/password_manager_client.h |
@@ -14,6 +14,7 @@ class PrefService; |
namespace password_manager { |
+struct CredentialInfo; |
class PasswordFormManager; |
class PasswordManagerDriver; |
class PasswordStore; |
@@ -114,6 +115,24 @@ class PasswordManagerClient { |
virtual PasswordStore::AuthorizationPromptPolicy GetAuthorizationPromptPolicy( |
const autofill::PasswordForm& form); |
+ // Called in response to an IPC from the renderer, triggered by a page's call |
+ // to 'navigator.credentials.notifyFailedSignIn'. |
+ virtual void OnNotifyFailedSignIn(int request_id, const CredentialInfo&) {} |
+ |
+ // Called in response to an IPC from the renderer, triggered by a page's call |
+ // to 'navigator.credentials.notifySignedIn'. |
+ virtual void OnNotifySignedIn(int request_id, const CredentialInfo&) {} |
+ |
+ // Called in response to an IPC from the renderer, triggered by a page's call |
+ // to 'navigator.credentials.notifySignedOut'. |
+ virtual void OnNotifySignedOut(int request_id) {} |
+ |
+ // Called in response to an IPC from the renderer, triggered by a page's call |
+ // to 'navigator.credentials.request'. |
+ virtual void OnRequestCredential(int request_id, |
+ bool zero_click_only, |
+ const std::vector<GURL>& federations) {} |
+ |
private: |
DISALLOW_COPY_AND_ASSIGN(PasswordManagerClient); |
}; |