| 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 <stdint.h> | 7 #include <stdint.h> |
| 8 #include <algorithm> | 8 #include <algorithm> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 url_timing->setSSLStart( | 119 url_timing->setSSLStart( |
| 120 (load_timing.connect_timing.ssl_start - kNullTicks).InSecondsF()); | 120 (load_timing.connect_timing.ssl_start - kNullTicks).InSecondsF()); |
| 121 url_timing->setSSLEnd( | 121 url_timing->setSSLEnd( |
| 122 (load_timing.connect_timing.ssl_end - kNullTicks).InSecondsF()); | 122 (load_timing.connect_timing.ssl_end - kNullTicks).InSecondsF()); |
| 123 url_timing->setSendStart( | 123 url_timing->setSendStart( |
| 124 (load_timing.send_start - kNullTicks).InSecondsF()); | 124 (load_timing.send_start - kNullTicks).InSecondsF()); |
| 125 url_timing->setSendEnd( | 125 url_timing->setSendEnd( |
| 126 (load_timing.send_end - kNullTicks).InSecondsF()); | 126 (load_timing.send_end - kNullTicks).InSecondsF()); |
| 127 url_timing->setReceiveHeadersEnd( | 127 url_timing->setReceiveHeadersEnd( |
| 128 (load_timing.receive_headers_end - kNullTicks).InSecondsF()); | 128 (load_timing.receive_headers_end - kNullTicks).InSecondsF()); |
| 129 url_timing->setPushStart((load_timing.push_start - kNullTicks).InSecondsF()); |
| 130 url_timing->setPushEnd((load_timing.push_end - kNullTicks).InSecondsF()); |
| 129 } | 131 } |
| 130 | 132 |
| 131 net::RequestPriority ConvertWebKitPriorityToNetPriority( | 133 net::RequestPriority ConvertWebKitPriorityToNetPriority( |
| 132 const WebURLRequest::Priority& priority) { | 134 const WebURLRequest::Priority& priority) { |
| 133 switch (priority) { | 135 switch (priority) { |
| 134 case WebURLRequest::PriorityVeryHigh: | 136 case WebURLRequest::PriorityVeryHigh: |
| 135 return net::HIGHEST; | 137 return net::HIGHEST; |
| 136 | 138 |
| 137 case WebURLRequest::PriorityHigh: | 139 case WebURLRequest::PriorityHigh: |
| 138 return net::MEDIUM; | 140 return net::MEDIUM; |
| (...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1172 response->clearHTTPHeaderField(webStringName); | 1174 response->clearHTTPHeaderField(webStringName); |
| 1173 while (response_headers->EnumerateHeader(&iterator, name, &value)) { | 1175 while (response_headers->EnumerateHeader(&iterator, name, &value)) { |
| 1174 response->addHTTPHeaderField(webStringName, | 1176 response->addHTTPHeaderField(webStringName, |
| 1175 WebString::fromLatin1(value)); | 1177 WebString::fromLatin1(value)); |
| 1176 } | 1178 } |
| 1177 } | 1179 } |
| 1178 return true; | 1180 return true; |
| 1179 } | 1181 } |
| 1180 | 1182 |
| 1181 } // namespace content | 1183 } // namespace content |
| OLD | NEW |