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

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

Issue 18563002: Move SendAutofillTypePredictions() into AutofillDriver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
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 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_FORM_FIELD_DATA_PREDICTIONS_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_FORM_FIELD_DATA_PREDICTIONS_H_
6 #define COMPONENTS_AUTOFILL_CORE_COMMON_FORM_FIELD_DATA_PREDICTIONS_H_ 6 #define COMPONENTS_AUTOFILL_CORE_COMMON_FORM_FIELD_DATA_PREDICTIONS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "components/autofill/core/common/form_field_data.h" 11 #include "components/autofill/core/common/form_field_data.h"
12 12
13 namespace autofill { 13 namespace autofill {
14 14
15 // Stores information about a field in a form. 15 // Stores information about a field in a form.
16 struct FormFieldDataPredictions { 16 struct FormFieldDataPredictions {
17 FormFieldDataPredictions(); 17 FormFieldDataPredictions();
18 FormFieldDataPredictions(const FormFieldDataPredictions& other); 18 FormFieldDataPredictions(const FormFieldDataPredictions& other);
19 ~FormFieldDataPredictions(); 19 ~FormFieldDataPredictions();
20 20
21 FormFieldData field; 21 FormFieldData field;
22 std::string signature; 22 std::string signature;
23 std::string heuristic_type; 23 std::string heuristic_type;
24 std::string server_type; 24 std::string server_type;
25 std::string overall_type; 25 std::string overall_type;
26
27 bool operator==(const FormFieldDataPredictions& predictions) const;
28 bool operator!=(const FormFieldDataPredictions& predictions) const;
Ilya Sherman 2013/07/02 18:43:01 nit: Please add a comment that you're adding these
blundell 2013/07/02 20:15:33 Done.
26 }; 29 };
27 30
28 } // namespace autofill 31 } // namespace autofill
29 32
30 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_FORM_FIELD_DATA_PREDICTIONS_H_ 33 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_FORM_FIELD_DATA_PREDICTIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698