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

Unified Diff: content/renderer/render_frame_impl.h

Issue 180113003: Prepare for per frame did{Start,Stop}Loading calls (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix progress calculation, add test Created 6 years, 9 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/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 82fcfbc5ed75fa2b9955b641e4b5779c07062db1..4022c11f5c9f4df4ee552b15ed1069cd40d00d9a 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -99,8 +99,9 @@ class CONTENT_EXPORT RenderFrameImpl
// TODO(nasko): Those are page-level methods at this time and come from
// WebViewClient. We should move them to be WebFrameClient calls and put
// logic in the browser side to balance starts/stops.
- void didStartLoading();
- void didStopLoading();
+ virtual void didStartLoading(bool to_different_document);
+ virtual void didStopLoading();
+ virtual void didChangeLoadProgress(double load_progress);
#if defined(ENABLE_PLUGINS)
// Notification that a PPAPI plugin has been created.
@@ -401,6 +402,7 @@ class CONTENT_EXPORT RenderFrameImpl
base::WeakPtr<RenderViewImpl> render_view_;
int routing_id_;
+ bool is_loading_;
bool is_swapped_out_;
bool is_detaching_;

Powered by Google App Engine
This is Rietveld 408576698