Chromium Code Reviews| 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..1617201df4eb3f09a0944b2d9abbaf11264f7d2d 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& GetMojoAutofillDriver(); |
|
Ken Rockot(use gerrit already)
2016/07/07 04:52:32
nit: Please avoid adding "Mojo" to symbol names. G
leonhsl(Using Gerrit)
2016/07/07 10:56:57
Done.
|
| + |
| // 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); |
| }; |