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

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: Some cleanup. 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/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..a1b1a5b9e559e16538b64b0a74d8305a49f58860 100644
--- a/content/browser/frame_host/navigator_delegate.h
+++ b/content/browser/frame_host/navigator_delegate.h
@@ -12,10 +12,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:
+ virtual void DidStartProvisionalLoad(
Charlie Reis 2013/11/21 21:59:32 This is where these methods should be documented.
nasko 2013/11/22 01:02:34 Done.
+ 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) = 0;
Charlie Reis 2013/11/21 21:59:32 These should have default implementations that do
nasko 2013/11/22 01:02:34 Done.
+
+ virtual void NotifyProvisionalChangeToMainFrameUrl(
+ RenderFrameHostImpl* render_frame_host,
+ const GURL& url) = 0;
+
+ virtual void NotifyNavigationStateChanged(unsigned changed_flags) = 0;
+
};
} // namspace content

Powered by Google App Engine
This is Rietveld 408576698