Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(669)

Unified Diff: content/common/service_worker/service_worker_types.h

Issue 1187623006: Service Worker: Update stale workers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix DCHECK Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/service_worker/service_worker_version_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/service_worker/service_worker_types.h
diff --git a/content/common/service_worker/service_worker_types.h b/content/common/service_worker/service_worker_types.h
index 6aa97d4ef41737b4d5cf1f9ee92f91bc6cdb0835..6c2c36ff69974004167e7c09d2c64d5da8f8de07 100644
--- a/content/common/service_worker/service_worker_types.h
+++ b/content/common/service_worker/service_worker_types.h
@@ -52,6 +52,10 @@ static const int64 kInvalidServiceWorkerResponseId = -1;
static const int kInvalidEmbeddedWorkerThreadId = -1;
static const int kInvalidServiceWorkerClientId = 0;
+// The HTTP cache is bypassed for Service Worker scripts if the last network
+// fetch occurred over 24 hours ago.
+static const int kServiceWorkerScriptMaxCacheAgeInHours = 24;
+
// ServiceWorker provider type.
enum ServiceWorkerProviderType {
SERVICE_WORKER_PROVIDER_UNKNOWN,
« no previous file with comments | « content/browser/service_worker/service_worker_version_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698