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

Side by Side Diff: content/child/web_url_loader_impl.cc

Issue 2114213002: Fix loading placeholders for Lo-Fi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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/child/resource_dispatcher.cc ('k') | content/renderer/render_frame_impl.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 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/child/web_url_loader_impl.h" 5 #include "content/child/web_url_loader_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 GetFetchCredentialsModeForWebURLRequest(request); 543 GetFetchCredentialsModeForWebURLRequest(request);
544 request_info.fetch_redirect_mode = 544 request_info.fetch_redirect_mode =
545 GetFetchRedirectModeForWebURLRequest(request); 545 GetFetchRedirectModeForWebURLRequest(request);
546 request_info.fetch_request_context_type = 546 request_info.fetch_request_context_type =
547 GetRequestContextTypeForWebURLRequest(request); 547 GetRequestContextTypeForWebURLRequest(request);
548 request_info.fetch_frame_type = 548 request_info.fetch_frame_type =
549 GetRequestContextFrameTypeForWebURLRequest(request); 549 GetRequestContextFrameTypeForWebURLRequest(request);
550 request_info.extra_data = request.getExtraData(); 550 request_info.extra_data = request.getExtraData();
551 request_info.report_raw_headers = request.reportRawHeaders(); 551 request_info.report_raw_headers = request.reportRawHeaders();
552 request_info.loading_web_task_runner.reset(web_task_runner_->clone()); 552 request_info.loading_web_task_runner.reset(web_task_runner_->clone());
553 request_info.lofi_state = static_cast<LoFiState>(request.getLoFiState());
553 554
554 scoped_refptr<ResourceRequestBodyImpl> request_body = 555 scoped_refptr<ResourceRequestBodyImpl> request_body =
555 GetRequestBodyForWebURLRequest(request).get(); 556 GetRequestBodyForWebURLRequest(request).get();
556 557
557 // PlzNavigate: during navigation, the renderer should request a stream which 558 // PlzNavigate: during navigation, the renderer should request a stream which
558 // contains the body of the response. The network request has already been 559 // contains the body of the response. The network request has already been
559 // made by the browser. 560 // made by the browser.
560 if (stream_override_.get()) { 561 if (stream_override_.get()) {
561 CHECK(IsBrowserSideNavigationEnabled()); 562 CHECK(IsBrowserSideNavigationEnabled());
562 DCHECK(!sync_load_response); 563 DCHECK(!sync_load_response);
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
1226 response->clearHTTPHeaderField(webStringName); 1227 response->clearHTTPHeaderField(webStringName);
1227 while (response_headers->EnumerateHeader(&iterator, name, &value)) { 1228 while (response_headers->EnumerateHeader(&iterator, name, &value)) {
1228 response->addHTTPHeaderField(webStringName, 1229 response->addHTTPHeaderField(webStringName,
1229 WebString::fromLatin1(value)); 1230 WebString::fromLatin1(value));
1230 } 1231 }
1231 } 1232 }
1232 return true; 1233 return true;
1233 } 1234 }
1234 1235
1235 } // namespace content 1236 } // namespace content
OLDNEW
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698