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

Unified Diff: components/autofill/content/common/autofill_messages.h

Issue 1153023004: Prepare the infrastructure for password overrides. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed the test. Created 5 years, 7 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
« no previous file with comments | « components/autofill.gypi ('k') | components/autofill/content/renderer/password_autofill_agent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/content/common/autofill_messages.h
diff --git a/components/autofill/content/common/autofill_messages.h b/components/autofill/content/common/autofill_messages.h
index 4c3ec108c7c26621c2dbda6e0362080c3a723184..ad5b5b7f1615318b164f32800a5d55a9ec90a5eb 100644
--- a/components/autofill/content/common/autofill_messages.h
+++ b/components/autofill/content/common/autofill_messages.h
@@ -15,6 +15,7 @@
#include "components/autofill/core/common/form_field_data.h"
#include "components/autofill/core/common/form_field_data_predictions.h"
#include "components/autofill/core/common/password_form.h"
+#include "components/autofill/core/common/password_form_field_prediction_map.h"
#include "components/autofill/core/common/password_form_fill_data.h"
#include "components/autofill/core/common/web_element_descriptor.h"
#include "content/public/common/common_param_traits.h"
@@ -31,6 +32,10 @@
IPC_ENUM_TRAITS_MAX_VALUE(autofill::FormFieldData::RoleAttribute,
autofill::FormFieldData::ROLE_ATTRIBUTE_OTHER)
+IPC_ENUM_TRAITS_MAX_VALUE(
+ autofill::PasswordFormFieldPredictionType,
+ autofill::PasswordFormFieldPredictionType::PREDICTION_MAX)
+
IPC_ENUM_TRAITS_MAX_VALUE(base::i18n::TextDirection,
base::i18n::TEXT_DIRECTION_NUM_DIRECTIONS - 1)
@@ -108,8 +113,8 @@ IPC_ENUM_TRAITS_MAX_VALUE(
// IPC_MESSAGE macros fail on the std::map, when expanding. We need to define
// a type to avoid that.
-using FormDataFieldDataMap =
- std::map<autofill::FormData, autofill::FormFieldData>;
+using FormsPredictionsMap =
+ std::map<autofill::FormData, autofill::PasswordFormFieldPredictionMap>;
#endif // COMPONENTS_AUTOFILL_CONTENT_COMMON_AUTOFILL_MESSAGES_H_
@@ -207,10 +212,10 @@ IPC_MESSAGE_ROUTED1(AutofillMsg_AccountCreationFormsDetected,
std::vector<autofill::FormData> /* forms */)
// Sent when Autofill manager gets the query response from the Autofill server
-// which contains information about username fields for some forms.
+// which contains information about username and password fields for some forms.
// |predictions| maps forms to their username fields.
-IPC_MESSAGE_ROUTED1(AutofillMsg_AutofillUsernameDataReceived,
- FormDataFieldDataMap /* predictions */)
+IPC_MESSAGE_ROUTED1(AutofillMsg_AutofillUsernameAndPasswordDataReceived,
+ FormsPredictionsMap /* predictions */)
// Autofill messages sent from the renderer to the browser.
« no previous file with comments | « components/autofill.gypi ('k') | components/autofill/content/renderer/password_autofill_agent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698