diff options
Diffstat (limited to 'webkit/glue/weburlloader_impl.cc')
-rw-r--r-- | webkit/glue/weburlloader_impl.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/webkit/glue/weburlloader_impl.cc b/webkit/glue/weburlloader_impl.cc index 43b0edc..db97cf3 100644 --- a/webkit/glue/weburlloader_impl.cc +++ b/webkit/glue/weburlloader_impl.cc @@ -163,6 +163,7 @@ void PopulateURLResponse( const ResourceLoaderBridge::ResponseInfo& info, WebURLResponse* response) { response->setURL(url); + response->setResponseTime(info.response_time.ToDoubleT()); response->setMIMEType(WebString::fromUTF8(info.mime_type)); response->setTextEncodingName(WebString::fromUTF8(info.charset)); response->setExpectedContentLength(info.content_length); @@ -232,6 +233,7 @@ class WebURLLoaderImpl::Context : public base::RefCounted<Context>, virtual void OnReceivedResponse( const ResourceLoaderBridge::ResponseInfo& info, bool content_filtered); 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); virtual GURL GetURLForDebugging() const; @@ -532,6 +534,12 @@ void WebURLLoaderImpl::Context::OnReceivedData(const char* data, int len) { } } +void WebURLLoaderImpl::Context::OnReceivedCachedMetadata( + const char* data, int len) { + if (client_) + client_->didReceiveCachedMetadata(loader_, data, len); +} + void WebURLLoaderImpl::Context::OnCompletedRequest( const URLRequestStatus& status, const std::string& security_info) { |