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

Side by Side Diff: content/test/test_render_frame.cc

Issue 1693563002: PROTOTYPE: PlzNavigate: use a Mojo data pipe to stream navigation data to the renderer. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Browser sends URLRequest id to the renderer and renderer uses intermediary buffer for data: none he… Created 4 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 unified diff | Download patch
« no previous file with comments | « content/test/test_navigation_url_loader.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/test/test_navigation_url_loader.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698