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

Unified Diff: components/autofill/content/renderer/password_autofill_agent.h

Issue 2007473004: [Autofill] Migrate ContentAutofillDriver<-->AutofillAgent IPCs to mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initialize remote_interfaces_ in Init() Created 4 years, 5 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
Index: components/autofill/content/renderer/password_autofill_agent.h
diff --git a/components/autofill/content/renderer/password_autofill_agent.h b/components/autofill/content/renderer/password_autofill_agent.h
index bc26b4fd7631bfb56ebf925ed41c6aa20096f182..9a28887ee896a86c55eba2a35a60ed7426500c6e 100644
--- a/components/autofill/content/renderer/password_autofill_agent.h
+++ b/components/autofill/content/renderer/password_autofill_agent.h
@@ -10,6 +10,8 @@
#include <vector>
#include "base/macros.h"
+#include "components/autofill/content/public/interfaces/autofill_driver.mojom.h"
+#include "components/autofill/content/renderer/autofill_agent.h"
#include "components/autofill/content/renderer/password_form_conversion_utils.h"
#include "components/autofill/core/common/form_data_predictions.h"
#include "components/autofill/core/common/password_form_field_prediction_map.h"
@@ -34,6 +36,8 @@ class PasswordAutofillAgent : public content::RenderFrameObserver {
explicit PasswordAutofillAgent(content::RenderFrame* render_frame);
~PasswordAutofillAgent() override;
+ void SetAutofillAgent(AutofillAgent* autofill_agent);
+
// WebFrameClient editor related calls forwarded by AutofillAgent.
// If they return true, it indicates the event was consumed and should not
// be used for any other autofill activity.
@@ -224,6 +228,8 @@ class PasswordAutofillAgent : public content::RenderFrameObserver {
// Helper function called when in-page navigation completed
void OnSamePageNavigationCompleted();
+ const mojom::AutofillDriverPtr& GetAutofillDriver();
+
// The logins we have filled so far with their associated info.
WebInputToPasswordInfoMap web_input_to_password_info_;
// A (sort-of) reverse map to |login_to_password_info_|.
@@ -255,6 +261,8 @@ class PasswordAutofillAgent : public content::RenderFrameObserver {
// fields for individual forms.
FormsPredictionsMap form_predictions_;
+ AutofillAgent* autofill_agent_; // Weak reference.
+
DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent);
};

Powered by Google App Engine
This is Rietveld 408576698