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

Unified Diff: content/child/web_url_loader_impl.cc

Issue 2484633004: Change Lo-Fi bool to bitmask to support multiple Previews types (Closed)
Patch Set: fix ContentResourceProviderTest Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/child/web_url_loader_impl.cc
diff --git a/content/child/web_url_loader_impl.cc b/content/child/web_url_loader_impl.cc
index de9efa92419f7285987d17b389ff222eda3407ed..c6793a4db5e25106cdfa05b0c03f501a8cab5f6d 100644
--- a/content/child/web_url_loader_impl.cc
+++ b/content/child/web_url_loader_impl.cc
@@ -600,7 +600,8 @@ void WebURLLoaderImpl::Context::Start(const WebURLRequest& request,
resource_request->do_not_prompt_for_login = true;
}
resource_request->report_raw_headers = request.reportRawHeaders();
- resource_request->lofi_state = static_cast<LoFiState>(request.getLoFiState());
+ resource_request->previews_state =
+ static_cast<PreviewsState>(request.getPreviewsState());
// PlzNavigate: during navigation, the renderer should request a stream which
// contains the body of the response. The network request has already been
@@ -1084,7 +1085,7 @@ void WebURLLoaderImpl::PopulateURLResponse(const GURL& url,
extra_data->set_was_alternate_protocol_available(
info.was_alternate_protocol_available);
extra_data->set_connection_info(info.connection_info);
- extra_data->set_is_using_lofi(info.is_using_lofi);
+ extra_data->set_previews_state(info.previews_state);
extra_data->set_effective_connection_type(info.effective_connection_type);
// If there's no received headers end time, don't set load timing. This is
« no previous file with comments | « content/browser/service_worker/link_header_support_unittest.cc ('k') | content/child/weburlresponse_extradata_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698