Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Side by Side Diff: components/autofill/common/form_data.h

Issue 13928035: WIP Component build of autofill Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make windows compiling Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 COMPONENTS_AUTOFILL_COMMON_FORM_DATA_H__ 5 #ifndef COMPONENTS_AUTOFILL_COMMON_FORM_DATA_H__
6 #define COMPONENTS_AUTOFILL_COMMON_FORM_DATA_H__ 6 #define COMPONENTS_AUTOFILL_COMMON_FORM_DATA_H__
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "components/autofill/common/autofill_export.h"
11 #include "components/autofill/common/form_field_data.h" 12 #include "components/autofill/common/form_field_data.h"
12 #include "content/public/common/ssl_status.h" 13 #include "content/public/common/ssl_status.h"
13 #include "googleurl/src/gurl.h" 14 #include "googleurl/src/gurl.h"
14 15
15 namespace autofill { 16 namespace autofill {
16 17
17 // Holds information about a form to be filled and/or submitted. 18 // Holds information about a form to be filled and/or submitted.
18 struct FormData { 19 struct AUTOFILL_EXPORT FormData {
19 FormData(); 20 FormData();
20 FormData(const FormData& data); 21 FormData(const FormData& data);
21 ~FormData(); 22 ~FormData();
22 23
23 // Used by FormStructureTest. 24 // Used by FormStructureTest.
24 bool operator==(const FormData& form) const; 25 bool operator==(const FormData& form) const;
25 bool operator!=(const FormData& form) const; 26 bool operator!=(const FormData& form) const;
26 27
27 // The name of the form. 28 // The name of the form.
28 base::string16 name; 29 base::string16 name;
29 // GET or POST. 30 // GET or POST.
30 base::string16 method; 31 base::string16 method;
31 // The URL (minus query parameters) containing the form. 32 // The URL (minus query parameters) containing the form.
32 GURL origin; 33 GURL origin;
33 // The action target of the form. 34 // The action target of the form.
34 GURL action; 35 GURL action;
35 // true if this form was submitted by a user gesture and not javascript. 36 // true if this form was submitted by a user gesture and not javascript.
36 bool user_submitted; 37 bool user_submitted;
37 // A vector of all the input fields in the form. 38 // A vector of all the input fields in the form.
38 std::vector<FormFieldData> fields; 39 std::vector<FormFieldData> fields;
39 // SSL status of the frame contatining the form. 40 // SSL status of the frame contatining the form.
40 content::SSLStatus ssl_status; 41 content::SSLStatus ssl_status;
41 }; 42 };
42 43
43 } // namespace autofill 44 } // namespace autofill
44 45
45 #endif // COMPONENTS_AUTOFILL_COMMON_FORM_DATA_H__ 46 #endif // COMPONENTS_AUTOFILL_COMMON_FORM_DATA_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698