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

Unified Diff: content/test/test_web_contents.cc

Issue 1048463004: PlzNavigate: track pending commits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed DCHECK + rebase Created 5 years, 8 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
« content/test/test_web_contents.h ('K') | « content/test/test_web_contents.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_web_contents.cc
diff --git a/content/test/test_web_contents.cc b/content/test/test_web_contents.cc
index a3e164a60a72a8185f315f585833a564b6197a6c..e7ae3836deea78bf109819dd376f78a51c4dc7b5 100644
--- a/content/test/test_web_contents.cc
+++ b/content/test/test_web_contents.cc
@@ -103,6 +103,17 @@ void TestWebContents::TestDidNavigateWithReferrer(
rfhi->frame_tree_node()->navigator()->DidNavigate(rfhi, params);
}
+bool TestWebContents::CrossNavigationPending() {
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableBrowserSideNavigation)) {
+ return GetRenderManager()->speculative_render_frame_host_ &&
+ static_cast<TestRenderFrameHost*>(
+ GetRenderManager()->speculative_render_frame_host_.get())
+ ->pending_commit();
+ }
+ return GetRenderManager()->cross_navigation_pending_;
+}
+
bool TestWebContents::CreateRenderViewForRenderManager(
RenderViewHost* render_view_host,
int opener_route_id,
« content/test/test_web_contents.h ('K') | « content/test/test_web_contents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698