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

Side by Side Diff: webkit/glue/form_field_values.h

Issue 355003: Implement FormStructure and an initial method, EncodeUploadRequest. This als... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
« no previous file with comments | « webkit/glue/form_field.cc ('k') | webkit/glue/form_field_values.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_GLUE_FORM_FIELD_VALUES_H_ 5 #ifndef WEBKIT_GLUE_FORM_FIELD_VALUES_H_
6 #define WEBKIT_GLUE_FORM_FIELD_VALUES_H_ 6 #define WEBKIT_GLUE_FORM_FIELD_VALUES_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
11 #include "googleurl/src/gurl.h" 11 #include "googleurl/src/gurl.h"
12 #include "webkit/glue/form_field.h" 12 #include "webkit/glue/form_field.h"
13 13
14 namespace WebKit { 14 namespace WebKit {
15 class WebForm; 15 class WebForm;
16 } 16 }
17 17
18 namespace webkit_glue { 18 namespace webkit_glue {
19 19
20 // The FormFieldValues class represents a single HTML form together with the 20 // The FormFieldValues class represents a single HTML form together with the
21 // values entered in the fields. 21 // values entered in the fields.
22 class FormFieldValues { 22 class FormFieldValues {
23 public: 23 public:
24 static FormFieldValues* Create(const WebKit::WebForm& webform); 24 static FormFieldValues* Create(const WebKit::WebForm& webform);
25 25
26 // The name of the form. 26 // The name of the form.
27 string16 form_name; 27 string16 form_name;
28 28
29 // GET or POST.
30 string16 method;
31
29 // The source URL. 32 // The source URL.
30 GURL source_url; 33 GURL source_url;
31 34
32 // The target URL. 35 // The target URL.
33 GURL target_url; 36 GURL target_url;
34 37
35 // A vector of all the input fields in the form. 38 // A vector of all the input fields in the form.
36 std::vector<FormField> elements; 39 std::vector<FormField> elements;
37 40
38 private: 41 private:
39 void ExtractFormFieldValues(const WebKit::WebForm& webform); 42 void ExtractFormFieldValues(const WebKit::WebForm& webform);
40 }; 43 };
41 44
42 } // namespace webkit_glue 45 } // namespace webkit_glue
43 46
44 #endif // WEBKIT_GLUE_FORM_FIELD_VALUES_H_ 47 #endif // WEBKIT_GLUE_FORM_FIELD_VALUES_H_
OLDNEW
« no previous file with comments | « webkit/glue/form_field.cc ('k') | webkit/glue/form_field_values.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698