summaryrefslogtreecommitdiffstats
path: root/content/public/browser/navigation_handle.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/public/browser/navigation_handle.cc')
-rw-r--r--content/public/browser/navigation_handle.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/content/public/browser/navigation_handle.cc b/content/public/browser/navigation_handle.cc
index f5eaa11..0df5535 100644
--- a/content/public/browser/navigation_handle.cc
+++ b/content/public/browser/navigation_handle.cc
@@ -6,6 +6,7 @@
#include "content/browser/frame_host/navigation_handle_impl.h"
#include "content/browser/frame_host/navigator.h"
+#include "content/browser/frame_host/render_frame_host_impl.h"
#include "content/browser/web_contents/web_contents_impl.h"
namespace content {
@@ -14,16 +15,16 @@ WebContents* NavigationHandle::GetWebContents() {
// The NavigationHandleImpl cannot access the WebContentsImpl as it would be
// a layering violation, hence the cast here.
return static_cast<WebContentsImpl*>(
- static_cast<NavigationHandleImpl*>(this)->delegate());
+ static_cast<NavigationHandleImpl*>(this)->GetDelegate());
}
// static
scoped_ptr<NavigationHandle> NavigationHandle::CreateNavigationHandleForTesting(
const GURL& url,
- bool is_main_frame,
- WebContents* web_contents) {
+ RenderFrameHost* render_frame_host) {
scoped_ptr<NavigationHandleImpl> handle_impl = NavigationHandleImpl::Create(
- url, is_main_frame, static_cast<WebContentsImpl*>(web_contents));
+ url,
+ static_cast<RenderFrameHostImpl*>(render_frame_host)->frame_tree_node());
return scoped_ptr<NavigationHandle>(handle_impl.Pass());
}