OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/common/common_param_traits.h" | 5 #include "chrome/common/common_param_traits.h" |
6 #include "webkit/glue/form_data.h" | 6 #include "webkit/glue/form_data.h" |
7 #include "webkit/glue/form_field.h" | 7 #include "webkit/glue/form_field.h" |
8 #include "webkit/glue/password_form.h" | 8 #include "webkit/glue/password_form.h" |
9 #include "webkit/glue/password_form_dom_manager.h" | 9 #include "webkit/glue/password_form_dom_manager.h" |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 WriteParam(m, p.form_control_type()); | 21 WriteParam(m, p.form_control_type()); |
22 WriteParam(m, p.max_length()); | 22 WriteParam(m, p.max_length()); |
23 WriteParam(m, p.is_autofilled()); | 23 WriteParam(m, p.is_autofilled()); |
24 WriteParam(m, p.option_strings()); | 24 WriteParam(m, p.option_strings()); |
25 } | 25 } |
26 | 26 |
27 bool ParamTraits<webkit_glue::FormField>::Read(const Message* m, void** iter, | 27 bool ParamTraits<webkit_glue::FormField>::Read(const Message* m, void** iter, |
28 param_type* p) { | 28 param_type* p) { |
29 string16 label, name, value, form_control_type; | 29 string16 label, name, value, form_control_type; |
30 int max_length = 0; | 30 int max_length = 0; |
31 bool is_autofilled; | 31 bool is_autofilled = false; // clang pr9122 |
32 std::vector<string16> options; | 32 std::vector<string16> options; |
33 bool result = ReadParam(m, iter, &label); | 33 bool result = ReadParam(m, iter, &label); |
34 result = result && ReadParam(m, iter, &name); | 34 result = result && ReadParam(m, iter, &name); |
35 result = result && ReadParam(m, iter, &value); | 35 result = result && ReadParam(m, iter, &value); |
36 result = result && ReadParam(m, iter, &form_control_type); | 36 result = result && ReadParam(m, iter, &form_control_type); |
37 result = result && ReadParam(m, iter, &max_length); | 37 result = result && ReadParam(m, iter, &max_length); |
38 result = result && ReadParam(m, iter, &is_autofilled); | 38 result = result && ReadParam(m, iter, &is_autofilled); |
39 result = result && ReadParam(m, iter, &options); | 39 result = result && ReadParam(m, iter, &options); |
40 if (!result) | 40 if (!result) |
41 return false; | 41 return false; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 ReadParam(m, iter, &r->additional_logins) && | 95 ReadParam(m, iter, &r->additional_logins) && |
96 ReadParam(m, iter, &r->wait_for_username); | 96 ReadParam(m, iter, &r->wait_for_username); |
97 } | 97 } |
98 | 98 |
99 void ParamTraits<webkit_glue::PasswordFormFillData>::Log(const param_type& p, | 99 void ParamTraits<webkit_glue::PasswordFormFillData>::Log(const param_type& p, |
100 std::string* l) { | 100 std::string* l) { |
101 l->append("<PasswordFormFillData>"); | 101 l->append("<PasswordFormFillData>"); |
102 } | 102 } |
103 | 103 |
104 } // namespace IPC | 104 } // namespace IPC |
OLD | NEW |