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

Unified Diff: ipc/ipc_message_utils.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
Index: ipc/ipc_message_utils.h
diff --git a/ipc/ipc_message_utils.h b/ipc/ipc_message_utils.h
index ae7490cb34d0f91f0b8c3ea3a965821954a88b1e..775e001486a238ce7a213bacbf8ac3a0f85957c9 100644
--- a/ipc/ipc_message_utils.h
+++ b/ipc/ipc_message_utils.h
@@ -104,6 +104,7 @@ class DictionaryValue;
class ListValue;
class Time;
class TimeDelta;
+class TimeTicks;
struct FileDescriptor;
}
@@ -331,6 +332,14 @@ struct IPC_EXPORT ParamTraits<base::TimeDelta> {
static void Log(const param_type& p, std::string* l);
};
+template <>
+struct ParamTraits<base::TimeTicks> {
+ typedef base::TimeTicks param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, void** iter, param_type* r);
+ static void Log(const param_type& p, std::string* l);
+};
+
#if defined(OS_WIN)
template <>
struct ParamTraits<LOGFONT> {

Powered by Google App Engine
This is Rietveld 408576698