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

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

Issue 297973002: Navigation transitions: Block first response until after transitions have run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes from review. Created 6 years, 6 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/render_frame_host_impl.h
diff --git a/content/browser/frame_host/render_frame_host_impl.h b/content/browser/frame_host/render_frame_host_impl.h
index 835f6e70841288bd6687f9aad5693a266f498d2e..a4a780b15888f97f62d2d7d054819eefb48f72a7 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -114,6 +114,10 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost {
PageTransition page_transition,
bool should_replace_current_entry);
+ // Called on the current RenderFrameHost when the network response is first
+ // receieved.
+ void OnDeferredAfterResponseStarted(const GlobalRequestID& global_request_id);
+
// Tells the renderer that this RenderFrame is being swapped out for one in a
// different renderer process. It should run its unload handler, move to
// a blank document and create a RenderFrameProxy to replace the RenderFrame.
@@ -163,6 +167,11 @@ class CONTENT_EXPORT RenderFrameHostImpl : public RenderFrameHost {
// Called when an HTML5 notification is closed.
void NotificationClosed(int notification_id);
+ // Sets whether there is an outstanding transition request. This is called at
+ // the start of a provisional load for the main frame, and cleared when we
+ // hear the response or commit.
+ void SetHasPendingTransitionRequest(bool has_pending_request);
+
protected:
friend class RenderFrameHostFactory;

Powered by Google App Engine
This is Rietveld 408576698