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 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1176 response->clearHTTPHeaderField(webStringName); | 1178 response->clearHTTPHeaderField(webStringName); |
1177 while (response_headers->EnumerateHeader(&iterator, name, &value)) { | 1179 while (response_headers->EnumerateHeader(&iterator, name, &value)) { |
1178 response->addHTTPHeaderField(webStringName, | 1180 response->addHTTPHeaderField(webStringName, |
1179 WebString::fromLatin1(value)); | 1181 WebString::fromLatin1(value)); |
1180 } | 1182 } |
1181 } | 1183 } |
1182 return true; | 1184 return true; |
1183 } | 1185 } |
1184 | 1186 |
1185 } // namespace content | 1187 } // namespace content |
OLD | NEW |