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

Unified Diff: content/renderer/history_controller.h

Issue 1693353002: Reland #2 Remove the is_loading_ field from WebContentsImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Checking whether the frame is loading on history navigations Created 4 years, 10 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/history_controller.h
diff --git a/content/renderer/history_controller.h b/content/renderer/history_controller.h
index c8b00f2d33fda90be84e1bf6b7c1ebde3762ab81..451501c622413b51e69e74a2e80c443f61273cc7 100644
--- a/content/renderer/history_controller.h
+++ b/content/renderer/history_controller.h
@@ -117,7 +117,9 @@ class CONTENT_EXPORT HistoryController {
provisional_entry_ = std::move(entry);
}
- void GoToEntry(blink::WebLocalFrame* main_frame,
+ // Return true if the main frame ended up loading a request as part of the
+ // history navigation.
+ bool GoToEntry(blink::WebLocalFrame* main_frame,
Charlie Reis 2016/02/17 05:15:28 Hmm, I'm not thrilled with this change, partly bec
clamy 2016/02/17 14:42:06 With the change, we set is_loading_ to true at the
Charlie Reis 2016/02/17 23:34:26 I see, so it's just a consequence of the old desig
clamy 2016/02/18 17:20:27 That's what I did initially and that caused the re
Charlie Reis 2016/02/19 05:24:54 Sigh. I would say that we should understand why t
scoped_ptr<HistoryEntry> entry,
scoped_ptr<NavigationParams> navigation_params,
blink::WebURLRequest::CachePolicy cache_policy);

Powered by Google App Engine
This is Rietveld 408576698