Chromium Code Reviews| 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_FORMS_FORM_DATA_PREDICTIONS_H__ | 5 #ifndef CONTENT_PUBLIC_COMMON_FORM_DATA_PREDICTIONS_H__ |
| 6 #define WEBKIT_FORMS_FORM_DATA_PREDICTIONS_H__ | 6 #define CONTENT_PUBLIC_COMMON_FORM_DATA_PREDICTIONS_H__ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "webkit/forms/form_data.h" | 11 #include "content/common/content_export.h" |
| 12 #include "webkit/forms/form_field_predictions.h" | 12 #include "content/public/common/form_data.h" |
| 13 #include "webkit/forms/webkit_forms_export.h" | 13 #include "content/public/common/form_field_predictions.h" |
| 14 | 14 |
| 15 namespace webkit { | 15 namespace content { |
| 16 namespace forms { | |
| 17 | 16 |
| 18 // Holds information about a form to be filled and/or submitted. | 17 // Holds information about a form to be filled and/or submitted. |
| 19 struct WEBKIT_FORMS_EXPORT FormDataPredictions { | 18 struct CONTENT_EXPORT FormDataPredictions { |
|
jam
2012/10/02 16:18:14
doesn't look like this is used in content, so it s
blundell
2012/10/03 15:06:07
Done.
| |
| 20 // Data for this form. | 19 // Data for this form. |
| 21 FormData data; | 20 FormData data; |
| 22 // The form signature for communication with the crowdsourcing server. | 21 // The form signature for communication with the crowdsourcing server. |
| 23 std::string signature; | 22 std::string signature; |
| 24 // The experiment id for the server predictions. | 23 // The experiment id for the server predictions. |
| 25 std::string experiment_id; | 24 std::string experiment_id; |
| 26 // The form fields and their predicted field types. | 25 // The form fields and their predicted field types. |
| 27 std::vector<FormFieldPredictions> fields; | 26 std::vector<FormFieldPredictions> fields; |
| 28 | 27 |
| 29 FormDataPredictions(); | 28 FormDataPredictions(); |
| 30 FormDataPredictions(const FormDataPredictions& other); | 29 FormDataPredictions(const FormDataPredictions& other); |
| 31 ~FormDataPredictions(); | 30 ~FormDataPredictions(); |
| 32 }; | 31 }; |
| 33 | 32 |
| 34 } // namespace forms | 33 } // namespace content |
| 35 } // namespace webkit | |
| 36 | 34 |
| 37 #endif // WEBKIT_FORMS_FORM_DATA_PREDICTIONS_H__ | 35 #endif // CONTENT_PUBLIC_COMMON_FORM_DATA_PREDICTIONS_H__ |
| OLD | NEW |