Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: components/autofill/core/common/form_field_data_predictions.cc

Issue 18563002: Move SendAutofillTypePredictions() into AutofillDriver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to review Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « components/autofill/core/common/form_field_data_predictions.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « components/autofill/core/common/form_field_data_predictions.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698