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

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

Issue 1080143003: Move DidStartLoading, DidStopLoading, DidChangeLoadProgress to RFHI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 5 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.h
diff --git a/content/browser/frame_host/navigator.h b/content/browser/frame_host/navigator.h
index 7390426a8d41a72b0c59c68d440a1ba678270dde..5bd83d0c0eb2ee03d0683c7ecdc8dcfa3fd22542 100644
--- a/content/browser/frame_host/navigator.h
+++ b/content/browser/frame_host/navigator.h
@@ -88,6 +88,19 @@ class CONTENT_EXPORT Navigator : public base::RefCounted<Navigator> {
FrameTreeNode* frame_tree_node,
NavigationController::ReloadType reload_type);
+ // A RenderFrame in the specified |frame_tree_node| started loading a new
+ // document. This correponds 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(FrameTreeNode* frame_tree_node,
+ bool to_different_document) {}
+
+ // A document stopped loading. This corresponds to Blink's notion of the
+ // throbber stopping.
+ virtual void DidStopLoading() {}
+
+ // The load progress was changed.
+ virtual void DidChangeLoadProgress() {}
// Navigation requests -------------------------------------------------------

Powered by Google App Engine
This is Rietveld 408576698