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

Unified Diff: components/password_manager/content/browser/content_credential_manager_dispatcher.h

Issue 615863002: Credential Manager: Stub out call to PasswordStore. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 6 years, 3 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 | « no previous file | components/password_manager/content/browser/content_credential_manager_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/password_manager/content/browser/content_credential_manager_dispatcher.h
diff --git a/components/password_manager/content/browser/content_credential_manager_dispatcher.h b/components/password_manager/content/browser/content_credential_manager_dispatcher.h
index 56217c6539602d97ed1a8a450fe988afbfd8e9e5..62360682795705dce5dacba7270140ee3c9596c6 100644
--- a/components/password_manager/content/browser/content_credential_manager_dispatcher.h
+++ b/components/password_manager/content/browser/content_credential_manager_dispatcher.h
@@ -7,10 +7,15 @@
#include "base/macros.h"
#include "components/password_manager/core/browser/credential_manager_dispatcher.h"
+#include "components/password_manager/core/browser/password_store_consumer.h"
#include "content/public/browser/web_contents_observer.h"
class GURL;
+namespace autofill {
+struct PasswordForm;
+}
+
namespace content {
class WebContents;
}
@@ -18,10 +23,12 @@ class WebContents;
namespace password_manager {
class PasswordManagerClient;
+class PasswordStore;
struct CredentialInfo;
class ContentCredentialManagerDispatcher : public CredentialManagerDispatcher,
- public content::WebContentsObserver {
+ public content::WebContentsObserver,
+ public PasswordStoreConsumer {
public:
// |client| isn't yet used by this class, but is necessary for the next step:
// wiring this up as a subclass of PasswordStoreConsumer.
@@ -42,12 +49,23 @@ class ContentCredentialManagerDispatcher : public CredentialManagerDispatcher,
bool zero_click_only,
const std::vector<GURL>& federations) OVERRIDE;
- // content::WebContentsObserver overrides.
+ // content::WebContentsObserver implementation.
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+ // PasswordStoreConsumer implementation.
+ virtual void OnGetPasswordStoreResults(
+ const std::vector<autofill::PasswordForm*>& results) OVERRIDE;
+
private:
+ PasswordStore* GetPasswordStore();
+
PasswordManagerClient* client_;
+ // When 'OnRequestCredential' is called, it in turn calls out to the
+ // PasswordStore; we store the request ID here in order to properly respond
+ // to the request once the PasswordStore gives us data.
+ int pending_request_id_;
+
DISALLOW_COPY_AND_ASSIGN(ContentCredentialManagerDispatcher);
};
« no previous file with comments | « no previous file | components/password_manager/content/browser/content_credential_manager_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698