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

Unified Diff: content/public/test/content_browser_test_utils.h

Issue 2052633002: Extend the ToRenderFrameHost magic to FrameTreeNode* and Shell* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix induced script bug. Created 4 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/public/test/content_browser_test_utils.h
diff --git a/content/public/test/content_browser_test_utils.h b/content/public/test/content_browser_test_utils.h
index 2258569b5035b3625735afd1f7a8cef1272f808b..e198b1ed4f74b64c7951f099942f55304a68dcbf 100644
--- a/content/public/test/content_browser_test_utils.h
+++ b/content/public/test/content_browser_test_utils.h
@@ -29,6 +29,7 @@ class Rect;
namespace content {
class MessageLoopRunner;
+class RenderFrameHost;
class Shell;
class WebContents;
@@ -80,6 +81,9 @@ void ReloadBypassingCacheBlockUntilNavigationsComplete(
// Wait until an application modal dialog is requested.
void WaitForAppModalDialog(Shell* window);
+// Extends the ToRenderFrameHost mechanism to content::Shells.
+RenderFrameHost* ConvertToRenderFrameHost(Shell* shell);
+
// Used to wait for a new Shell window to be created. Instantiate this object
// before the operation that will create the window.
class ShellAddedObserver {

Powered by Google App Engine
This is Rietveld 408576698