| Index: content/browser/renderer_host/test_render_view_host.h
|
| diff --git a/content/browser/renderer_host/test_render_view_host.h b/content/browser/renderer_host/test_render_view_host.h
|
| index 708583696ec5d66590c0a04d793a41676e669805..b4a0bec474df42060fe42feae4e80c98e15f020d 100644
|
| --- a/content/browser/renderer_host/test_render_view_host.h
|
| +++ b/content/browser/renderer_host/test_render_view_host.h
|
| @@ -229,6 +229,11 @@ class TestRenderViewHost
|
| virtual void SendNavigate(int page_id, const GURL& url) OVERRIDE;
|
| virtual void SendNavigateWithTransition(int page_id, const GURL& url,
|
| PageTransition transition) OVERRIDE;
|
| + virtual void SendNavigateWithOriginalRequestURL(
|
| + int page_id, const GURL& url, const GURL& original_request_url) OVERRIDE;
|
| + virtual void SendNavigateWithParameters(int page_id, const GURL& url,
|
| + PageTransition transition,
|
| + const GURL& original_url) OVERRIDE;
|
| virtual void SendShouldCloseACK(bool proceed) OVERRIDE;
|
| virtual void SetContentsMimeType(const std::string& mime_type) OVERRIDE;
|
| virtual void SimulateSwapOutACK() OVERRIDE;
|
| @@ -272,6 +277,10 @@ class TestRenderViewHost
|
| // False by default.
|
| void set_simulate_fetch_via_proxy(bool proxy);
|
|
|
| + const ViewMsg_Navigate_Params* last_params() const {
|
| + return last_params_;
|
| + }
|
| +
|
| // RenderViewHost overrides --------------------------------------------------
|
|
|
| virtual bool CreateRenderView(const string16& frame_name,
|
| @@ -280,6 +289,7 @@ class TestRenderViewHost
|
| const std::string& embedder_channel_name,
|
| int embedder_container_id) OVERRIDE;
|
| virtual bool IsRenderViewLive() const OVERRIDE;
|
| + virtual void Navigate(const ViewMsg_Navigate_Params& params) OVERRIDE;
|
|
|
| private:
|
| FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, FilterNavigate);
|
| @@ -297,6 +307,9 @@ class TestRenderViewHost
|
| // See SetContentsMimeType() above.
|
| std::string contents_mime_type_;
|
|
|
| + // Tracks the last parameters when triggering a navigation.
|
| + ViewMsg_Navigate_Params* last_params_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(TestRenderViewHost);
|
| };
|
|
|
|
|