summaryrefslogtreecommitdiffstats
path: root/chrome/common/form_data_predictions.h
blob: a4eb28fcd84f00e2f7951869c24cdc5e6d16a1d3 (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
// 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 CHROME_COMMON_FORM_DATA_PREDICTIONS_H__
#define CHROME_COMMON_FORM_DATA_PREDICTIONS_H__

#include <string>
#include <vector>

#include "chrome/common/form_data.h"
#include "chrome/common/form_field_data_predictions.h"

// 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<FormFieldDataPredictions> fields;

  FormDataPredictions();
  FormDataPredictions(const FormDataPredictions& other);
  ~FormDataPredictions();
};

#endif  // CHROME_COMMON_FORM_DATA_PREDICTIONS_H__