Chromium Code Reviews

Unified Diff: content/public/browser/web_contents.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: Added test. Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: content/public/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 8a717b86dd9212e5a6b2539348155a13d8a45511..e062131873fafef92add7b08b1138550d96a27ca 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -347,6 +347,14 @@ class WebContents : public PageNavigator,
// Reloads the focused frame.
virtual void ReloadFocusedFrame(bool ignore_cache) = 0;
+ // Notifies the TransitionRequestManager that the main frame navigation is
+ // a transition navigation.
+ virtual void SetHasPendingTransitionRequest(bool has_pending_transition) = 0;
+
+ // Notifies the main frame that it can continue navigation (if it was deferred
+ // immediately at first response).
+ virtual void ResumeResponseDeferredAtStart() = 0;
+
// Editing commands ----------------------------------------------------------
virtual void Undo() = 0;

Powered by Google App Engine