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

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

Issue 2813243002: network service: pass PlzNavigate resulting data via mojo data pipe (Closed)
Patch Set: . Created 3 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
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/global_request_id.h" 10 #include "content/public/browser/global_request_id.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 void TestNavigationURLLoader::CallOnRequestRedirected( 49 void TestNavigationURLLoader::CallOnRequestRedirected(
50 const net::RedirectInfo& redirect_info, 50 const net::RedirectInfo& redirect_info,
51 const scoped_refptr<ResourceResponse>& response) { 51 const scoped_refptr<ResourceResponse>& response) {
52 delegate_->OnRequestRedirected(redirect_info, response); 52 delegate_->OnRequestRedirected(redirect_info, response);
53 } 53 }
54 54
55 void TestNavigationURLLoader::CallOnResponseStarted( 55 void TestNavigationURLLoader::CallOnResponseStarted(
56 const scoped_refptr<ResourceResponse>& response, 56 const scoped_refptr<ResourceResponse>& response,
57 std::unique_ptr<StreamHandle> body, 57 std::unique_ptr<StreamHandle> body,
58 std::unique_ptr<NavigationData> navigation_data) { 58 std::unique_ptr<NavigationData> navigation_data) {
59 delegate_->OnResponseStarted(response, std::move(body), SSLStatus(), 59 delegate_->OnResponseStarted(
60 std::move(navigation_data), GlobalRequestID(), 60 response, std::move(body), mojo::ScopedDataPipeConsumerHandle(),
61 false, false); 61 SSLStatus(), std::move(navigation_data), GlobalRequestID(), false, false);
62 } 62 }
63 63
64 TestNavigationURLLoader::~TestNavigationURLLoader() {} 64 TestNavigationURLLoader::~TestNavigationURLLoader() {}
65 65
66 } // namespace content 66 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698