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

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

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
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_DATA_PREDICTIONS_H__ 5 #ifndef COMPONENTS_AUTOFILL_CORE_COMMON_FORM_DATA_PREDICTIONS_H__
6 #define COMPONENTS_AUTOFILL_CORE_COMMON_FORM_DATA_PREDICTIONS_H__ 6 #define COMPONENTS_AUTOFILL_CORE_COMMON_FORM_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_data.h" 11 #include "components/autofill/core/common/form_data.h"
12 #include "components/autofill/core/common/form_field_data_predictions.h" 12 #include "components/autofill/core/common/form_field_data_predictions.h"
13 13
14 namespace autofill { 14 namespace autofill {
15 15
16 // Holds information about a form to be filled and/or submitted. 16 // Holds information about a form to be filled and/or submitted.
17 struct FormDataPredictions { 17 struct FormDataPredictions {
18 // Data for this form. 18 // Data for this form.
19 FormData data; 19 FormData data;
20 // The form signature for communication with the crowdsourcing server. 20 // The form signature for communication with the crowdsourcing server.
21 std::string signature; 21 std::string signature;
22 // The experiment id for the server predictions. 22 // The experiment id for the server predictions.
23 std::string experiment_id; 23 std::string experiment_id;
24 // The form fields and their predicted field types. 24 // The form fields and their predicted field types.
25 std::vector<FormFieldDataPredictions> fields; 25 std::vector<FormFieldDataPredictions> fields;
26 26
27 FormDataPredictions(); 27 FormDataPredictions();
28 FormDataPredictions(const FormDataPredictions& other); 28 FormDataPredictions(const FormDataPredictions& other);
29 ~FormDataPredictions(); 29 ~FormDataPredictions();
30
31 // Added for the sake of testing.
32 bool operator==(const FormDataPredictions& predictions) const;
33 bool operator!=(const FormDataPredictions& predictions) const;
30 }; 34 };
31 35
32 } // namespace autofill 36 } // namespace autofill
33 37
34 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_FORM_DATA_PREDICTIONS_H__ 38 #endif // COMPONENTS_AUTOFILL_CORE_COMMON_FORM_DATA_PREDICTIONS_H__
OLDNEW
« no previous file with comments | « components/autofill/core/browser/test_autofill_driver.cc ('k') | components/autofill/core/common/form_data_predictions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698