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

Side by Side Diff: components/autofill/core/common/autofill_param_traits_macros.h

Issue 23742004: Move PasswordForm from //content to //autofill. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_password_form_conversion_utils
Patch Set: Nits Created 7 years, 3 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 unified diff | Download patch
OLDNEW
(Empty)
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
jam 2013/09/05 16:07:16 a macros.h file is done to share serialization tra
blundell 2013/09/05 16:33:58 Done.
3 // found in the LICENSE file.
4
5 // Singly or multiply-included shared traits file depending on circumstances.
6 // This allows the use of Autofill IPC serialization macros in more than one IPC
7 // message file.
8 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_PARAM_TRAITS_MACROS_H_
9 #define COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_PARAM_TRAITS_MACROS_H_
10
11 #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_field_data.h"
14 #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/password_form.h"
17 #include "components/autofill/core/common/password_form_fill_data.h"
18 #include "components/autofill/core/common/web_element_descriptor.h"
19 #include "ipc/ipc_message_macros.h"
20 #include "third_party/WebKit/public/web/WebFormElement.h"
21
22 IPC_ENUM_TRAITS(autofill::PasswordForm::Type)
23
24 IPC_ENUM_TRAITS_MAX_VALUE(autofill::FormsSeenState,
25 autofill::FORMS_SEEN_STATE_NUM_STATES - 1)
26 IPC_ENUM_TRAITS_MAX_VALUE(base::i18n::TextDirection,
27 base::i18n::TEXT_DIRECTION_NUM_DIRECTIONS - 1)
28
29 IPC_STRUCT_TRAITS_BEGIN(autofill::WebElementDescriptor)
30 IPC_STRUCT_TRAITS_MEMBER(descriptor)
31 IPC_STRUCT_TRAITS_MEMBER(retrieval_method)
32 IPC_STRUCT_TRAITS_END()
33
34 IPC_ENUM_TRAITS_MAX_VALUE(autofill::WebElementDescriptor::RetrievalMethod,
35 autofill::WebElementDescriptor::NONE)
36
37 IPC_STRUCT_TRAITS_BEGIN(autofill::FormFieldData)
38 IPC_STRUCT_TRAITS_MEMBER(label)
39 IPC_STRUCT_TRAITS_MEMBER(name)
40 IPC_STRUCT_TRAITS_MEMBER(value)
41 IPC_STRUCT_TRAITS_MEMBER(form_control_type)
42 IPC_STRUCT_TRAITS_MEMBER(autocomplete_attribute)
43 IPC_STRUCT_TRAITS_MEMBER(max_length)
44 IPC_STRUCT_TRAITS_MEMBER(is_autofilled)
45 IPC_STRUCT_TRAITS_MEMBER(is_checked)
46 IPC_STRUCT_TRAITS_MEMBER(is_checkable)
47 IPC_STRUCT_TRAITS_MEMBER(is_focusable)
48 IPC_STRUCT_TRAITS_MEMBER(should_autocomplete)
49 IPC_STRUCT_TRAITS_MEMBER(text_direction)
50 IPC_STRUCT_TRAITS_MEMBER(option_values)
51 IPC_STRUCT_TRAITS_MEMBER(option_contents)
52 IPC_STRUCT_TRAITS_END()
53
54 IPC_STRUCT_TRAITS_BEGIN(autofill::FormFieldDataPredictions)
55 IPC_STRUCT_TRAITS_MEMBER(field)
56 IPC_STRUCT_TRAITS_MEMBER(signature)
57 IPC_STRUCT_TRAITS_MEMBER(heuristic_type)
58 IPC_STRUCT_TRAITS_MEMBER(server_type)
59 IPC_STRUCT_TRAITS_MEMBER(overall_type)
60 IPC_STRUCT_TRAITS_END()
61
62 IPC_STRUCT_TRAITS_BEGIN(autofill::FormData)
63 IPC_STRUCT_TRAITS_MEMBER(name)
64 IPC_STRUCT_TRAITS_MEMBER(method)
65 IPC_STRUCT_TRAITS_MEMBER(origin)
66 IPC_STRUCT_TRAITS_MEMBER(action)
67 IPC_STRUCT_TRAITS_MEMBER(user_submitted)
68 IPC_STRUCT_TRAITS_MEMBER(fields)
69 IPC_STRUCT_TRAITS_END()
70
71 IPC_STRUCT_TRAITS_BEGIN(autofill::FormDataPredictions)
72 IPC_STRUCT_TRAITS_MEMBER(data)
73 IPC_STRUCT_TRAITS_MEMBER(signature)
74 IPC_STRUCT_TRAITS_MEMBER(experiment_id)
75 IPC_STRUCT_TRAITS_MEMBER(fields)
76 IPC_STRUCT_TRAITS_END()
77
78 IPC_STRUCT_TRAITS_BEGIN(autofill::UsernamesCollectionKey)
79 IPC_STRUCT_TRAITS_MEMBER(username)
80 IPC_STRUCT_TRAITS_MEMBER(password)
81 IPC_STRUCT_TRAITS_END()
82
83 IPC_STRUCT_TRAITS_BEGIN(autofill::PasswordForm)
84 IPC_STRUCT_TRAITS_MEMBER(signon_realm)
jam 2013/09/05 16:07:16 nit: need indentation
blundell 2013/09/05 16:33:58 Done.
85 IPC_STRUCT_TRAITS_MEMBER(origin)
86 IPC_STRUCT_TRAITS_MEMBER(action)
87 IPC_STRUCT_TRAITS_MEMBER(submit_element)
88 IPC_STRUCT_TRAITS_MEMBER(username_element)
89 IPC_STRUCT_TRAITS_MEMBER(username_value)
90 IPC_STRUCT_TRAITS_MEMBER(other_possible_usernames)
91 IPC_STRUCT_TRAITS_MEMBER(password_element)
92 IPC_STRUCT_TRAITS_MEMBER(password_value)
93 IPC_STRUCT_TRAITS_MEMBER(password_autocomplete_set)
94 IPC_STRUCT_TRAITS_MEMBER(old_password_element)
95 IPC_STRUCT_TRAITS_MEMBER(old_password_value)
96 IPC_STRUCT_TRAITS_MEMBER(ssl_valid)
97 IPC_STRUCT_TRAITS_MEMBER(preferred)
98 IPC_STRUCT_TRAITS_MEMBER(blacklisted_by_user)
99 IPC_STRUCT_TRAITS_MEMBER(type)
100 IPC_STRUCT_TRAITS_MEMBER(times_used)
101 IPC_STRUCT_TRAITS_END()
102
103 IPC_STRUCT_TRAITS_BEGIN(autofill::PasswordFormFillData)
104 IPC_STRUCT_TRAITS_MEMBER(basic_data)
105 IPC_STRUCT_TRAITS_MEMBER(preferred_realm)
106 IPC_STRUCT_TRAITS_MEMBER(additional_logins)
107 IPC_STRUCT_TRAITS_MEMBER(other_possible_usernames)
108 IPC_STRUCT_TRAITS_MEMBER(wait_for_username)
109 IPC_STRUCT_TRAITS_END()
110
111 IPC_STRUCT_TRAITS_BEGIN(autofill::PasswordAndRealm)
112 IPC_STRUCT_TRAITS_MEMBER(password)
113 IPC_STRUCT_TRAITS_MEMBER(realm)
114 IPC_STRUCT_TRAITS_END()
115
116 IPC_ENUM_TRAITS_MAX_VALUE(
117 WebKit::WebFormElement::AutocompleteResult,
118 WebKit::WebFormElement::AutocompleteResultErrorInvalid)
119
120 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_AUTOFILL_PARAM_TRAITS_MACROS_H_
OLDNEW
« no previous file with comments | « components/autofill/core/common/autofill_messages.h ('k') | components/autofill/core/common/password_form.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698