summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/navigation_state.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-23 21:00:35 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-23 21:00:35 +0000
commitce0e250dbfe0361623a7e23527c60aa3888f52f6 (patch)
treed9b6388aeaed3ec76af10804382a77ca42ef36aa /chrome/renderer/navigation_state.h
parentc9a06be181e8e5781c6a4c2dcc07e1b65d5b5db1 (diff)
downloadchromium_src-ce0e250dbfe0361623a7e23527c60aa3888f52f6.zip
chromium_src-ce0e250dbfe0361623a7e23527c60aa3888f52f6.tar.gz
chromium_src-ce0e250dbfe0361623a7e23527c60aa3888f52f6.tar.bz2
Move SearchableFormData over to the WebKit API.
BUG=24621 TEST=none Review URL: http://codereview.chromium.org/306057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29941 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/navigation_state.h')
-rw-r--r--chrome/renderer/navigation_state.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/chrome/renderer/navigation_state.h b/chrome/renderer/navigation_state.h
index ecb79fd..46031dd 100644
--- a/chrome/renderer/navigation_state.h
+++ b/chrome/renderer/navigation_state.h
@@ -11,7 +11,6 @@
#include "webkit/api/public/WebDataSource.h"
#include "webkit/glue/alt_error_page_resource_fetcher.h"
#include "webkit/glue/password_form.h"
-#include "webkit/glue/searchable_form_data.h"
// The RenderView stores an instance of this class in the "extra data" of each
// WebDataSource (see RenderView::DidCreateDataSource).
@@ -116,11 +115,13 @@ class NavigationState : public WebKit::WebDataSource::ExtraData {
// True if this navigation was not initiated via WebFrame::LoadRequest.
bool is_content_initiated() const { return is_content_initiated_; }
- webkit_glue::SearchableFormData* searchable_form_data() const {
- return searchable_form_data_.get();
+ const GURL& searchable_form_url() const { return searchable_form_url_; }
+ void set_searchable_form_url(const GURL& url) { searchable_form_url_ = url; }
+ const std::string& searchable_form_encoding() const {
+ return searchable_form_encoding_;
}
- void set_searchable_form_data(webkit_glue::SearchableFormData* data) {
- searchable_form_data_.reset(data);
+ void set_searchable_form_encoding(const std::string& encoding) {
+ searchable_form_encoding_ = encoding;
}
webkit_glue::PasswordForm* password_form_data() const {
@@ -187,7 +188,8 @@ class NavigationState : public WebKit::WebDataSource::ExtraData {
bool request_committed_;
bool is_content_initiated_;
int32 pending_page_id_;
- scoped_ptr<webkit_glue::SearchableFormData> searchable_form_data_;
+ GURL searchable_form_url_;
+ std::string searchable_form_encoding_;
scoped_ptr<webkit_glue::PasswordForm> password_form_data_;
scoped_ptr<webkit_glue::AltErrorPageResourceFetcher> alt_error_page_fetcher_;
std::string security_info_;