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 #include "components/autofill/core/common/form_field_data_predictions.h" | 5 #include "components/autofill/core/common/form_field_data_predictions.h" |
6 | 6 |
7 namespace autofill { | 7 namespace autofill { |
8 | 8 |
9 FormFieldDataPredictions::FormFieldDataPredictions() { | 9 FormFieldDataPredictions::FormFieldDataPredictions() { |
10 } | 10 } |
11 | 11 |
12 FormFieldDataPredictions::FormFieldDataPredictions( | 12 FormFieldDataPredictions::FormFieldDataPredictions( |
13 const FormFieldDataPredictions& other) | 13 const FormFieldDataPredictions& other) |
14 : field(other.field), | 14 : field(other.field), |
15 signature(other.signature), | 15 signature(other.signature), |
16 heuristic_type(other.heuristic_type), | 16 heuristic_type(other.heuristic_type), |
17 server_type(other.server_type), | 17 server_type(other.server_type), |
18 overall_type(other.overall_type) { | 18 overall_type(other.overall_type) { |
19 } | 19 } |
20 | 20 |
21 FormFieldDataPredictions::~FormFieldDataPredictions() { | 21 FormFieldDataPredictions::~FormFieldDataPredictions() { |
22 } | 22 } |
23 | 23 |
| 24 bool FormFieldDataPredictions::operator==( |
| 25 const FormFieldDataPredictions& predictions) const { |
| 26 return (field == predictions.field && |
| 27 signature == predictions.signature && |
| 28 heuristic_type == predictions.heuristic_type && |
| 29 server_type == predictions.server_type && |
| 30 overall_type == predictions.overall_type); |
| 31 } |
| 32 |
| 33 bool FormFieldDataPredictions::operator!=( |
| 34 const FormFieldDataPredictions& predictions) const { |
| 35 return !operator==(predictions); |
| 36 } |
| 37 |
24 } // namespace autofill | 38 } // namespace autofill |
OLD | NEW |