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

Unified Diff: content/browser/service_worker/service_worker_registration.h

Issue 457903002: After 24 hours, bust the browser cache when checking for ServiceWorker updates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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
Index: content/browser/service_worker/service_worker_registration.h
diff --git a/content/browser/service_worker/service_worker_registration.h b/content/browser/service_worker/service_worker_registration.h
index b5b678550534eabbd403739070d7e747cf87157e..51872d21447396ddf03a71fa57ff9c3882ff4ecc 100644
--- a/content/browser/service_worker/service_worker_registration.h
+++ b/content/browser/service_worker/service_worker_registration.h
@@ -100,6 +100,10 @@ class CONTENT_EXPORT ServiceWorkerRegistration
// does nothing.
void AbortPendingClear();
+ // The time of the most recent update check.
+ base::Time last_update_check() const { return last_update_check_; }
+ void set_last_update_check(base::Time last) { last_update_check_ = last; }
+
private:
friend class base::RefCounted<ServiceWorkerRegistration>;
@@ -134,6 +138,7 @@ class CONTENT_EXPORT ServiceWorkerRegistration
bool is_deleted_;
bool is_uninstalling_;
bool should_activate_when_ready_;
+ base::Time last_update_check_;
scoped_refptr<ServiceWorkerVersion> active_version_;
scoped_refptr<ServiceWorkerVersion> waiting_version_;
scoped_refptr<ServiceWorkerVersion> installing_version_;
« no previous file with comments | « content/browser/service_worker/service_worker_register_job.cc ('k') | content/browser/service_worker/service_worker_storage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698