Index: chrome/common/common_param_traits.cc |
diff --git a/chrome/common/common_param_traits.cc b/chrome/common/common_param_traits.cc |
index e655435c1243f5900a92e4fb9a08b5917fe8cab1..d6eb2cca341a325cf18095e7e0c2795a6bf7002c 100644 |
--- a/chrome/common/common_param_traits.cc |
+++ b/chrome/common/common_param_traits.cc |
@@ -407,6 +407,45 @@ void ParamTraits<Geoposition>::Log(const Geoposition& p, std::wstring* l) { |
LogParam(p.error_code, l); |
} |
+void ParamTraits<webkit_glue::PasswordForm>::Write(Message* m, |
+ const param_type& p) { |
+ WriteParam(m, p.signon_realm); |
+ WriteParam(m, p.origin); |
+ WriteParam(m, p.action); |
+ WriteParam(m, p.submit_element); |
+ WriteParam(m, p.username_element); |
+ WriteParam(m, p.username_value); |
+ WriteParam(m, p.password_element); |
+ WriteParam(m, p.password_value); |
+ WriteParam(m, p.old_password_element); |
+ WriteParam(m, p.old_password_value); |
+ WriteParam(m, p.ssl_valid); |
+ WriteParam(m, p.preferred); |
+ WriteParam(m, p.blacklisted_by_user); |
+} |
+ |
+bool ParamTraits<webkit_glue::PasswordForm>::Read(const Message* m, void** iter, |
+ param_type* p) { |
+ return |
+ ReadParam(m, iter, &p->signon_realm) && |
+ ReadParam(m, iter, &p->origin) && |
+ ReadParam(m, iter, &p->action) && |
+ ReadParam(m, iter, &p->submit_element) && |
+ ReadParam(m, iter, &p->username_element) && |
+ ReadParam(m, iter, &p->username_value) && |
+ ReadParam(m, iter, &p->password_element) && |
+ ReadParam(m, iter, &p->password_value) && |
+ ReadParam(m, iter, &p->old_password_element) && |
+ ReadParam(m, iter, &p->old_password_value) && |
+ ReadParam(m, iter, &p->ssl_valid) && |
+ ReadParam(m, iter, &p->preferred) && |
+ ReadParam(m, iter, &p->blacklisted_by_user); |
+} |
+void ParamTraits<webkit_glue::PasswordForm>::Log(const param_type& p, |
+ std::wstring* l) { |
+ l->append(L"<PasswordForm>"); |
+} |
+ |
void ParamTraits<printing::PageRange>::Write(Message* m, const param_type& p) { |
WriteParam(m, p.from); |
WriteParam(m, p.to); |