Index: webkit/glue/weburlloader_impl.cc |
=================================================================== |
--- webkit/glue/weburlloader_impl.cc (revision 47287) |
+++ webkit/glue/weburlloader_impl.cc (working copy) |
@@ -163,6 +163,7 @@ |
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 @@ |
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::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) { |