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

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

Issue 10704048: [RDS] Reloads a page using the original request URL (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Adding unit test & removing public function Created 8 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/test_renderer_host.h
diff --git a/content/public/test/test_renderer_host.h b/content/public/test/test_renderer_host.h
index 9e7d70e21b8d5f43236aea657b0f46dd6e517a04..afa67ed709deb7e004bf9e19dd6c2ab14bb6a6d6 100644
--- a/content/public/test/test_renderer_host.h
+++ b/content/public/test/test_renderer_host.h
@@ -87,6 +87,20 @@ class RenderViewHostTester {
virtual void SendNavigateWithTransition(int page_id, const GURL& url,
PageTransition transition) = 0;
+ // Calls OnMsgNavigate on the RenderViewHost with the given information,
+ // including a custom original request URL. Sets the rest of the
+ // parameters in the message to the "typical" values. This is a helper
+ // function for simulating the most common types of loads.
+ virtual void SendNavigateWithOriginalRequestURL(
jam 2012/07/03 05:50:12 nit: only add methods to the public class if they'
gone 2012/07/03 18:24:39 Moved over
+ int page_id, const GURL& url, const GURL& original_request_url) = 0;
+
+ // Calls OnMsgNavigate on the RenderViewHost with the given information.
+ // Sets the rest of the parameters in the message to the "typical" values.
+ // This is a helper function for simulating the most common types of loads.
+ virtual void SendNavigateWithParameters(
+ int page_id, const GURL& url, PageTransition transition,
+ const GURL& original_request_url) = 0;
+
// Calls OnMsgShouldCloseACK on the RenderViewHost with the given parameter.
virtual void SendShouldCloseACK(bool proceed) = 0;

Powered by Google App Engine
This is Rietveld 408576698