Index: components/password_manager/content/browser/credential_manager_dispatcher.h |
diff --git a/components/password_manager/content/browser/credential_manager_dispatcher.h b/components/password_manager/content/browser/credential_manager_dispatcher.h |
index 813fa9814204a3b0345d0c902bff2c6372a61e23..72119b7b2c45b097fcbefbc87bd35a2a4e2c9acd 100644 |
--- a/components/password_manager/content/browser/credential_manager_dispatcher.h |
+++ b/components/password_manager/content/browser/credential_manager_dispatcher.h |
@@ -30,8 +30,7 @@ class PasswordManagerDriver; |
class PasswordStore; |
struct CredentialInfo; |
-class CredentialManagerDispatcher : public content::WebContentsObserver, |
- public PasswordStoreConsumer { |
+class CredentialManagerDispatcher : public content::WebContentsObserver { |
public: |
CredentialManagerDispatcher(content::WebContents* web_contents, |
PasswordManagerClient* client); |
@@ -62,15 +61,13 @@ class CredentialManagerDispatcher : public content::WebContentsObserver, |
// content::WebContentsObserver implementation. |
bool OnMessageReceived(const IPC::Message& message) override; |
- // PasswordStoreConsumer implementation. |
- void OnGetPasswordStoreResults( |
- const std::vector<autofill::PasswordForm*>& results) override; |
- |
using CredentialCallback = |
base::Callback<void(const autofill::PasswordForm&)>; |
+ PasswordManagerClient* client() const { return client_; } |
+ |
private: |
- struct PendingRequestParameters; |
+ class PendingRequestTask; |
PasswordStore* GetPasswordStore(); |
@@ -89,7 +86,7 @@ class CredentialManagerDispatcher : public content::WebContentsObserver, |
// When 'OnRequestCredential' is called, it in turn calls out to the |
// PasswordStore; we store request details here in order to properly |
vabr (Chromium)
2015/01/29 14:04:34
nit: Should the comment be updated to cover the ne
|
// respond to the request once the PasswordStore gives us data. |
- scoped_ptr<PendingRequestParameters> pending_request_; |
+ scoped_ptr<PendingRequestTask> pending_request_; |
DISALLOW_COPY_AND_ASSIGN(CredentialManagerDispatcher); |
}; |