blob: 3a167295de985945f39ac58cb0da2de17cb1a974 (
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
38
39
40
41
42
43
44
45
|
// 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 COMPONENTS_AUTOFILL_COMMON_FORM_DATA_H__
#define COMPONENTS_AUTOFILL_COMMON_FORM_DATA_H__
#include <vector>
#include "base/string16.h"
#include "components/autofill/common/form_field_data.h"
#include "content/public/common/ssl_status.h"
#include "googleurl/src/gurl.h"
namespace autofill {
// Holds information about a form to be filled and/or submitted.
struct FormData {
FormData();
FormData(const FormData& data);
~FormData();
// Used by FormStructureTest.
bool operator==(const FormData& form) const;
bool operator!=(const FormData& form) const;
// The name of the form.
base::string16 name;
// GET or POST.
base::string16 method;
// The URL (minus query parameters) containing the form.
GURL origin;
// The action target of the form.
GURL action;
// true if this form was submitted by a user gesture and not javascript.
bool user_submitted;
// A vector of all the input fields in the form.
std::vector<FormFieldData> fields;
// SSL status of the frame contatining the form.
content::SSLStatus ssl_status;
};
} // namespace autofill
#endif // COMPONENTS_AUTOFILL_COMMON_FORM_DATA_H__
|