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

Unified Diff: content/browser/frame_host/navigation_handle_impl.h

Issue 2485783002: PlzNavigate: send searchable form data to the browser side on form submission. (Closed)
Patch Set: rebase&resolve Created 4 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/navigation_handle_impl.h
diff --git a/content/browser/frame_host/navigation_handle_impl.h b/content/browser/frame_host/navigation_handle_impl.h
index 2d1f0098ca30ade1d0f16d0de747c202f5cf1abd..3eeed430174884bb1da488b9bfb8d4be41348b96 100644
--- a/content/browser/frame_host/navigation_handle_impl.h
+++ b/content/browser/frame_host/navigation_handle_impl.h
@@ -128,6 +128,8 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
const std::string& raw_response_header) override;
void CallDidCommitNavigationForTesting(const GURL& url) override;
bool WasStartedFromContextMenu() const override;
+ const GURL& GetSearchableFormURL() override;
+ const std::string& GetSearchableFormEncoding() override;
NavigationData* GetNavigationData() override;
@@ -281,6 +283,11 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
return navigation_ui_data_.get();
}
+ void set_searchable_form_url(const GURL& url) { searchable_form_url_ = url; }
+ void set_searchable_form_encoding(const std::string& encoding) {
+ searchable_form_encoding_ = encoding;
+ }
+
private:
friend class NavigationHandleImplTest;
@@ -424,6 +431,9 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
// False by default unless the navigation started within a context menu.
bool started_from_context_menu_;
+ GURL searchable_form_url_;
+ std::string searchable_form_encoding_;
+
base::WeakPtrFactory<NavigationHandleImpl> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);
« no previous file with comments | « chrome/browser/ui/search_engines/search_engine_tab_helper.cc ('k') | content/browser/frame_host/navigation_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698