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

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

Issue 1310743003: Consistently use LoFi for an entire page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments Created 5 years, 3 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/child/web_url_loader_impl.h" 5 #include "content/child/web_url_loader_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 WebURLResponseExtraDataImpl* extra_data = 1023 WebURLResponseExtraDataImpl* extra_data =
1024 new WebURLResponseExtraDataImpl(info.npn_negotiated_protocol); 1024 new WebURLResponseExtraDataImpl(info.npn_negotiated_protocol);
1025 response->setExtraData(extra_data); 1025 response->setExtraData(extra_data);
1026 extra_data->set_was_fetched_via_spdy(info.was_fetched_via_spdy); 1026 extra_data->set_was_fetched_via_spdy(info.was_fetched_via_spdy);
1027 extra_data->set_was_npn_negotiated(info.was_npn_negotiated); 1027 extra_data->set_was_npn_negotiated(info.was_npn_negotiated);
1028 extra_data->set_was_alternate_protocol_available( 1028 extra_data->set_was_alternate_protocol_available(
1029 info.was_alternate_protocol_available); 1029 info.was_alternate_protocol_available);
1030 extra_data->set_connection_info(info.connection_info); 1030 extra_data->set_connection_info(info.connection_info);
1031 extra_data->set_was_fetched_via_proxy(info.was_fetched_via_proxy); 1031 extra_data->set_was_fetched_via_proxy(info.was_fetched_via_proxy);
1032 extra_data->set_proxy_server(info.proxy_server); 1032 extra_data->set_proxy_server(info.proxy_server);
1033 extra_data->set_is_lofi(info.is_lofi);
1033 1034
1034 // If there's no received headers end time, don't set load timing. This is 1035 // If there's no received headers end time, don't set load timing. This is
1035 // the case for non-HTTP requests, requests that don't go over the wire, and 1036 // the case for non-HTTP requests, requests that don't go over the wire, and
1036 // certain error cases. 1037 // certain error cases.
1037 if (!info.load_timing.receive_headers_end.is_null()) { 1038 if (!info.load_timing.receive_headers_end.is_null()) {
1038 WebURLLoadTiming timing; 1039 WebURLLoadTiming timing;
1039 PopulateURLLoadTiming(info.load_timing, &timing); 1040 PopulateURLLoadTiming(info.load_timing, &timing);
1040 const TimeTicks kNullTicks; 1041 const TimeTicks kNullTicks;
1041 timing.setWorkerStart( 1042 timing.setWorkerStart(
1042 (info.service_worker_start_time - kNullTicks).InSecondsF()); 1043 (info.service_worker_start_time - kNullTicks).InSecondsF());
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
1164 int intra_priority_value) { 1165 int intra_priority_value) {
1165 context_->DidChangePriority(new_priority, intra_priority_value); 1166 context_->DidChangePriority(new_priority, intra_priority_value);
1166 } 1167 }
1167 1168
1168 bool WebURLLoaderImpl::attachThreadedDataReceiver( 1169 bool WebURLLoaderImpl::attachThreadedDataReceiver(
1169 blink::WebThreadedDataReceiver* threaded_data_receiver) { 1170 blink::WebThreadedDataReceiver* threaded_data_receiver) {
1170 return context_->AttachThreadedDataReceiver(threaded_data_receiver); 1171 return context_->AttachThreadedDataReceiver(threaded_data_receiver);
1171 } 1172 }
1172 1173
1173 } // namespace content 1174 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698