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

Side by Side Diff: content/test/test_navigation_url_loader.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/renderer/render_frame_impl.cc ('k') | content/test/test_render_frame.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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_navigation_url_loader.h" 5 #include "content/test/test_navigation_url_loader.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "content/browser/loader/navigation_url_loader_delegate.h" 9 #include "content/browser/loader/navigation_url_loader_delegate.h"
10 #include "content/public/browser/stream_handle.h" 10 #include "content/public/browser/stream_handle.h"
(...skipping 29 matching lines...) Expand all
40 40
41 void TestNavigationURLLoader::CallOnRequestRedirected( 41 void TestNavigationURLLoader::CallOnRequestRedirected(
42 const net::RedirectInfo& redirect_info, 42 const net::RedirectInfo& redirect_info,
43 const scoped_refptr<ResourceResponse>& response) { 43 const scoped_refptr<ResourceResponse>& response) {
44 delegate_->OnRequestRedirected(redirect_info, response); 44 delegate_->OnRequestRedirected(redirect_info, response);
45 } 45 }
46 46
47 void TestNavigationURLLoader::CallOnResponseStarted( 47 void TestNavigationURLLoader::CallOnResponseStarted(
48 const scoped_refptr<ResourceResponse>& response, 48 const scoped_refptr<ResourceResponse>& response,
49 scoped_ptr<StreamHandle> body) { 49 scoped_ptr<StreamHandle> body) {
50 delegate_->OnResponseStarted(response, std::move(body)); 50 delegate_->OnResponseStarted(response, std::move(body),
51 mojo::ScopedDataPipeConsumerHandle());
51 } 52 }
52 53
53 TestNavigationURLLoader::~TestNavigationURLLoader() {} 54 TestNavigationURLLoader::~TestNavigationURLLoader() {}
54 55
55 } // namespace content 56 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/test/test_render_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698