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

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

Issue 248963007: Perform navigation policy check on UI thread for --site-per-process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some minor cleanup. Created 6 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/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 8c6d7bdc364467f5f1bbee8fb989eea1f23aa7e6..e69ead7c29a02a7b11745e5ea77e26e6cf4a97ae 100644
--- a/content/public/test/content_browser_test_utils.h
+++ b/content/public/test/content_browser_test_utils.h
@@ -25,6 +25,7 @@ class Rect;
namespace content {
class MessageLoopRunner;
+class RenderFrameHostImpl;
class Shell;
// Generate the file path for testing a particular test.
@@ -47,6 +48,10 @@ void LoadDataWithBaseURL(Shell* window,
const std::string data,
const GURL& base_url);
+// Navigates the frame represented by |rfh| to |url|, blocking until the
+// navigation finishes.
+void NavigateFrameToURL(RenderFrameHostImpl* rfh, const GURL& url);
+
// Navigates the selected tab of |window| to |url|, blocking until the given
// number of navigations finishes.
void NavigateToURLBlockUntilNavigationsComplete(Shell* window,

Powered by Google App Engine
This is Rietveld 408576698