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

Unified Diff: content/common/resource_dispatcher.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_dispatcher.h
diff --git a/content/common/resource_dispatcher.h b/content/common/resource_dispatcher.h
index 6cc715717bca102d4a9565183a87322daef4ed3c..72cf7169694a47faaef8310ad02075000271c262 100644
--- a/content/common/resource_dispatcher.h
+++ b/content/common/resource_dispatcher.h
@@ -105,13 +105,19 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Channel::Listener {
int request_id,
int64 position,
int64 size);
- void OnReceivedResponse(int request_id, const ResourceResponseHead&);
+ void OnReceivedResponse(
+ int request_id,
+ const ResourceResponseHead&,
+ const base::TimeTicks& start_time,
+ const base::TimeTicks& end_time);
void OnReceivedCachedMetadata(int request_id, const std::vector<char>& data);
void OnReceivedRedirect(
const IPC::Message& message,
int request_id,
const GURL& new_url,
- const webkit_glue::ResourceResponseInfo& info);
+ const webkit_glue::ResourceResponseInfo& info,
+ const base::TimeTicks& start_time,
+ const base::TimeTicks& end_time);
void OnReceivedData(
const IPC::Message& message,
int request_id,
@@ -126,7 +132,7 @@ class CONTENT_EXPORT ResourceDispatcher : public IPC::Channel::Listener {
int request_id,
const net::URLRequestStatus& status,
const std::string& security_info,
- const base::Time& completion_time);
+ const base::TimeTicks& completion_time);
// Dispatch the message to one of the message response handlers.
void DispatchMessage(const IPC::Message& message);

Powered by Google App Engine
This is Rietveld 408576698