Chromium Code Reviews| 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 | 8 |
|
vabr (Chromium)
2014/04/04 10:51:40
nit: #include <vector> seems appropriate here.
Thi
| |
| 9 #include "base/time/time.h" | 9 #include "base/time/time.h" |
| 10 #include "components/autofill/content/common/autofill_param_traits_macros.h" | 10 #include "components/autofill/content/common/autofill_param_traits_macros.h" |
| 11 #include "components/autofill/core/common/form_data.h" | 11 #include "components/autofill/core/common/form_data.h" |
| 12 #include "components/autofill/core/common/form_data_predictions.h" | 12 #include "components/autofill/core/common/form_data_predictions.h" |
| 13 #include "components/autofill/core/common/form_field_data.h" | 13 #include "components/autofill/core/common/form_field_data.h" |
| 14 #include "components/autofill/core/common/form_field_data_predictions.h" | 14 #include "components/autofill/core/common/form_field_data_predictions.h" |
| 15 #include "components/autofill/core/common/forms_seen_state.h" | 15 #include "components/autofill/core/common/forms_seen_state.h" |
| 16 #include "components/autofill/core/common/password_form.h" | 16 #include "components/autofill/core/common/password_form.h" |
| 17 #include "components/autofill/core/common/password_form_fill_data.h" | 17 #include "components/autofill/core/common/password_form_fill_data.h" |
| 18 #include "components/autofill/core/common/web_element_descriptor.h" | 18 #include "components/autofill/core/common/web_element_descriptor.h" |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 152 // autocomplete with the |form_data| values input by the user. | 152 // autocomplete with the |form_data| values input by the user. |
| 153 IPC_MESSAGE_ROUTED2(AutofillMsg_RequestAutocompleteResult, | 153 IPC_MESSAGE_ROUTED2(AutofillMsg_RequestAutocompleteResult, |
| 154 blink::WebFormElement::AutocompleteResult /* result */, | 154 blink::WebFormElement::AutocompleteResult /* result */, |
| 155 autofill::FormData /* form_data */) | 155 autofill::FormData /* form_data */) |
| 156 | 156 |
| 157 // Sent when Autofill manager gets the query response from the Autofill server | 157 // 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. | 158 // and there are fields classified as ACCOUNT_CREATION_PASSWORD in the response. |
| 159 IPC_MESSAGE_ROUTED1(AutofillMsg_AccountCreationFormsDetected, | 159 IPC_MESSAGE_ROUTED1(AutofillMsg_AccountCreationFormsDetected, |
| 160 std::vector<autofill::FormData> /* forms */) | 160 std::vector<autofill::FormData> /* forms */) |
| 161 | 161 |
| 162 // Instruct the renderer that a password suggestion has to be removed. | |
| 163 // The renderer is going to clean the suggestion from the ui and | |
| 164 // then ask the password manager to remove the password from the store. | |
| 165 IPC_MESSAGE_ROUTED1(AutofillMsg_RemovePasswordSuggestion, | |
| 166 base::string16 /*user name to be removed */) | |
| 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 password suggestion has to be removed. | |
|
vabr (Chromium)
2014/04/04 10:51:40
Actually, it's not a password suggestion, we like
rchtara
2014/04/04 16:07:20
Done.
| |
| 267 // Send also a list of forms that need to be updated after the deletion | |
|
vabr (Chromium)
2014/04/04 10:51:40
Missing full-stop (period).
rchtara
2014/04/04 16:07:20
Done.
| |
| 268 IPC_MESSAGE_ROUTED2(AutofillHostMsg_RemovePasswordSuggestion, | |
| 269 autofill::PasswordForm /* the password form */, | |
| 270 std::vector<autofill::PasswordForm> /* password | |
| 271 forms to be updated */) | |
| 272 | |
| 260 // Inform browser of data list values for the curent field. | 273 // Inform browser of data list values for the curent field. |
| 261 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, | 274 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, |
| 262 std::vector<base::string16> /* values */, | 275 std::vector<base::string16> /* values */, |
| 263 std::vector<base::string16> /* labels */) | 276 std::vector<base::string16> /* labels */) |
| OLD | NEW |