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

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

Issue 707173004: Refactor Autofill for out of process iframes (OOPIF). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mem leak Created 6 years 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
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 b508cef471041bbfd62bffae06d04d56f42048da..fc8cac86e97cfcf83ddd0ae75783ace44beffd95 100644
--- a/components/password_manager/content/browser/content_credential_manager_dispatcher.h
+++ b/components/password_manager/content/browser/content_credential_manager_dispatcher.h
@@ -25,6 +25,7 @@ namespace password_manager {
class CredentialManagerPasswordFormManager;
class PasswordManagerClient;
+class PasswordManagerDriver;
class PasswordStore;
struct CredentialInfo;
@@ -55,6 +56,11 @@ class ContentCredentialManagerDispatcher : public CredentialManagerDispatcher,
void OnGetPasswordStoreResults(
const std::vector<autofill::PasswordForm*>& results) override;
+ // For testing only.
+ void set_password_manager_driver(PasswordManagerDriver* driver) {
+ driver_ = driver;
+ }
+
using CredentialCallback =
base::Callback<void(const autofill::PasswordForm&)>;
@@ -64,6 +70,7 @@ class ContentCredentialManagerDispatcher : public CredentialManagerDispatcher,
void SendCredential(int request_id, const CredentialInfo& info);
PasswordManagerClient* client_;
+ PasswordManagerDriver* driver_;
scoped_ptr<CredentialManagerPasswordFormManager> form_manager_;
// When 'OnRequestCredential' is called, it in turn calls out to the

Powered by Google App Engine
This is Rietveld 408576698