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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 26316005: Move out DidStartProvisionalLoad from WebContentsImpl into Navigator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add NavigatorDelegate Created 7 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/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 56d54a22cb5cc3cc6cf2181bfc455b60f4b6e94f..998a921670575448556bd038eb0475a03b0b4e5b 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -18,6 +18,8 @@
#include "content/browser/frame_host/frame_tree.h"
#include "content/browser/frame_host/navigation_controller_delegate.h"
#include "content/browser/frame_host/navigation_controller_impl.h"
+#include "content/browser/frame_host/navigator.h"
+#include "content/browser/frame_host/navigator_delegate.h"
#include "content/browser/frame_host/render_view_host_manager.h"
#include "content/browser/renderer_host/render_view_host_delegate.h"
#include "content/browser/renderer_host/render_widget_host_delegate.h"
@@ -49,6 +51,7 @@ class InterstitialPageImpl;
class JavaBridgeDispatcherHostManager;
class JavaScriptDialogManager;
class PowerSaveBlocker;
+class RenderFrameHost;
class RenderViewHost;
class RenderViewHostDelegateView;
class RenderViewHostImpl;
@@ -79,7 +82,8 @@ class CONTENT_EXPORT WebContentsImpl
public RenderWidgetHostDelegate,
public RenderViewHostManager::Delegate,
public NotificationObserver,
- public NON_EXPORTED_BASE(NavigationControllerDelegate) {
+ public NON_EXPORTED_BASE(NavigationControllerDelegate),
+ public NON_EXPORTED_BASE(NavigatorDelegate) {
public:
virtual ~WebContentsImpl();
@@ -287,12 +291,6 @@ class CONTENT_EXPORT WebContentsImpl
base::TerminationStatus status,
int error_code) OVERRIDE;
virtual void RenderViewDeleted(RenderViewHost* render_view_host) OVERRIDE;
- virtual void DidStartProvisionalLoadForFrame(
- RenderViewHost* render_view_host,
- int64 frame_id,
- int64 parent_frame_id,
- bool main_frame,
- const GURL& url) OVERRIDE;
virtual void DidRedirectProvisionalLoad(
RenderViewHost* render_view_host,
int32 page_id,
@@ -424,6 +422,21 @@ class CONTENT_EXPORT WebContentsImpl
SiteInstance* instance) OVERRIDE;
virtual FrameTree* GetFrameTree() OVERRIDE;
+ // NavigatorDelegate ---------------------------------------------------------
+
+ virtual void DidStartProvisionalLoad(
+ int64 frame_id,
+ int64 parent_frame_id,
+ bool is_main_frame,
+ const GURL& validated_url,
+ bool is_error_page,
+ bool is_iframe_srcdoc,
+ RenderFrameHost* render_frame_host) OVERRIDE;
Charlie Reis 2013/11/07 01:22:43 Since every one of these should take in the RFH, l
+
+ virtual void ProvisionalChangeToMainFrameUrl(
+ const GURL& url,
+ RenderFrameHost* render_frame_host) OVERRIDE;
+
// RenderWidgetHostDelegate --------------------------------------------------
virtual void RenderWidgetDeleted(
@@ -538,7 +551,6 @@ class CONTENT_EXPORT WebContentsImpl
bool is_loading,
LoadNotificationDetails* details) OVERRIDE;
-
private:
friend class NavigationControllerImpl;
friend class WebContentsObserver;
@@ -826,7 +838,7 @@ class CONTENT_EXPORT WebContentsImpl
// Manages creation and swapping of render views.
RenderViewHostManager render_manager_;
- // The frame tree structure of the current page.
+ // The frame tree hierarchy of the current page.
FrameTree frame_tree_;
#if defined(OS_ANDROID)

Powered by Google App Engine
This is Rietveld 408576698