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

Unified Diff: content/common/service_worker/service_worker_types.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: 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 6b73559ac95a34794179afe773846c99d9a3459f..3968c0e6bba459a9c4984733c55cb6e7268f65c4 100644
--- a/content/common/service_worker/service_worker_types.h
+++ b/content/common/service_worker/service_worker_types.h
@@ -24,6 +24,7 @@
#include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerClientType.h"
#include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerResponseError.h"
#include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerState.h"
+#include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerUpdateViaCache.h"
#include "url/gurl.h"
// This file is to have common definitions that are to be shared by
@@ -188,10 +189,13 @@ struct CONTENT_EXPORT ServiceWorkerObjectInfo {
// Represents options for register():
// https://w3c.github.io/ServiceWorker/#dictdef-registrationoptions
struct CONTENT_EXPORT ServiceWorkerRegistrationOptions {
- ServiceWorkerRegistrationOptions() = default;
+ ServiceWorkerRegistrationOptions();
explicit ServiceWorkerRegistrationOptions(const GURL& scope);
+ ServiceWorkerRegistrationOptions(
+ const GURL& scope,
+ blink::WebServiceWorkerUpdateViaCache update_via_cache);
GURL scope;
- // TODO(yuryu): Other values will be added as they are supported later.
+ blink::WebServiceWorkerUpdateViaCache update_via_cache;
};
struct CONTENT_EXPORT ServiceWorkerRegistrationObjectInfo {
« no previous file with comments | « content/common/service_worker/service_worker_messages.h ('k') | content/common/service_worker/service_worker_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698