summaryrefslogtreecommitdiffstats
path: root/webkit/glue/weburlloader_impl.cc
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-09 21:53:21 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-09 21:53:21 +0000
commitc98b9a946bff0910e1070dac51a3197dd926959e (patch)
treec978ecdb931a5c5d09121ea0296dcbd3ffa1126c /webkit/glue/weburlloader_impl.cc
parent76925134ff272a3129ca38b740ed0637111f56f4 (diff)
downloadchromium_src-c98b9a946bff0910e1070dac51a3197dd926959e.zip
chromium_src-c98b9a946bff0910e1070dac51a3197dd926959e.tar.gz
chromium_src-c98b9a946bff0910e1070dac51a3197dd926959e.tar.bz2
Update WebKit to r44544.
1- WorkerThread::create() now takes a WorkerLoaderProxy parameter, which I implemented in a stub fashion on WebWorkerImpl. I'm sure the WebWorker guys will fix this up properly. 2- Removed expirationDate and setExpirationDate members of WebURLResponse consistent with their removal from WebCore::ResourceResponseBase. The corresponding logic for computing cache eviction time is now part of WebCore. 3- Added wtf/DateMath.{h,cpp} to the build. TEST=covered by existing tests, I hope! BUG=none R=eroman Review URL: http://codereview.chromium.org/119387 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17983 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/weburlloader_impl.cc')
-rw-r--r--webkit/glue/weburlloader_impl.cc16
1 files changed, 0 insertions, 16 deletions
diff --git a/webkit/glue/weburlloader_impl.cc b/webkit/glue/weburlloader_impl.cc
index 1780014..df8f077 100644
--- a/webkit/glue/weburlloader_impl.cc
+++ b/webkit/glue/weburlloader_impl.cc
@@ -169,22 +169,6 @@ void PopulateURLResponse(
if (headers->GetLastModifiedValue(&time_val))
response->setLastModifiedDate(time_val.ToDoubleT());
- // Compute expiration date
- TimeDelta freshness_lifetime =
- headers->GetFreshnessLifetime(info.response_time);
- if (freshness_lifetime != TimeDelta()) {
- Time now = Time::Now();
- TimeDelta current_age =
- headers->GetCurrentAge(info.request_time, info.response_time, now);
- time_val = now + freshness_lifetime - current_age;
-
- response->setExpirationDate(time_val.ToDoubleT());
- } else {
- // WebKit uses 0 as a special expiration date that means never expire.
- // 1 is a small enough value to let it always expire.
- response->setExpirationDate(1);
- }
-
// Build up the header map.
void* iter = NULL;
std::string name;