OLD | NEW |
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 1011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1022 WebURLResponseExtraDataImpl* extra_data = | 1022 WebURLResponseExtraDataImpl* extra_data = |
1023 new WebURLResponseExtraDataImpl(info.npn_negotiated_protocol); | 1023 new WebURLResponseExtraDataImpl(info.npn_negotiated_protocol); |
1024 response->setExtraData(extra_data); | 1024 response->setExtraData(extra_data); |
1025 extra_data->set_was_fetched_via_spdy(info.was_fetched_via_spdy); | 1025 extra_data->set_was_fetched_via_spdy(info.was_fetched_via_spdy); |
1026 extra_data->set_was_npn_negotiated(info.was_npn_negotiated); | 1026 extra_data->set_was_npn_negotiated(info.was_npn_negotiated); |
1027 extra_data->set_was_alternate_protocol_available( | 1027 extra_data->set_was_alternate_protocol_available( |
1028 info.was_alternate_protocol_available); | 1028 info.was_alternate_protocol_available); |
1029 extra_data->set_connection_info(info.connection_info); | 1029 extra_data->set_connection_info(info.connection_info); |
1030 extra_data->set_was_fetched_via_proxy(info.was_fetched_via_proxy); | 1030 extra_data->set_was_fetched_via_proxy(info.was_fetched_via_proxy); |
1031 extra_data->set_proxy_server(info.proxy_server); | 1031 extra_data->set_proxy_server(info.proxy_server); |
| 1032 extra_data->set_is_lofi(info.is_lofi); |
1032 | 1033 |
1033 // If there's no received headers end time, don't set load timing. This is | 1034 // If there's no received headers end time, don't set load timing. This is |
1034 // the case for non-HTTP requests, requests that don't go over the wire, and | 1035 // the case for non-HTTP requests, requests that don't go over the wire, and |
1035 // certain error cases. | 1036 // certain error cases. |
1036 if (!info.load_timing.receive_headers_end.is_null()) { | 1037 if (!info.load_timing.receive_headers_end.is_null()) { |
1037 WebURLLoadTiming timing; | 1038 WebURLLoadTiming timing; |
1038 PopulateURLLoadTiming(info.load_timing, &timing); | 1039 PopulateURLLoadTiming(info.load_timing, &timing); |
1039 const TimeTicks kNullTicks; | 1040 const TimeTicks kNullTicks; |
1040 timing.setWorkerStart( | 1041 timing.setWorkerStart( |
1041 (info.service_worker_start_time - kNullTicks).InSecondsF()); | 1042 (info.service_worker_start_time - kNullTicks).InSecondsF()); |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1163 int intra_priority_value) { | 1164 int intra_priority_value) { |
1164 context_->DidChangePriority(new_priority, intra_priority_value); | 1165 context_->DidChangePriority(new_priority, intra_priority_value); |
1165 } | 1166 } |
1166 | 1167 |
1167 bool WebURLLoaderImpl::attachThreadedDataReceiver( | 1168 bool WebURLLoaderImpl::attachThreadedDataReceiver( |
1168 blink::WebThreadedDataReceiver* threaded_data_receiver) { | 1169 blink::WebThreadedDataReceiver* threaded_data_receiver) { |
1169 return context_->AttachThreadedDataReceiver(threaded_data_receiver); | 1170 return context_->AttachThreadedDataReceiver(threaded_data_receiver); |
1170 } | 1171 } |
1171 | 1172 |
1172 } // namespace content | 1173 } // namespace content |
OLD | NEW |