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

Unified Diff: webkit/tools/test_shell/simple_resource_loader_bridge.cc

Issue 14108004: Expose loadTiming information for DRT (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Apply chromium code style Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/simple_resource_loader_bridge.cc
diff --git a/webkit/tools/test_shell/simple_resource_loader_bridge.cc b/webkit/tools/test_shell/simple_resource_loader_bridge.cc
index 3a17ce6147072b78d74279ee8bc176969fc10b15..6111b19717007a206d80ad61c4ce61eef830e194 100644
--- a/webkit/tools/test_shell/simple_resource_loader_bridge.cc
+++ b/webkit/tools/test_shell/simple_resource_loader_bridge.cc
@@ -686,6 +686,8 @@ class RequestProxy
void PopulateResponseInfo(net::URLRequest* request,
ResourceResponseInfo* info) const {
+ if (request->load_flags() & net::LOAD_ENABLE_LOAD_TIMING)
+ request->GetLoadTimingInfo(&info->load_timing);
info->request_time = request->request_time();
info->response_time = request->response_time();
info->headers = request->response_headers();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698