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 706b5a89d6c10e84d13635b16179862e54d045cb..7482241eab07d8ecff72b3917ec26084ea01cb1f 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/WebServiceWorkerResponseError.h" |
#include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerResponseType.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 |
@@ -183,10 +184,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 { |