| 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 | 9 |
| 9 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 10 #include "components/autofill/content/common/autofill_param_traits_macros.h" | 11 #include "components/autofill/content/common/autofill_param_traits_macros.h" |
| 11 #include "components/autofill/core/common/form_data.h" | 12 #include "components/autofill/core/common/form_data.h" |
| 12 #include "components/autofill/core/common/form_data_predictions.h" | 13 #include "components/autofill/core/common/form_data_predictions.h" |
| 13 #include "components/autofill/core/common/form_field_data.h" | 14 #include "components/autofill/core/common/form_field_data.h" |
| 14 #include "components/autofill/core/common/form_field_data_predictions.h" | 15 #include "components/autofill/core/common/form_field_data_predictions.h" |
| 15 #include "components/autofill/core/common/forms_seen_state.h" | 16 #include "components/autofill/core/common/forms_seen_state.h" |
| 16 #include "components/autofill/core/common/password_form.h" | 17 #include "components/autofill/core/common/password_form.h" |
| 17 #include "components/autofill/core/common/password_form_fill_data.h" | 18 #include "components/autofill/core/common/password_form_fill_data.h" |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 // autocomplete with the |form_data| values input by the user. | 153 // autocomplete with the |form_data| values input by the user. |
| 153 IPC_MESSAGE_ROUTED2(AutofillMsg_RequestAutocompleteResult, | 154 IPC_MESSAGE_ROUTED2(AutofillMsg_RequestAutocompleteResult, |
| 154 blink::WebFormElement::AutocompleteResult /* result */, | 155 blink::WebFormElement::AutocompleteResult /* result */, |
| 155 autofill::FormData /* form_data */) | 156 autofill::FormData /* form_data */) |
| 156 | 157 |
| 157 // Sent when Autofill manager gets the query response from the Autofill server | 158 // Sent when Autofill manager gets the query response from the Autofill server |
| 158 // and there are fields classified as ACCOUNT_CREATION_PASSWORD in the response. | 159 // and there are fields classified as ACCOUNT_CREATION_PASSWORD in the response. |
| 159 IPC_MESSAGE_ROUTED1(AutofillMsg_AccountCreationFormsDetected, | 160 IPC_MESSAGE_ROUTED1(AutofillMsg_AccountCreationFormsDetected, |
| 160 std::vector<autofill::FormData> /* forms */) | 161 std::vector<autofill::FormData> /* forms */) |
| 161 | 162 |
| 163 // Instruct the renderer that a password suggestion has to be removed. |
| 164 // The renderer is going to clear the username-to-form map it keeps and |
| 165 // then ask the password manager to remove the password from the store. |
| 166 IPC_MESSAGE_ROUTED0(AutofillMsg_RemoveSavedPassword) |
| 167 |
| 162 // Autofill messages sent from the renderer to the browser. | 168 // Autofill messages sent from the renderer to the browser. |
| 163 | 169 |
| 164 // TODO(creis): check in the browser that the renderer actually has permission | 170 // TODO(creis): check in the browser that the renderer actually has permission |
| 165 // for the URL to avoid compromised renderers talking to the browser. | 171 // for the URL to avoid compromised renderers talking to the browser. |
| 166 | 172 |
| 167 // Notification that forms have been seen that are candidates for | 173 // Notification that forms have been seen that are candidates for |
| 168 // filling/submitting by the AutofillManager. | 174 // filling/submitting by the AutofillManager. |
| 169 IPC_MESSAGE_ROUTED3(AutofillHostMsg_FormsSeen, | 175 IPC_MESSAGE_ROUTED3(AutofillHostMsg_FormsSeen, |
| 170 std::vector<autofill::FormData> /* forms */, | 176 std::vector<autofill::FormData> /* forms */, |
| 171 base::TimeTicks /* timestamp */, | 177 base::TimeTicks /* timestamp */, |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 autofill::PasswordFormFillData /* password pairings */) | 256 autofill::PasswordFormFillData /* password pairings */) |
| 251 | 257 |
| 252 // Instruct the browser to show a popup with the following suggestions from the | 258 // Instruct the browser to show a popup with the following suggestions from the |
| 253 // password manager. | 259 // password manager. |
| 254 IPC_MESSAGE_ROUTED4(AutofillHostMsg_ShowPasswordSuggestions, | 260 IPC_MESSAGE_ROUTED4(AutofillHostMsg_ShowPasswordSuggestions, |
| 255 autofill::FormFieldData /* the form field */, | 261 autofill::FormFieldData /* the form field */, |
| 256 gfx::RectF /* input field bounds, window-relative */, | 262 gfx::RectF /* input field bounds, window-relative */, |
| 257 std::vector<base::string16> /* suggestions */, | 263 std::vector<base::string16> /* suggestions */, |
| 258 std::vector<base::string16> /* realms */) | 264 std::vector<base::string16> /* realms */) |
| 259 | 265 |
| 266 // Instruct the browser that a saved password has to be removed. |
| 267 IPC_MESSAGE_ROUTED1(AutofillHostMsg_RemoveSavedPasswordAndUpdateManagers, |
| 268 autofill::PasswordForm /* the password form */) |
| 269 |
| 260 // Inform browser of data list values for the curent field. | 270 // Inform browser of data list values for the curent field. |
| 261 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, | 271 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, |
| 262 std::vector<base::string16> /* values */, | 272 std::vector<base::string16> /* values */, |
| 263 std::vector<base::string16> /* labels */) | 273 std::vector<base::string16> /* labels */) |
| OLD | NEW |