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

Unified Diff: content/test/test_render_frame_host.h

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
Index: content/test/test_render_frame_host.h
diff --git a/content/test/test_render_frame_host.h b/content/test/test_render_frame_host.h
index ebc79575e1d1e13f2ea22447b9f9ad68b658c889..16045004e7f348f58eda7a92151e09e8e8b10248 100644
--- a/content/test/test_render_frame_host.h
+++ b/content/test/test_render_frame_host.h
@@ -86,6 +86,9 @@ class TestRenderFrameHost : public RenderFrameHostImpl,
const base::FilePath* file_path_for_history_item,
const std::vector<GURL>& redirects);
+ // Simulate a renderer-initiated navigation up until commit.
+ void NavigateAndCommitRendererInitiated(int page_id, const GURL& url);
+
// With the current navigation logic this method is a no-op.
// PlzNavigate: this method simulates receiving a BeginNavigation IPC.
void SendRendererInitiatedNavigationRequest(const GURL& url,
@@ -114,6 +117,10 @@ class TestRenderFrameHost : public RenderFrameHostImpl,
// redirect step is ignored.
void PrepareForCommitWithServerRedirect(const GURL& redirect_url);
+ // PlzNavigate
+ void set_pending_commit(bool pending) { pending_commit_ = pending; }
+ bool pending_commit() const { return pending_commit_; }
+
private:
TestRenderFrameHostCreationObserver child_creation_observer_;

Powered by Google App Engine
This is Rietveld 408576698