summaryrefslogtreecommitdiffstats
path: root/webkit/glue/searchable_form_data.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 19:02:10 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-21 19:02:10 +0000
commitd716545b1110698777186418a0411c617730f0f7 (patch)
tree0e586456fb009f1db19172ecbef5e40b2477fb67 /webkit/glue/searchable_form_data.h
parent5448942f4e82bbd6bcacc996e48608dd6cc3e7e0 (diff)
downloadchromium_src-d716545b1110698777186418a0411c617730f0f7.zip
chromium_src-d716545b1110698777186418a0411c617730f0f7.tar.gz
chromium_src-d716545b1110698777186418a0411c617730f0f7.tar.bz2
Trim unused members from SearchableFormData. Remove copies of WebCore functions that are now public. Fix a few style errors. Make some functions shorter. Remove "using" directives since most of the file ignored them anyways. Remove unneeded #includes.
BUG=none TEST=none Review URL: http://codereview.chromium.org/292041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29681 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/searchable_form_data.h')
-rw-r--r--webkit/glue/searchable_form_data.h20
1 files changed, 4 insertions, 16 deletions
diff --git a/webkit/glue/searchable_form_data.h b/webkit/glue/searchable_form_data.h
index fc76c57..204ef39 100644
--- a/webkit/glue/searchable_form_data.h
+++ b/webkit/glue/searchable_form_data.h
@@ -23,31 +23,19 @@ class SearchableFormData {
// request, a SearchableFormData is created and returned.
static SearchableFormData* Create(const WebKit::WebForm& form);
- // Returns true if the two SearchableFormData are equal, false otherwise.
- // Either argument may be NULL. If both elements are NULL, true is returned.
- static bool Equals(const SearchableFormData* a, const SearchableFormData* b);
-
// URL for the searchable form request.
const GURL& url() const { return url_; }
- // Class name of the INPUT element the user input text into.
- const std::wstring element_name() const { return element_name_; }
-
- // Value of the text field in the form.
- const std::wstring element_value() const { return element_value_; }
-
// Encoding used to encode the form parameters; never empty.
const std::string& encoding() const { return encoding_; }
private:
- SearchableFormData(const GURL& url,
- const std::wstring& element_name,
- const std::wstring& element_value,
- const std::string& encoding);
+ SearchableFormData(const GURL& url, const std::string& encoding)
+ : url_(url),
+ encoding_(encoding) {
+ }
const GURL url_;
- const std::wstring element_name_;
- const std::wstring element_value_;
const std::string encoding_;
DISALLOW_COPY_AND_ASSIGN(SearchableFormData);