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 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
883 WebURLResponseExtraDataImpl* extra_data = | 883 WebURLResponseExtraDataImpl* extra_data = |
884 new WebURLResponseExtraDataImpl(info.npn_negotiated_protocol); | 884 new WebURLResponseExtraDataImpl(info.npn_negotiated_protocol); |
885 response->setExtraData(extra_data); | 885 response->setExtraData(extra_data); |
886 extra_data->set_was_fetched_via_spdy(info.was_fetched_via_spdy); | 886 extra_data->set_was_fetched_via_spdy(info.was_fetched_via_spdy); |
887 extra_data->set_was_npn_negotiated(info.was_npn_negotiated); | 887 extra_data->set_was_npn_negotiated(info.was_npn_negotiated); |
888 extra_data->set_was_alternate_protocol_available( | 888 extra_data->set_was_alternate_protocol_available( |
889 info.was_alternate_protocol_available); | 889 info.was_alternate_protocol_available); |
890 extra_data->set_connection_info(info.connection_info); | 890 extra_data->set_connection_info(info.connection_info); |
891 extra_data->set_was_fetched_via_proxy(info.was_fetched_via_proxy); | 891 extra_data->set_was_fetched_via_proxy(info.was_fetched_via_proxy); |
892 extra_data->set_proxy_server(info.proxy_server); | 892 extra_data->set_proxy_server(info.proxy_server); |
| 893 extra_data->set_is_using_lofi(info.is_using_lofi); |
893 | 894 |
894 // If there's no received headers end time, don't set load timing. This is | 895 // If there's no received headers end time, don't set load timing. This is |
895 // the case for non-HTTP requests, requests that don't go over the wire, and | 896 // the case for non-HTTP requests, requests that don't go over the wire, and |
896 // certain error cases. | 897 // certain error cases. |
897 if (!info.load_timing.receive_headers_end.is_null()) { | 898 if (!info.load_timing.receive_headers_end.is_null()) { |
898 WebURLLoadTiming timing; | 899 WebURLLoadTiming timing; |
899 PopulateURLLoadTiming(info.load_timing, &timing); | 900 PopulateURLLoadTiming(info.load_timing, &timing); |
900 const TimeTicks kNullTicks; | 901 const TimeTicks kNullTicks; |
901 timing.setWorkerStart( | 902 timing.setWorkerStart( |
902 (info.service_worker_start_time - kNullTicks).InSecondsF()); | 903 (info.service_worker_start_time - kNullTicks).InSecondsF()); |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1053 int intra_priority_value) { | 1054 int intra_priority_value) { |
1054 context_->DidChangePriority(new_priority, intra_priority_value); | 1055 context_->DidChangePriority(new_priority, intra_priority_value); |
1055 } | 1056 } |
1056 | 1057 |
1057 bool WebURLLoaderImpl::attachThreadedDataReceiver( | 1058 bool WebURLLoaderImpl::attachThreadedDataReceiver( |
1058 blink::WebThreadedDataReceiver* threaded_data_receiver) { | 1059 blink::WebThreadedDataReceiver* threaded_data_receiver) { |
1059 return context_->AttachThreadedDataReceiver(threaded_data_receiver); | 1060 return context_->AttachThreadedDataReceiver(threaded_data_receiver); |
1060 } | 1061 } |
1061 | 1062 |
1062 } // namespace content | 1063 } // namespace content |
OLD | NEW |