| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "components/autofill/content/public/cpp/autofill_types_struct_traits.h" | 5 #include "components/autofill/content/public/cpp/autofill_types_struct_traits.h" |
| 6 | 6 |
| 7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
| 8 #include "ipc/ipc_message_utils.h" | 8 #include "ipc/ipc_message_utils.h" |
| 9 #include "url/mojo/origin_struct_traits.h" | 9 #include "url/mojo/origin_struct_traits.h" |
| 10 #include "url/mojo/url_gurl_struct_traits.h" | 10 #include "url/mojo/url_gurl_struct_traits.h" |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 506 data.is_possible_change_password_form(); | 506 data.is_possible_change_password_form(); |
| 507 | 507 |
| 508 return true; | 508 return true; |
| 509 } | 509 } |
| 510 | 510 |
| 511 // static | 511 // static |
| 512 bool StructTraits<mojom::PasswordFormGenerationDataDataView, | 512 bool StructTraits<mojom::PasswordFormGenerationDataDataView, |
| 513 PasswordFormGenerationData>:: | 513 PasswordFormGenerationData>:: |
| 514 Read(mojom::PasswordFormGenerationDataDataView data, | 514 Read(mojom::PasswordFormGenerationDataDataView data, |
| 515 PasswordFormGenerationData* out) { | 515 PasswordFormGenerationData* out) { |
| 516 if (!data.ReadName(&out->name) || !data.ReadAction(&out->action) || | 516 out->form_signature = data.form_signature(); |
| 517 !data.ReadGenerationField(&out->generation_field)) | 517 out->field_signature = data.field_signature(); |
| 518 return false; | |
| 519 | |
| 520 return true; | 518 return true; |
| 521 } | 519 } |
| 522 | 520 |
| 523 // static | 521 // static |
| 524 bool StructTraits<mojom::PasswordFormDataView, PasswordForm>::Read( | 522 bool StructTraits<mojom::PasswordFormDataView, PasswordForm>::Read( |
| 525 mojom::PasswordFormDataView data, | 523 mojom::PasswordFormDataView data, |
| 526 PasswordForm* out) { | 524 PasswordForm* out) { |
| 527 if (!data.ReadScheme(&out->scheme) || | 525 if (!data.ReadScheme(&out->scheme) || |
| 528 !data.ReadSignonRealm(&out->signon_realm) || | 526 !data.ReadSignonRealm(&out->signon_realm) || |
| 529 !data.ReadOriginWithPath(&out->origin) || | 527 !data.ReadOriginWithPath(&out->origin) || |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 if (keys.size() != values.size()) | 658 if (keys.size() != values.size()) |
| 661 return false; | 659 return false; |
| 662 out->clear(); | 660 out->clear(); |
| 663 for (size_t i = 0; i < keys.size(); ++i) | 661 for (size_t i = 0; i < keys.size(); ++i) |
| 664 out->insert({keys[i], values[i]}); | 662 out->insert({keys[i], values[i]}); |
| 665 | 663 |
| 666 return true; | 664 return true; |
| 667 } | 665 } |
| 668 | 666 |
| 669 } // namespace mojo | 667 } // namespace mojo |
| OLD | NEW |