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. |
dcheng
2016/07/12 14:22:12
What's the lifetime relationship? Does AutofillAge
leonhsl(Using Gerrit)
2016/07/13 03:48:31
Both of them are observers of the same render fram
|
+ |
DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); |
}; |