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

Unified Diff: content/public/common/webkit_param_traits.cc

Issue 7602023: Use a monotonic clock (TimeTicks) to report network times to WebCore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync & Merge Created 9 years 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 | « content/public/common/resource_response.h ('k') | content/test/render_view_fake_resources_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/webkit_param_traits.cc
diff --git a/content/public/common/webkit_param_traits.cc b/content/public/common/webkit_param_traits.cc
index 96a0ba4fcad2170f45f2f012dbf76b3c13295324..a046421c05974e18dc3fb658fd9417cc18517654 100644
--- a/content/public/common/webkit_param_traits.cc
+++ b/content/public/common/webkit_param_traits.cc
@@ -40,6 +40,7 @@ void ParamTraits<webkit_glue::ResourceLoadTimingInfo>::Write(
WriteParam(m, p.base_time.is_null());
if (p.base_time.is_null())
return;
+ WriteParam(m, p.base_ticks);
WriteParam(m, p.base_time);
WriteParam(m, p.proxy_start);
WriteParam(m, p.proxy_end);
@@ -64,6 +65,7 @@ bool ParamTraits<webkit_glue::ResourceLoadTimingInfo>::Read(
return true;
return
+ ReadParam(m, iter, &r->base_ticks) &&
ReadParam(m, iter, &r->base_time) &&
ReadParam(m, iter, &r->proxy_start) &&
ReadParam(m, iter, &r->proxy_end) &&
@@ -82,6 +84,8 @@ bool ParamTraits<webkit_glue::ResourceLoadTimingInfo>::Read(
void ParamTraits<webkit_glue::ResourceLoadTimingInfo>::Log(const param_type& p,
std::string* l) {
l->append("(");
+ LogParam(p.base_ticks, l);
+ l->append(", ");
LogParam(p.base_time, l);
l->append(", ");
LogParam(p.proxy_start, l);
« no previous file with comments | « content/public/common/resource_response.h ('k') | content/test/render_view_fake_resources_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698