Chromium Code Reviews| Index: content/test/test_render_frame_host.h |
| diff --git a/content/test/test_render_frame_host.h b/content/test/test_render_frame_host.h |
| index 34752ce138279a04c376dbe0322b880301d32f36..302d433596ddad8caccad63bb2ae9d11e0473174 100644 |
| --- a/content/test/test_render_frame_host.h |
| +++ b/content/test/test_render_frame_host.h |
| @@ -107,20 +107,24 @@ class TestRenderFrameHost : public RenderFrameHostImpl, |
| void DidEnforceStrictMixedContentChecking(); |
| // If set, navigations will appear to have cleared the history list in the |
| // RenderFrame |
| // (FrameHostMsg_DidCommitProvisionalLoad_Params::history_list_was_cleared). |
| // False by default. |
| void set_simulate_history_list_was_cleared(bool cleared) { |
| simulate_history_list_was_cleared_ = cleared; |
| } |
| + void set_simulate_fetch_via_data_reduction_proxy(bool enabled) { |
|
bengr
2016/02/26 22:53:58
Add a comment.
RyanSturm
2016/03/01 19:36:04
Done.
|
| + simulate_fetch_via_data_reduction_proxy_ = enabled; |
| + } |
| + |
| // Advances the RenderFrameHost (and through it the RenderFrameHostManager) to |
| // a state where a new navigation can be committed by a renderer. Currently, |
| // this simulates a BeforeUnload ACK from the renderer. |
| // PlzNavigate: this simulates a BeforeUnload ACK from the renderer, and the |
| // interaction with the IO thread up until the response is ready to commit. |
| void PrepareForCommit(); |
| // This method does the same as PrepareForCommit. |
| // PlzNavigate: Beyond doing the same as PrepareForCommit, this method will |
| // also simulate a server redirect to |redirect_url|. If the URL is empty the |
| @@ -142,17 +146,17 @@ class TestRenderFrameHost : public RenderFrameHostImpl, |
| // Computes the page ID for a pending navigation in this RenderFrameHost; |
| int32_t ComputeNextPageID(); |
| TestRenderFrameHostCreationObserver child_creation_observer_; |
| std::string contents_mime_type_; |
| // See set_simulate_history_list_was_cleared() above. |
| bool simulate_history_list_was_cleared_; |
| - |
| + bool simulate_fetch_via_data_reduction_proxy_; |
| DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); |
| }; |
| } // namespace content |
| #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ |