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

Unified Diff: content/test/test_web_contents.h

Issue 701953006: PlzNavigate: Speculatively spawns a renderer process for navigations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed missing references to |base| namespace. Created 6 years 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_web_contents.h
diff --git a/content/test/test_web_contents.h b/content/test/test_web_contents.h
index 8e3c2b55f382e97046ed300a1fbcd5cd4df6e19a..7c10013093fbf4f9bc7ceb30853a998e856b5bf1 100644
--- a/content/test/test_web_contents.h
+++ b/content/test/test_web_contents.h
@@ -117,6 +117,16 @@ class TestWebContents : public WebContentsImpl, public WebContentsTester {
void ShowCreatedWidget(int route_id, const gfx::Rect& initial_pos) override;
void ShowCreatedFullscreenWidget(int route_id) override;
+ // PlzNavigate
+ // Gets the speculative RenderFrameHost, if any, for the main frame.
+ TestRenderFrameHost* GetSpeculativeMainFrame() const;
clamy 2014/12/29 17:36:22 This method is currently private and used exactly
carlosk 2014/12/30 15:54:50 Done.
+
+ // PlzNavigate
+ // Gets the whether the pending or the speculative RenderFrameHost, whichever
+ // makes sense for the current environment. Returns nullptr if the selected
+ // RenderFrameHost is not set.
+ TestRenderFrameHost* GetFutureMainFrame() const;
clamy 2014/12/29 17:36:22 This method should not be private as we expect to
carlosk 2014/12/30 15:54:50 Done.
+
RenderViewHostDelegateView* delegate_view_override_;
// Expectations for arguments of |SetHistoryOffsetAndLength()|.

Powered by Google App Engine
This is Rietveld 408576698