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

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

Issue 2660403006: Convert RenderViewHostTest to use the new navigation callbacks. (Closed)
Patch Set: Created 3 years, 11 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
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 279c45977f11f54826448381cc86351d1f125bae..65ce406d3021ded9f47adffc8d8d957c1d3ec513 100644
--- a/content/browser/frame_host/navigation_handle_impl.h
+++ b/content/browser/frame_host/navigation_handle_impl.h
@@ -111,6 +111,7 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
bool IsSamePage() override;
bool HasCommitted() override;
bool IsErrorPage() override;
+ net::HostPortPair GetSocketAddress() override;
const net::HttpResponseHeaders* GetResponseHeaders() override;
net::HttpResponseInfo::ConnectionInfo GetConnectionInfo() override;
void Resume() override;
@@ -297,6 +298,8 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
return navigation_ui_data_.get();
}
+ const GURL& base_url() { return base_url_; }
+
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;
@@ -458,6 +461,9 @@ class CONTENT_EXPORT NavigationHandleImpl : public NavigationHandle {
GURL searchable_form_url_;
std::string searchable_form_encoding_;
+ GURL base_url_;
+ net::HostPortPair socket_address_;
+
base::WeakPtrFactory<NavigationHandleImpl> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(NavigationHandleImpl);
« no previous file with comments | « no previous file | content/browser/frame_host/navigation_handle_impl.cc » ('j') | content/public/browser/navigation_handle.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698