| Index: content/common/resource_dispatcher.cc
|
| diff --git a/content/common/resource_dispatcher.cc b/content/common/resource_dispatcher.cc
|
| index 4afa078b6e7cf80c3774441ace9d7ec493c88cf5..59a1845c2d922425f3674369d952221d5c4c9626 100644
|
| --- a/content/common/resource_dispatcher.cc
|
| +++ b/content/common/resource_dispatcher.cc
|
| @@ -332,7 +332,9 @@ void ResourceDispatcher::OnUploadProgress(
|
| }
|
|
|
| void ResourceDispatcher::OnReceivedResponse(
|
| - int request_id, const ResourceResponseHead& response_head) {
|
| + int request_id, const ResourceResponseHead& response_head,
|
| + const base::TimeTicks& request_start_time,
|
| + const base::TimeTicks& response_start_time) {
|
| PendingRequestInfo* request_info = GetPendingRequestInfo(request_id);
|
| if (!request_info)
|
| return;
|
| @@ -345,7 +347,9 @@ void ResourceDispatcher::OnReceivedResponse(
|
| request_info->peer = new_peer;
|
| }
|
|
|
| - request_info->peer->OnReceivedResponse(response_head);
|
| + request_info->peer->OnReceivedResponse(response_head,
|
| + request_start_time,
|
| + response_start_time);
|
| }
|
|
|
| void ResourceDispatcher::OnReceivedCachedMetadata(
|
| @@ -399,7 +403,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& request_start_time,
|
| + const base::TimeTicks& response_start_time) {
|
| PendingRequestInfo* request_info = GetPendingRequestInfo(request_id);
|
| if (!request_info)
|
| return;
|
| @@ -408,8 +414,10 @@ 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)) {
|
| + request_start_time,
|
| + response_start_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);
|
| @@ -435,10 +443,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;
|
|
|