From d716545b1110698777186418a0411c617730f0f7 Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Wed, 21 Oct 2009 19:02:10 +0000 Subject: 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 --- webkit/glue/searchable_form_data.h | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'webkit/glue/searchable_form_data.h') 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); -- cgit v1.1