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

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

Issue 26316005: Move out DidStartProvisionalLoad from WebContentsImpl into Navigator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes based on Charlie's latest review. Created 7 years 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
« no previous file with comments | « content/browser/frame_host/navigator.h ('k') | content/browser/frame_host/navigator_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/navigator_delegate.h
diff --git a/content/browser/frame_host/navigator_delegate.h b/content/browser/frame_host/navigator_delegate.h
index c906b6b111e0e7ab234328e9d89408a93a7bcf31..62b5b48b0bb17e39748c25910ae540022d773b96 100644
--- a/content/browser/frame_host/navigator_delegate.h
+++ b/content/browser/frame_host/navigator_delegate.h
@@ -5,6 +5,8 @@
#ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_
#define CONTENT_BROWSER_FRAME_HOST_NAVIGATOR_DELEGATE_H_
+#include "content/public/browser/invalidate_type.h"
+
namespace content {
class RenderFrameHost;
@@ -12,10 +14,22 @@ class RenderFrameHost;
// A delegate API used by Navigator to notify its embedder of navigation
// related events.
class NavigatorDelegate {
- // TODO(nasko): This class will be used to dispatch notifications to
- // WebContentsImpl, such as DidStartProvisionalLoad and
- // NotifyNavigationStateChanged. Longer term, most of the
- // NavigationControllerDelegate methods will likely move here.
+ public:
+ // The RenderFrameHost started a provisional load for the frame
+ // represented by |render_frame_host|.
+ virtual void DidStartProvisionalLoad(
+ RenderFrameHostImpl* render_frame_host,
+ int64 frame_id,
+ int64 parent_frame_id,
+ bool is_main_frame,
+ const GURL& validated_url,
+ bool is_error_page,
+ bool is_iframe_srcdoc) {}
+
+ // Notification to the Navigator embedder that navigation state has
+ // changed. This method corresponds to
+ // WebContents::NotifyNavigationStateChanged.
+ virtual void NotifyChangedNavigationState(InvalidateTypes changed_flags) {}
};
} // namspace content
« no previous file with comments | « content/browser/frame_host/navigator.h ('k') | content/browser/frame_host/navigator_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698