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

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

Issue 263973003: Move LoadProgressTracker to the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/navigator_delegate.h
diff --git a/content/browser/frame_host/navigator_delegate.h b/content/browser/frame_host/navigator_delegate.h
index 369ee8fec1572baf23796010a1c6d15a521a6c56..0d2dae8c217c5dd9f2228f4ec027e1a2129f8494 100644
--- a/content/browser/frame_host/navigator_delegate.h
+++ b/content/browser/frame_host/navigator_delegate.h
@@ -95,6 +95,22 @@ class CONTENT_EXPORT NavigatorDelegate {
const GURL& url,
NavigationController::ReloadType reload_type) {}
+ // The RenderFrame began loading a new page. This corresponds to Blink's
+ // notion of the throbber starting.
+ // |to_different_document| will be true unless the load is a fragment
+ // navigation, or triggered by history.pushState/replaceState.
+ virtual void DidStartLoading(RenderFrameHostImpl* render_frame_host,
+ bool to_different_document) {}
+
+ // The RenderFrame stopped loading a page. This corresponds to Blink's notion
+ // of the throbber stopping.
+ virtual void DidStopLoading(RenderFrameHostImpl* render_frame_host) {}
+
+ // The page made progress loading.
nasko 2014/05/02 22:48:23 nit: Why break up the line in the middle, it has l
Avi (use Gerrit) 2014/05/05 15:15:02 Done.
+ // |progress| is a value between 0 (nothing loaded) to 1.0 (page entirely
+ // loaded).
+ virtual void DidChangeLoadProgress(double progress) {}
+
// Opens a URL with the given parameters. See PageNavigator::OpenURL, which
// this forwards to.
virtual void RequestOpenURL(RenderFrameHostImpl* render_frame_host,

Powered by Google App Engine
This is Rietveld 408576698