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

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

Issue 496703002: Credential Manager: Stub out the browser-side IPC handlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 4 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 | « components/password_manager/content/common/credential_manager_messages.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « components/password_manager/content/common/credential_manager_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698