| Index: content/common/resource_dispatcher.cc
|
| diff --git a/content/common/resource_dispatcher.cc b/content/common/resource_dispatcher.cc
|
| index 29e3c05d9b8a71e72e3a686c06e193c1a1f3d0ad..531fe03bbfb9bce5a2233a050d355b6eefb43b2c 100644
|
| --- a/content/common/resource_dispatcher.cc
|
| +++ b/content/common/resource_dispatcher.cc
|
| @@ -327,7 +327,8 @@ void ResourceDispatcher::OnUploadProgress(
|
| }
|
|
|
| void ResourceDispatcher::OnReceivedResponse(
|
| - int request_id, const ResourceResponseHead& response_head) {
|
| + int request_id, const ResourceResponseHead& response_head,
|
| + const base::TimeTicks& start_time, const base::TimeTicks& end_time) {
|
| PendingRequestInfo* request_info = GetPendingRequestInfo(request_id);
|
| if (!request_info)
|
| return;
|
| @@ -340,7 +341,7 @@ void ResourceDispatcher::OnReceivedResponse(
|
| request_info->peer = new_peer;
|
| }
|
|
|
| - request_info->peer->OnReceivedResponse(response_head);
|
| + request_info->peer->OnReceivedResponse(response_head, start_time, end_time);
|
| }
|
|
|
| void ResourceDispatcher::OnReceivedCachedMetadata(
|
| @@ -394,7 +395,9 @@ void ResourceDispatcher::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) {
|
| PendingRequestInfo* request_info = GetPendingRequestInfo(request_id);
|
| if (!request_info)
|
| return;
|
| @@ -403,8 +406,9 @@ void ResourceDispatcher::OnReceivedRedirect(
|
| bool has_new_first_party_for_cookies = false;
|
| GURL new_first_party_for_cookies;
|
| if (request_info->peer->OnReceivedRedirect(new_url, info,
|
| - &has_new_first_party_for_cookies,
|
| - &new_first_party_for_cookies)) {
|
| + start_time, end_time,
|
| + &has_new_first_party_for_cookies,
|
| + &new_first_party_for_cookies)) {
|
| // Double-check if the request is still around. The call above could
|
| // potentially remove it.
|
| request_info = GetPendingRequestInfo(request_id);
|
| @@ -430,10 +434,11 @@ void ResourceDispatcher::FollowPendingRedirect(
|
| message_sender()->Send(msg);
|
| }
|
|
|
| -void ResourceDispatcher::OnRequestComplete(int request_id,
|
| - const net::URLRequestStatus& status,
|
| - const std::string& security_info,
|
| - const base::Time& completion_time) {
|
| +void ResourceDispatcher::OnRequestComplete(
|
| + int request_id,
|
| + const net::URLRequestStatus& status,
|
| + const std::string& security_info,
|
| + const base::TimeTicks& completion_time) {
|
| PendingRequestInfo* request_info = GetPendingRequestInfo(request_id);
|
| if (!request_info)
|
| return;
|
|
|