Index: content/child/service_worker/web_service_worker_registration_impl.cc |
diff --git a/content/child/service_worker/web_service_worker_registration_impl.cc b/content/child/service_worker/web_service_worker_registration_impl.cc |
index 6a6d0a59cb68f13722c1c93f39be978f68567512..4a907c8b63583c12a349e4e64c4fc74d33e9be6b 100644 |
--- a/content/child/service_worker/web_service_worker_registration_impl.cc |
+++ b/content/child/service_worker/web_service_worker_registration_impl.cc |
@@ -86,6 +86,11 @@ void WebServiceWorkerRegistrationImpl::SetActive( |
queued_tasks_.push_back(QueuedTask(ACTIVE, service_worker)); |
} |
+void WebServiceWorkerRegistrationImpl::SetRegistrationHandleReference( |
+ std::unique_ptr<ServiceWorkerRegistrationHandleReference> handle_ref) { |
+ handle_ref_ = std::move(handle_ref); |
+} |
+ |
void WebServiceWorkerRegistrationImpl::OnUpdateFound() { |
if (proxy_) |
proxy_->DispatchUpdateFoundEvent(); |
@@ -123,6 +128,11 @@ blink::WebURL WebServiceWorkerRegistrationImpl::Scope() const { |
return handle_ref_->scope(); |
} |
+blink::WebServiceWorkerUpdateViaCache |
+WebServiceWorkerRegistrationImpl::UpdateViaCache() const { |
+ return handle_ref_->update_via_cache(); |
+} |
+ |
void WebServiceWorkerRegistrationImpl::Update( |
blink::WebServiceWorkerProvider* provider, |
std::unique_ptr<WebServiceWorkerUpdateCallbacks> callbacks) { |