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

Unified Diff: base/time.h

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: Fix tests Created 9 years, 4 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 | chrome/browser/net/load_timing_observer.cc » ('j') | webkit/glue/resource_loader_bridge.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/time.h
diff --git a/base/time.h b/base/time.h
index aa97f0ab4f422c807247e5c226b565fff21ac6c8..95ecd1c46ea87590cfd4039743137433280b181d 100644
--- a/base/time.h
+++ b/base/time.h
@@ -492,6 +492,13 @@ class BASE_EXPORT TimeTicks {
return ticks_;
}
+ // Converts an integer value representing TimeTicks to a class. This is used
+ // when deserializing a |TimeTicks| structure, using a value that originated
+ // from |TimeTicks::ToInternalValue()|.
+ static TimeTicks FromInternalValue(int64 ticks) {
+ return TimeTicks(ticks);
+ }
wtc 2011/08/26 21:55:41 It is safe to deserialize this way only if all the
James Simonsen 2011/08/26 22:34:29 Pavel and I discussed this earlier. All of the pla
wtc 2011/08/26 23:39:15 If you are relying on this fact, and are deseriali
+
TimeTicks& operator=(TimeTicks other) {
ticks_ = other.ticks_;
return *this;
« no previous file with comments | « no previous file | chrome/browser/net/load_timing_observer.cc » ('j') | webkit/glue/resource_loader_bridge.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698