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
3// found in the LICENSE file.
4
5#include "components/autofill/core/common/form_field_data_predictions.h"
6
7namespace autofill {
8
9FormFieldDataPredictions::FormFieldDataPredictions() {
10}
11
12FormFieldDataPredictions::FormFieldDataPredictions(
13    const FormFieldDataPredictions& other)
14    : field(other.field),
15      signature(other.signature),
16      heuristic_type(other.heuristic_type),
17      server_type(other.server_type),
18      overall_type(other.overall_type) {
19}
20
21FormFieldDataPredictions::~FormFieldDataPredictions() {
22}
23
24bool 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
33bool FormFieldDataPredictions::operator!=(
34    const FormFieldDataPredictions& predictions) const {
35  return !operator==(predictions);
36}
37
38}  // namespace autofill
39