diff options
author | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-20 22:32:24 +0000 |
---|---|---|
committer | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-20 22:32:24 +0000 |
commit | 3eb5728c989094f6f6b24a392fd49255e5b1e5dc (patch) | |
tree | fb67f5226de969860237c25fd5688053de981a17 /webkit/glue/form_data_predictions.h | |
parent | 48630edc4423d0b65dc944050bf4fa54cf6ce0b1 (diff) | |
download | chromium_src-3eb5728c989094f6f6b24a392fd49255e5b1e5dc.zip chromium_src-3eb5728c989094f6f6b24a392fd49255e5b1e5dc.tar.gz chromium_src-3eb5728c989094f6f6b24a392fd49255e5b1e5dc.tar.bz2 |
Add a debugging flag to annotate web forms with their Autofill field type predictions.
BUG=none
TEST=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=89716
Review URL: http://codereview.chromium.org/7187029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89745 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/form_data_predictions.h')
-rw-r--r-- | webkit/glue/form_data_predictions.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/webkit/glue/form_data_predictions.h b/webkit/glue/form_data_predictions.h new file mode 100644 index 0000000..7661ff9 --- /dev/null +++ b/webkit/glue/form_data_predictions.h @@ -0,0 +1,34 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef WEBKIT_GLUE_FORM_DATA_PREDICTIONS_H__ +#define WEBKIT_GLUE_FORM_DATA_PREDICTIONS_H__ + +#include <string> +#include <vector> + +#include "webkit/glue/form_data.h" +#include "webkit/glue/form_field_predictions.h" + +namespace webkit_glue { + +// Holds information about a form to be filled and/or submitted. +struct FormDataPredictions { + // Data for this form. + FormData data; + // The form signature for communication with the crowdsourcing server. + std::string signature; + // The experiment id for the server predictions. + std::string experiment_id; + // The form fields and their predicted field types. + std::vector<FormFieldPredictions> fields; + + FormDataPredictions(); + FormDataPredictions(const FormDataPredictions& other); + ~FormDataPredictions(); +}; + +} // namespace webkit_glue + +#endif // WEBKIT_GLUE_FORM_DATA_PREDICTIONS_H__ |