| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/test/test_render_frame.h" | 5 #include "content/test/test_render_frame.h" |
| 6 | 6 |
| 7 #include "content/common/navigation_params.h" | 7 #include "content/common/navigation_params.h" |
| 8 #include "content/public/common/browser_side_navigation_policy.h" | 8 #include "content/public/common/browser_side_navigation_policy.h" |
| 9 #include "content/public/common/resource_response.h" | 9 #include "content/public/common/resource_response.h" |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 } | 21 } |
| 22 | 22 |
| 23 TestRenderFrame::~TestRenderFrame() { | 23 TestRenderFrame::~TestRenderFrame() { |
| 24 } | 24 } |
| 25 | 25 |
| 26 void TestRenderFrame::Navigate(const CommonNavigationParams& common_params, | 26 void TestRenderFrame::Navigate(const CommonNavigationParams& common_params, |
| 27 const StartNavigationParams& start_params, | 27 const StartNavigationParams& start_params, |
| 28 const RequestNavigationParams& request_params) { | 28 const RequestNavigationParams& request_params) { |
| 29 // PlzNavigate | 29 // PlzNavigate |
| 30 if (IsBrowserSideNavigationEnabled()) { | 30 if (IsBrowserSideNavigationEnabled()) { |
| 31 const int32_t fixed_commit_id = 987654321; |
| 31 OnCommitNavigation(ResourceResponseHead(), GURL(), common_params, | 32 OnCommitNavigation(ResourceResponseHead(), GURL(), common_params, |
| 32 request_params); | 33 request_params, fixed_commit_id); |
| 34 ReceiveNavigationDataPipeConsumerHandle( |
| 35 mojo::ScopedDataPipeConsumerHandle(), fixed_commit_id); |
| 33 } else { | 36 } else { |
| 34 OnNavigate(common_params, start_params, request_params); | 37 OnNavigate(common_params, start_params, request_params); |
| 35 } | 38 } |
| 36 } | 39 } |
| 37 | 40 |
| 38 void TestRenderFrame::SwapOut( | 41 void TestRenderFrame::SwapOut( |
| 39 int proxy_routing_id, | 42 int proxy_routing_id, |
| 40 bool is_loading, | 43 bool is_loading, |
| 41 const FrameReplicationState& replicated_frame_state) { | 44 const FrameReplicationState& replicated_frame_state) { |
| 42 OnSwapOut(proxy_routing_id, is_loading, replicated_frame_state); | 45 OnSwapOut(proxy_routing_id, is_loading, replicated_frame_state); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 59 } | 62 } |
| 60 | 63 |
| 61 void TestRenderFrame::SetCompositionFromExistingText( | 64 void TestRenderFrame::SetCompositionFromExistingText( |
| 62 int start, | 65 int start, |
| 63 int end, | 66 int end, |
| 64 const std::vector<blink::WebCompositionUnderline>& underlines) { | 67 const std::vector<blink::WebCompositionUnderline>& underlines) { |
| 65 OnSetCompositionFromExistingText(start, end, underlines); | 68 OnSetCompositionFromExistingText(start, end, underlines); |
| 66 } | 69 } |
| 67 | 70 |
| 68 } // namespace content | 71 } // namespace content |
| OLD | NEW |