summaryrefslogtreecommitdiffstats
path: root/webkit/glue/weburlloader_impl.cc
diff options
context:
space:
mode:
authortonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-17 15:28:22 +0000
committertonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-17 15:28:22 +0000
commitb67f19cbe25b385272b34666226657a15298ac66 (patch)
tree0d3eeb6610db1c6f441f11deee9fdc9a2770d7d8 /webkit/glue/weburlloader_impl.cc
parentef944e059c2a1bde47f19f8d87a86742f766d94c (diff)
downloadchromium_src-b67f19cbe25b385272b34666226657a15298ac66.zip
chromium_src-b67f19cbe25b385272b34666226657a15298ac66.tar.gz
chromium_src-b67f19cbe25b385272b34666226657a15298ac66.tar.bz2
Glue for sending/receiving cacheable metadata.
TEST=None BUG=32407 Review URL: http://codereview.chromium.org/1742004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47419 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/weburlloader_impl.cc')
-rw-r--r--webkit/glue/weburlloader_impl.cc8
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) {