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

Unified Diff: content/common/resource_messages.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: Use strong typing Created 9 years, 1 month 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: content/common/resource_messages.h
diff --git a/content/common/resource_messages.h b/content/common/resource_messages.h
index a6982e6f7b742d969a9f5b0e30c1476970203f24..0deb695ff7e43cf4b6a655c65fb9ec704496979c 100644
--- a/content/common/resource_messages.h
+++ b/content/common/resource_messages.h
@@ -116,9 +116,11 @@ IPC_STRUCT_END()
// Resource messages sent from the browser to the renderer.
// Sent when the headers are available for a resource request.
-IPC_MESSAGE_ROUTED2(ResourceMsg_ReceivedResponse,
+IPC_MESSAGE_ROUTED4(ResourceMsg_ReceivedResponse,
int /* request_id */,
- ResourceResponseHead)
+ ResourceResponseHead,
+ base::TimeTicks /* start_time */,
+ base::TimeTicks /* end_time */)
// Sent when cached metadata from a resource request is ready.
IPC_MESSAGE_ROUTED2(ResourceMsg_ReceivedCachedMetadata,
@@ -134,10 +136,12 @@ IPC_MESSAGE_ROUTED3(ResourceMsg_UploadProgress,
// Sent when the request has been redirected. The receiver is expected to
// respond with either a FollowRedirect message (if the redirect is to be
// followed) or a CancelRequest message (if it should not be followed).
-IPC_MESSAGE_ROUTED3(ResourceMsg_ReceivedRedirect,
+IPC_MESSAGE_ROUTED5(ResourceMsg_ReceivedRedirect,
int /* request_id */,
GURL /* new_url */,
- ResourceResponseHead)
+ ResourceResponseHead,
+ base::TimeTicks /* start_time */,
+ base::TimeTicks /* end_time */)
// Sent when some data from a resource request is ready. The handle should
// already be mapped into the process that receives this message.
@@ -159,7 +163,7 @@ IPC_MESSAGE_ROUTED4(ResourceMsg_RequestComplete,
int /* request_id */,
net::URLRequestStatus /* status */,
std::string /* security info */,
- base::Time /* completion_time */)
+ base::TimeTicks /* completion_time */)
// Resource messages sent from the renderer to the browser.

Powered by Google App Engine
This is Rietveld 408576698