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 4609930eefb4b9b464d88fde2d4675c368c8b71c..54f90c67eb66aa7ebbc37e32e84247e16895d980 100644 |
--- a/components/autofill/content/renderer/password_autofill_agent.h |
+++ b/components/autofill/content/renderer/password_autofill_agent.h |
@@ -11,6 +11,7 @@ |
#include "base/gtest_prod_util.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/memory/weak_ptr.h" |
+#include "components/autofill/core/common/form_data_predictions.h" |
#include "components/autofill/core/common/password_form_fill_data.h" |
#include "content/public/renderer/render_frame_observer.h" |
#include "content/public/renderer/render_view_observer.h" |
@@ -177,6 +178,8 @@ class PasswordAutofillAgent : public content::RenderFrameObserver { |
// RenderView IPC handlers: |
void OnFillPasswordForm(int key, const PasswordFormFillData& form_data); |
void OnSetLoggingState(bool active); |
+ void OnAutofillUsernameDataReceived( |
+ const std::map<autofill::FormData, autofill::FormFieldData>& predictions); |
// Scans the given frame for password forms and sends them up to the browser. |
// If |only_visible| is true, only forms visible in the layout are sent. |
@@ -278,6 +281,9 @@ class PasswordAutofillAgent : public content::RenderFrameObserver { |
// save password prompt on in-page navigations. |
bool save_password_on_in_page_navigation_; |
+ // Contains information which field is username for forms on the page. |
Ilya Sherman
2015/03/31 00:45:04
nit: "Contains server predictions for which field
dvadym
2015/03/31 09:54:03
Done.
|
+ std::map<autofill::FormData, autofill::FormFieldData> form_predictions_; |
+ |
base::WeakPtrFactory<PasswordAutofillAgent> weak_ptr_factory_; |
DISALLOW_COPY_AND_ASSIGN(PasswordAutofillAgent); |