summaryrefslogtreecommitdiffstats
path: root/webkit/glue/weburlloader_impl.cc
diff options
context:
space:
mode:
authorpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-16 04:50:41 +0000
committerpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-16 04:50:41 +0000
commite0f458cbcebd8f6f75dbc7d86a0698ad5ec22b55 (patch)
tree681d5e1d3928d5a9fb4c5180541753d399245098 /webkit/glue/weburlloader_impl.cc
parentf05ca65c8857804c078f06b260f3175493dd4720 (diff)
downloadchromium_src-e0f458cbcebd8f6f75dbc7d86a0698ad5ec22b55.zip
chromium_src-e0f458cbcebd8f6f75dbc7d86a0698ad5ec22b55.tar.gz
chromium_src-e0f458cbcebd8f6f75dbc7d86a0698ad5ec22b55.tar.bz2
DevTools: report network stack-based finish time for resources.
BUG= TEST= Review URL: http://codereview.chromium.org/3385004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59617 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/weburlloader_impl.cc')
-rw-r--r--webkit/glue/weburlloader_impl.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/webkit/glue/weburlloader_impl.cc b/webkit/glue/weburlloader_impl.cc
index d1b986a..bc239f8 100644
--- a/webkit/glue/weburlloader_impl.cc
+++ b/webkit/glue/weburlloader_impl.cc
@@ -267,7 +267,9 @@ class WebURLLoaderImpl::Context : public base::RefCounted<Context>,
virtual void OnReceivedData(const char* data, int len);
virtual void OnReceivedCachedMetadata(const char* data, int len);
virtual void OnCompletedRequest(
- const URLRequestStatus& status, const std::string& security_info);
+ const URLRequestStatus& status,
+ const std::string& security_info,
+ const base::Time& completion_time);
virtual GURL GetURLForDebugging() const;
private:
@@ -586,7 +588,8 @@ void WebURLLoaderImpl::Context::OnReceivedCachedMetadata(
void WebURLLoaderImpl::Context::OnCompletedRequest(
const URLRequestStatus& status,
- const std::string& security_info) {
+ const std::string& security_info,
+ const base::Time& completion_time) {
if (ftp_listing_delegate_.get()) {
ftp_listing_delegate_->OnCompletedRequest();
ftp_listing_delegate_.reset(NULL);
@@ -614,7 +617,7 @@ void WebURLLoaderImpl::Context::OnCompletedRequest(
error.unreachableURL = request_.url();
client_->didFail(loader_, error);
} else {
- client_->didFinishLoading(loader_);
+ client_->didFinishLoading(loader_, completion_time.ToDoubleT());
}
}
@@ -642,7 +645,7 @@ void WebURLLoaderImpl::Context::HandleDataURL() {
OnReceivedData(data.data(), data.size());
}
- OnCompletedRequest(status, info.security_info);
+ OnCompletedRequest(status, info.security_info, base::Time::Now());
}
// WebURLLoaderImpl -----------------------------------------------------------