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

Unified Diff: third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h

Issue 2771823002: Implement updateViaCache flag and no-cache by default for main service worker scripts
Patch Set: fix IPC Created 3 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: third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
diff --git a/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h b/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
index eaa117ad52240fdd0d3561cda4bff19156021940..71c493217da14aeebfc9d70ca90aaf6939211d49 100644
--- a/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
+++ b/third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerRegistration.h
@@ -5,10 +5,12 @@
#ifndef WebServiceWorkerRegistration_h
#define WebServiceWorkerRegistration_h
+#include <memory>
+
#include "public/platform/WebCallbacks.h"
#include "public/platform/WebURL.h"
#include "public/platform/modules/serviceworker/WebServiceWorkerError.h"
-#include <memory>
+#include "public/platform/modules/serviceworker/WebServiceWorkerUpdateViaCache.h"
namespace blink {
@@ -51,6 +53,9 @@ class WebServiceWorkerRegistration {
virtual void ProxyStopped() {}
virtual WebURL Scope() const { return WebURL(); }
+ virtual WebServiceWorkerUpdateViaCache UpdateViaCache() const {
+ return WebServiceWorkerUpdateViaCache::kImports;
+ }
virtual int64_t RegistrationId() const = 0;
virtual void Update(WebServiceWorkerProvider*,
std::unique_ptr<WebServiceWorkerUpdateCallbacks>) {}

Powered by Google App Engine
This is Rietveld 408576698