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

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

Issue 1828203005: Expose SPDY pushes in DevTools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed tests Created 4 years, 8 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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 url_timing->setSSLStart( 121 url_timing->setSSLStart(
122 (load_timing.connect_timing.ssl_start - kNullTicks).InSecondsF()); 122 (load_timing.connect_timing.ssl_start - kNullTicks).InSecondsF());
123 url_timing->setSSLEnd( 123 url_timing->setSSLEnd(
124 (load_timing.connect_timing.ssl_end - kNullTicks).InSecondsF()); 124 (load_timing.connect_timing.ssl_end - kNullTicks).InSecondsF());
125 url_timing->setSendStart( 125 url_timing->setSendStart(
126 (load_timing.send_start - kNullTicks).InSecondsF()); 126 (load_timing.send_start - kNullTicks).InSecondsF());
127 url_timing->setSendEnd( 127 url_timing->setSendEnd(
128 (load_timing.send_end - kNullTicks).InSecondsF()); 128 (load_timing.send_end - kNullTicks).InSecondsF());
129 url_timing->setReceiveHeadersEnd( 129 url_timing->setReceiveHeadersEnd(
130 (load_timing.receive_headers_end - kNullTicks).InSecondsF()); 130 (load_timing.receive_headers_end - kNullTicks).InSecondsF());
131 url_timing->setPushStart((load_timing.push_start - kNullTicks).InSecondsF());
132 url_timing->setPushEnd((load_timing.push_end - kNullTicks).InSecondsF());
131 } 133 }
132 134
133 net::RequestPriority ConvertWebKitPriorityToNetPriority( 135 net::RequestPriority ConvertWebKitPriorityToNetPriority(
134 const WebURLRequest::Priority& priority) { 136 const WebURLRequest::Priority& priority) {
135 switch (priority) { 137 switch (priority) {
136 case WebURLRequest::PriorityVeryHigh: 138 case WebURLRequest::PriorityVeryHigh:
137 return net::HIGHEST; 139 return net::HIGHEST;
138 140
139 case WebURLRequest::PriorityHigh: 141 case WebURLRequest::PriorityHigh:
140 return net::MEDIUM; 142 return net::MEDIUM;
(...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 response->clearHTTPHeaderField(webStringName); 1181 response->clearHTTPHeaderField(webStringName);
1180 while (response_headers->EnumerateHeader(&iterator, name, &value)) { 1182 while (response_headers->EnumerateHeader(&iterator, name, &value)) {
1181 response->addHTTPHeaderField(webStringName, 1183 response->addHTTPHeaderField(webStringName,
1182 WebString::fromLatin1(value)); 1184 WebString::fromLatin1(value));
1183 } 1185 }
1184 } 1186 }
1185 return true; 1187 return true;
1186 } 1188 }
1187 1189
1188 } // namespace content 1190 } // namespace content
OLDNEW
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/common/inter_process_time_ticks_converter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698