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/password_form.h" | 17 #include "components/autofill/core/common/password_form.h" |
18 #include "components/autofill/core/common/password_form_field_prediction_map.h" | 18 #include "components/autofill/core/common/password_form_field_prediction_map.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/password_form_generation_data.h" | 20 #include "components/autofill/core/common/password_form_generation_data.h" |
21 #include "content/public/common/common_param_traits.h" | 21 #include "content/public/common/common_param_traits.h" |
22 #include "content/public/common/common_param_traits_macros.h" | 22 #include "content/public/common/common_param_traits_macros.h" |
23 #include "ipc/ipc_message_macros.h" | 23 #include "ipc/ipc_message_macros.h" |
24 #include "ipc/ipc_message_utils.h" | 24 #include "ipc/ipc_message_utils.h" |
25 #include "third_party/WebKit/public/web/WebFormElement.h" | |
26 #include "ui/gfx/geometry/rect_f.h" | 25 #include "ui/gfx/geometry/rect_f.h" |
27 #include "ui/gfx/ipc/gfx_param_traits.h" | 26 #include "ui/gfx/ipc/gfx_param_traits.h" |
28 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" | 27 #include "ui/gfx/ipc/skia/gfx_skia_param_traits.h" |
29 #include "url/gurl.h" | 28 #include "url/gurl.h" |
30 | 29 |
31 #define IPC_MESSAGE_START AutofillMsgStart | 30 #define IPC_MESSAGE_START AutofillMsgStart |
32 | 31 |
33 IPC_ENUM_TRAITS_MAX_VALUE(autofill::FormFieldData::RoleAttribute, | 32 IPC_ENUM_TRAITS_MAX_VALUE(autofill::FormFieldData::RoleAttribute, |
34 autofill::FormFieldData::ROLE_ATTRIBUTE_OTHER) | 33 autofill::FormFieldData::ROLE_ATTRIBUTE_OTHER) |
35 | 34 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 IPC_STRUCT_TRAITS_MEMBER(other_possible_usernames) | 95 IPC_STRUCT_TRAITS_MEMBER(other_possible_usernames) |
97 IPC_STRUCT_TRAITS_MEMBER(wait_for_username) | 96 IPC_STRUCT_TRAITS_MEMBER(wait_for_username) |
98 IPC_STRUCT_TRAITS_MEMBER(is_possible_change_password_form) | 97 IPC_STRUCT_TRAITS_MEMBER(is_possible_change_password_form) |
99 IPC_STRUCT_TRAITS_END() | 98 IPC_STRUCT_TRAITS_END() |
100 | 99 |
101 IPC_STRUCT_TRAITS_BEGIN(autofill::PasswordAndRealm) | 100 IPC_STRUCT_TRAITS_BEGIN(autofill::PasswordAndRealm) |
102 IPC_STRUCT_TRAITS_MEMBER(password) | 101 IPC_STRUCT_TRAITS_MEMBER(password) |
103 IPC_STRUCT_TRAITS_MEMBER(realm) | 102 IPC_STRUCT_TRAITS_MEMBER(realm) |
104 IPC_STRUCT_TRAITS_END() | 103 IPC_STRUCT_TRAITS_END() |
105 | 104 |
106 IPC_ENUM_TRAITS_MAX_VALUE( | |
107 blink::WebFormElement::AutocompleteResult, | |
108 blink::WebFormElement::AutocompleteResultErrorInvalid) | |
109 | |
110 // Singly-included section for type definitions. | 105 // Singly-included section for type definitions. |
111 #ifndef COMPONENTS_AUTOFILL_CONTENT_COMMON_AUTOFILL_MESSAGES_H_ | 106 #ifndef COMPONENTS_AUTOFILL_CONTENT_COMMON_AUTOFILL_MESSAGES_H_ |
112 #define COMPONENTS_AUTOFILL_CONTENT_COMMON_AUTOFILL_MESSAGES_H_ | 107 #define COMPONENTS_AUTOFILL_CONTENT_COMMON_AUTOFILL_MESSAGES_H_ |
113 | 108 |
114 // IPC_MESSAGE macros fail on the std::map, when expanding. We need to define | 109 // IPC_MESSAGE macros fail on the std::map, when expanding. We need to define |
115 // a type to avoid that. | 110 // a type to avoid that. |
116 using FormsPredictionsMap = | 111 using FormsPredictionsMap = |
117 std::map<autofill::FormData, autofill::PasswordFormFieldPredictionMap>; | 112 std::map<autofill::FormData, autofill::PasswordFormFieldPredictionMap>; |
118 | 113 |
119 #endif // COMPONENTS_AUTOFILL_CONTENT_COMMON_AUTOFILL_MESSAGES_H_ | 114 #endif // COMPONENTS_AUTOFILL_CONTENT_COMMON_AUTOFILL_MESSAGES_H_ |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 // Inform browser of data list values for the curent field. | 339 // Inform browser of data list values for the curent field. |
345 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, | 340 IPC_MESSAGE_ROUTED2(AutofillHostMsg_SetDataList, |
346 std::vector<base::string16> /* values */, | 341 std::vector<base::string16> /* values */, |
347 std::vector<base::string16> /* labels */) | 342 std::vector<base::string16> /* labels */) |
348 | 343 |
349 // Inform the browser which password form is currently focused, as a response | 344 // Inform the browser which password form is currently focused, as a response |
350 // to the |AutofillMsg_FindFocusedPasswordForm| request. If no password form | 345 // to the |AutofillMsg_FindFocusedPasswordForm| request. If no password form |
351 // is focused, the response will contain an empty |autofill::PasswordForm|. | 346 // is focused, the response will contain an empty |autofill::PasswordForm|. |
352 IPC_MESSAGE_ROUTED1(AutofillHostMsg_FocusedPasswordFormFound, | 347 IPC_MESSAGE_ROUTED1(AutofillHostMsg_FocusedPasswordFormFound, |
353 autofill::PasswordForm) | 348 autofill::PasswordForm) |
OLD | NEW |