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

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: Rebase. 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 854a14fb39eb6abccd5f67bfb50b090e34e1bcc4..b554511c13d7140f2730d168aab4ab12c184e2cc 100644
--- a/content/browser/frame_host/render_frame_host_impl.h
+++ b/content/browser/frame_host/render_frame_host_impl.h
@@ -118,6 +118,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.
@@ -167,6 +171,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;
« no previous file with comments | « content/browser/frame_host/render_frame_host_delegate.cc ('k') | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698