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

Side by Side Diff: chrome/common/form_data.h

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 8 years, 2 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
« no previous file with comments | « chrome/common/chrome_notification_types.h ('k') | chrome/common/form_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 WEBKIT_FORMS_FORM_DATA_H__ 5 #ifndef CHROME_COMMON_FORM_DATA_H__
6 #define WEBKIT_FORMS_FORM_DATA_H__ 6 #define CHROME_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 "chrome/common/form_field_data.h"
11 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
12 #include "webkit/forms/form_field.h"
13 #include "webkit/forms/webkit_forms_export.h"
14
15 namespace webkit {
16 namespace forms {
17 13
18 // Holds information about a form to be filled and/or submitted. 14 // Holds information about a form to be filled and/or submitted.
19 struct WEBKIT_FORMS_EXPORT FormData { 15 struct FormData {
20 // The name of the form. 16 // The name of the form.
21 string16 name; 17 string16 name;
22 // GET or POST. 18 // GET or POST.
23 string16 method; 19 string16 method;
24 // The URL (minus query parameters) containing the form. 20 // The URL (minus query parameters) containing the form.
25 GURL origin; 21 GURL origin;
26 // The action target of the form. 22 // The action target of the form.
27 GURL action; 23 GURL action;
28 // true if this form was submitted by a user gesture and not javascript. 24 // true if this form was submitted by a user gesture and not javascript.
29 bool user_submitted; 25 bool user_submitted;
30 // A vector of all the input fields in the form. 26 // A vector of all the input fields in the form.
31 std::vector<FormField> fields; 27 std::vector<FormFieldData> fields;
32 28
33 FormData(); 29 FormData();
34 FormData(const FormData& data); 30 FormData(const FormData& data);
35 ~FormData(); 31 ~FormData();
36 32
37 // Used by FormStructureTest. 33 // Used by FormStructureTest.
38 bool operator==(const FormData& form) const; 34 bool operator==(const FormData& form) const;
39 }; 35 };
40 36
41 } // namespace forms 37 #endif // CHROME_COMMON_FORM_DATA_H__
42 } // namespace webkit
43
44 #endif // WEBKIT_FORMS_FORM_DATA_H__
OLDNEW
« no previous file with comments | « chrome/common/chrome_notification_types.h ('k') | chrome/common/form_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698