| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Multiply-included message file, hence no include guard. | 5 // Multiply-included message file, hence no include guard. |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "components/autofill/content/common/autofill_param_traits_macros.h" | 12 #include "components/autofill/content/common/autofill_param_traits_macros.h" |
| 13 #include "components/autofill/core/common/form_data.h" | 13 #include "components/autofill/core/common/form_data.h" |
| 14 #include "components/autofill/core/common/form_data_predictions.h" | 14 #include "components/autofill/core/common/form_data_predictions.h" |
| 15 #include "components/autofill/core/common/form_field_data.h" | 15 #include "components/autofill/core/common/form_field_data.h" |
| 16 #include "components/autofill/core/common/form_field_data_predictions.h" | 16 #include "components/autofill/core/common/form_field_data_predictions.h" |
| 17 #include "components/autofill/core/common/forms_seen_state.h" | 17 #include "components/autofill/core/common/forms_seen_state.h" |
| 18 #include "components/autofill/core/common/password_form.h" | 18 #include "components/autofill/core/common/password_form.h" |
| 19 #include "components/autofill/core/common/password_form_fill_data.h" | 19 #include "components/autofill/core/common/password_form_fill_data.h" |
| 20 #include "components/autofill/core/common/save_password_progress_logger.h" |
| 20 #include "components/autofill/core/common/web_element_descriptor.h" | 21 #include "components/autofill/core/common/web_element_descriptor.h" |
| 21 #include "content/public/common/common_param_traits.h" | 22 #include "content/public/common/common_param_traits.h" |
| 22 #include "content/public/common/common_param_traits_macros.h" | 23 #include "content/public/common/common_param_traits_macros.h" |
| 23 #include "ipc/ipc_message_macros.h" | 24 #include "ipc/ipc_message_macros.h" |
| 24 #include "ipc/ipc_message_utils.h" | 25 #include "ipc/ipc_message_utils.h" |
| 25 #include "third_party/WebKit/public/web/WebFormElement.h" | 26 #include "third_party/WebKit/public/web/WebFormElement.h" |
| 26 #include "ui/gfx/rect.h" | 27 #include "ui/gfx/rect.h" |
| 27 #include "url/gurl.h" | 28 #include "url/gurl.h" |
| 28 | 29 |
| 29 #define IPC_MESSAGE_START AutofillMsgStart | 30 #define IPC_MESSAGE_START AutofillMsgStart |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 IPC_STRUCT_TRAITS_MEMBER(other_possible_usernames) | 86 IPC_STRUCT_TRAITS_MEMBER(other_possible_usernames) |
| 86 IPC_STRUCT_TRAITS_MEMBER(wait_for_username) | 87 IPC_STRUCT_TRAITS_MEMBER(wait_for_username) |
| 87 IPC_STRUCT_TRAITS_END() | 88 IPC_STRUCT_TRAITS_END() |
| 88 | 89 |
| 89 IPC_STRUCT_TRAITS_BEGIN(autofill::PasswordAndRealm) | 90 IPC_STRUCT_TRAITS_BEGIN(autofill::PasswordAndRealm) |
| 90 IPC_STRUCT_TRAITS_MEMBER(password) | 91 IPC_STRUCT_TRAITS_MEMBER(password) |
| 91 IPC_STRUCT_TRAITS_MEMBER(realm) | 92 IPC_STRUCT_TRAITS_MEMBER(realm) |
| 92 IPC_STRUCT_TRAITS_END() | 93 IPC_STRUCT_TRAITS_END() |
| 93 | 94 |
| 94 IPC_ENUM_TRAITS_MAX_VALUE( | 95 IPC_ENUM_TRAITS_MAX_VALUE( |
| 96 autofill::SavePasswordProgressLogger::StructuredLog::LogType, |
| 97 autofill::SavePasswordProgressLogger::StructuredLog::LogType::LOG_TYPE_MAX) |
| 98 |
| 99 IPC_ENUM_TRAITS_MAX_VALUE(autofill::SavePasswordProgressLogger::StringID, |
| 100 autofill::SavePasswordProgressLogger::STRING_MAX) |
| 101 |
| 102 IPC_STRUCT_TRAITS_BEGIN(autofill::SavePasswordProgressLogger::StructuredLog) |
| 103 IPC_STRUCT_TRAITS_MEMBER(log_type) |
| 104 IPC_STRUCT_TRAITS_MEMBER(label) |
| 105 IPC_STRUCT_TRAITS_MEMBER(url) |
| 106 IPC_STRUCT_TRAITS_MEMBER(message) |
| 107 IPC_STRUCT_TRAITS_MEMBER(number) |
| 108 IPC_STRUCT_TRAITS_MEMBER(truth_value) |
| 109 IPC_STRUCT_TRAITS_MEMBER(element_id) |
| 110 IPC_STRUCT_TRAITS_END() |
| 111 |
| 112 IPC_ENUM_TRAITS_MAX_VALUE( |
| 95 blink::WebFormElement::AutocompleteResult, | 113 blink::WebFormElement::AutocompleteResult, |
| 96 blink::WebFormElement::AutocompleteResultErrorInvalid) | 114 blink::WebFormElement::AutocompleteResultErrorInvalid) |
| 97 | 115 |
| 98 // Autofill messages sent from the browser to the renderer. | 116 // Autofill messages sent from the browser to the renderer. |
| 99 | 117 |
| 100 // Instructs the renderer to fill the active form with the given form data. | 118 // Instructs the renderer to fill the active form with the given form data. |
| 101 IPC_MESSAGE_ROUTED2(AutofillMsg_FillForm, | 119 IPC_MESSAGE_ROUTED2(AutofillMsg_FillForm, |
| 102 int /* query_id */, | 120 int /* query_id */, |
| 103 autofill::FormData /* form */) | 121 autofill::FormData /* form */) |
| 104 | 122 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 199 |
| 182 // Notification that initial layout has occurred and the following password | 200 // Notification that initial layout has occurred and the following password |
| 183 // forms are visible on the page (e.g. not set to display:none.) | 201 // forms are visible on the page (e.g. not set to display:none.) |
| 184 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsRendered, | 202 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormsRendered, |
| 185 std::vector<autofill::PasswordForm> /* forms */) | 203 std::vector<autofill::PasswordForm> /* forms */) |
| 186 | 204 |
| 187 // Notification that this password form was submitted by the user. | 205 // Notification that this password form was submitted by the user. |
| 188 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormSubmitted, | 206 IPC_MESSAGE_ROUTED1(AutofillHostMsg_PasswordFormSubmitted, |
| 189 autofill::PasswordForm /* form */) | 207 autofill::PasswordForm /* form */) |
| 190 | 208 |
| 191 // Notification that logs during saving the password have been gathered. | 209 // Sends the collected logs to browser for sanitization and displaying to the |
| 192 IPC_MESSAGE_ROUTED1(AutofillHostMsg_RecordSavePasswordProgress, | 210 // user. |
| 193 std::string /* log */) | 211 IPC_MESSAGE_ROUTED1( |
| 212 AutofillHostMsg_RecordSavePasswordProgress, |
| 213 std::vector<autofill::SavePasswordProgressLogger::StructuredLog> /* logs */) |
| 194 | 214 |
| 195 // Notification that a form has been submitted. The user hit the button. | 215 // Notification that a form has been submitted. The user hit the button. |
| 196 IPC_MESSAGE_ROUTED2(AutofillHostMsg_FormSubmitted, | 216 IPC_MESSAGE_ROUTED2(AutofillHostMsg_FormSubmitted, |
| 197 autofill::FormData /* form */, | 217 autofill::FormData /* form */, |
| 198 base::TimeTicks /* timestamp */) | 218 base::TimeTicks /* timestamp */) |
| 199 | 219 |
| 200 // Notification that a form field's value has changed. | 220 // Notification that a form field's value has changed. |
| 201 IPC_MESSAGE_ROUTED3(AutofillHostMsg_TextFieldDidChange, | 221 IPC_MESSAGE_ROUTED3(AutofillHostMsg_TextFieldDidChange, |
| 202 autofill::FormData /* the form */, | 222 autofill::FormData /* the form */, |
| 203 autofill::FormFieldData /* the form field */, | 223 autofill::FormFieldData /* the form field */, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 IPC_MESSAGE_ROUTED4(AutofillHostMsg_ShowPasswordSuggestions, | 281 IPC_MESSAGE_ROUTED4(AutofillHostMsg_ShowPasswordSuggestions, |
| 262 autofill::FormFieldData /* the form field */, | 282 autofill::FormFieldData /* the form field */, |
| 263 gfx::RectF /* input field bounds, window-relative */, | 283 gfx::RectF /* input field bounds, window-relative */, |
| 264 std::vector<base::string16> /* suggestions */, | 284 std::vector<base::string16> /* suggestions */, |
| 265 std::vector<base::string16> /* realms */) | 285 std::vector<base::string16> /* realms */) |
| 266 | 286 |
| 267 // Inform browser of data list values for the curent field. | 287 // Inform browser of data list values for the curent field. |
| 268 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, | 288 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, |
| 269 std::vector<base::string16> /* values */, | 289 std::vector<base::string16> /* values */, |
| 270 std::vector<base::string16> /* labels */) | 290 std::vector<base::string16> /* labels */) |
| OLD | NEW |