summaryrefslogtreecommitdiffstats
path: root/webkit/forms/form_data_predictions.h
blob: df3015a006c35aadb738730c01add2f35779f4a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// 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_FORMS_FORM_DATA_PREDICTIONS_H__
#define WEBKIT_FORMS_FORM_DATA_PREDICTIONS_H__

#include <string>
#include <vector>

#include "webkit/forms/form_data.h"
#include "webkit/forms/form_field_predictions.h"
#include "webkit/forms/webkit_forms_export.h"

namespace webkit {
namespace forms {

// Holds information about a form to be filled and/or submitted.
struct WEBKIT_FORMS_EXPORT 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 forms
}  // namespace webkit

#endif  // WEBKIT_FORMS_FORM_DATA_PREDICTIONS_H__