OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 WEBKIT_GLUE_FORM_DATA_PREDICTIONS_H__ | 5 #ifndef WEBKIT_GLUE_FORM_DATA_PREDICTIONS_H__ |
6 #define WEBKIT_GLUE_FORM_DATA_PREDICTIONS_H__ | 6 #define WEBKIT_GLUE_FORM_DATA_PREDICTIONS_H__ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "webkit/glue/form_data.h" | 11 #include "webkit/glue/form_data.h" |
12 #include "webkit/glue/form_field_predictions.h" | 12 #include "webkit/glue/form_field_predictions.h" |
| 13 #include "webkit/glue/webkit_glue_export.h" |
13 | 14 |
14 namespace webkit_glue { | 15 namespace webkit_glue { |
15 | 16 |
16 // Holds information about a form to be filled and/or submitted. | 17 // Holds information about a form to be filled and/or submitted. |
17 struct FormDataPredictions { | 18 struct WEBKIT_GLUE_EXPORT FormDataPredictions { |
18 // Data for this form. | 19 // Data for this form. |
19 FormData data; | 20 FormData data; |
20 // The form signature for communication with the crowdsourcing server. | 21 // The form signature for communication with the crowdsourcing server. |
21 std::string signature; | 22 std::string signature; |
22 // The experiment id for the server predictions. | 23 // The experiment id for the server predictions. |
23 std::string experiment_id; | 24 std::string experiment_id; |
24 // The form fields and their predicted field types. | 25 // The form fields and their predicted field types. |
25 std::vector<FormFieldPredictions> fields; | 26 std::vector<FormFieldPredictions> fields; |
26 | 27 |
27 FormDataPredictions(); | 28 FormDataPredictions(); |
28 FormDataPredictions(const FormDataPredictions& other); | 29 FormDataPredictions(const FormDataPredictions& other); |
29 ~FormDataPredictions(); | 30 ~FormDataPredictions(); |
30 }; | 31 }; |
31 | 32 |
32 } // namespace webkit_glue | 33 } // namespace webkit_glue |
33 | 34 |
34 #endif // WEBKIT_GLUE_FORM_DATA_PREDICTIONS_H__ | 35 #endif // WEBKIT_GLUE_FORM_DATA_PREDICTIONS_H__ |
OLD | NEW |