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

Side by Side Diff: content/browser/loader/navigation_url_loader_impl.cc

Issue 2797443005: PlzNavigate data pipe
Patch Set: cleanup 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 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/browser/loader/navigation_url_loader_impl.h" 5 #include "content/browser/loader/navigation_url_loader_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 void NavigationURLLoaderImpl::NotifyRequestRedirected( 87 void NavigationURLLoaderImpl::NotifyRequestRedirected(
88 const net::RedirectInfo& redirect_info, 88 const net::RedirectInfo& redirect_info,
89 const scoped_refptr<ResourceResponse>& response) { 89 const scoped_refptr<ResourceResponse>& response) {
90 DCHECK_CURRENTLY_ON(BrowserThread::UI); 90 DCHECK_CURRENTLY_ON(BrowserThread::UI);
91 91
92 delegate_->OnRequestRedirected(redirect_info, response); 92 delegate_->OnRequestRedirected(redirect_info, response);
93 } 93 }
94 94
95 void NavigationURLLoaderImpl::NotifyResponseStarted( 95 void NavigationURLLoaderImpl::NotifyResponseStarted(
96 const scoped_refptr<ResourceResponse>& response, 96 const scoped_refptr<ResourceResponse>& response,
97 std::unique_ptr<StreamHandle> body, 97 mojo::ScopedDataPipeConsumerHandle consumer_handle,
98 const SSLStatus& ssl_status, 98 const SSLStatus& ssl_status,
99 std::unique_ptr<NavigationData> navigation_data, 99 std::unique_ptr<NavigationData> navigation_data,
100 const GlobalRequestID& request_id, 100 const GlobalRequestID& request_id,
101 bool is_download, 101 bool is_download,
102 bool is_stream) { 102 bool is_stream) {
103 DCHECK_CURRENTLY_ON(BrowserThread::UI); 103 DCHECK_CURRENTLY_ON(BrowserThread::UI);
104 104
105 delegate_->OnResponseStarted(response, std::move(body), ssl_status, 105 delegate_->OnResponseStarted(response, std::move(consumer_handle), ssl_status,
106 std::move(navigation_data), request_id, 106 std::move(navigation_data), request_id,
107 is_download, is_stream); 107 is_download, is_stream);
108 } 108 }
109 109
110 void NavigationURLLoaderImpl::NotifyRequestFailed(bool in_cache, 110 void NavigationURLLoaderImpl::NotifyRequestFailed(bool in_cache,
111 int net_error) { 111 int net_error) {
112 DCHECK_CURRENTLY_ON(BrowserThread::UI); 112 DCHECK_CURRENTLY_ON(BrowserThread::UI);
113 113
114 delegate_->OnRequestFailed(in_cache, net_error); 114 delegate_->OnRequestFailed(in_cache, net_error);
115 } 115 }
116 116
117 void NavigationURLLoaderImpl::NotifyRequestStarted(base::TimeTicks timestamp) { 117 void NavigationURLLoaderImpl::NotifyRequestStarted(base::TimeTicks timestamp) {
118 DCHECK_CURRENTLY_ON(BrowserThread::UI); 118 DCHECK_CURRENTLY_ON(BrowserThread::UI);
119 119
120 delegate_->OnRequestStarted(timestamp); 120 delegate_->OnRequestStarted(timestamp);
121 } 121 }
122 122
123 } // namespace content 123 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/navigation_url_loader_impl.h ('k') | content/browser/loader/navigation_url_loader_impl_core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698