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

Unified Diff: webkit/glue/form_field_values.h

Issue 341042: Store the form name, source URL and target URL in FormFieldValues. These are... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/render_messages.h ('k') | webkit/glue/form_field_values.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/form_field_values.h
===================================================================
--- webkit/glue/form_field_values.h (revision 30521)
+++ webkit/glue/form_field_values.h (working copy)
@@ -7,6 +7,8 @@
#include <vector>
+#include "base/string16.h"
+#include "googleurl/src/gurl.h"
#include "webkit/glue/form_field.h"
namespace WebKit {
@@ -15,14 +17,26 @@
namespace webkit_glue {
-// The FormFieldValues struct represents a single HTML form together with the
+// The FormFieldValues class represents a single HTML form together with the
// values entered in the fields.
class FormFieldValues {
public:
- static FormFieldValues* Create(const WebKit::WebForm& form);
+ static FormFieldValues* Create(const WebKit::WebForm& webform);
+ // The name of the form.
+ string16 form_name;
+
+ // The source URL.
+ GURL source_url;
+
+ // The target URL.
+ GURL target_url;
+
// A vector of all the input fields in the form.
std::vector<FormField> elements;
+
+ private:
+ void ExtractFormFieldValues(const WebKit::WebForm& webform);
};
} // namespace webkit_glue
« no previous file with comments | « chrome/common/render_messages.h ('k') | webkit/glue/form_field_values.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698