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

Unified Diff: content/child/service_worker/web_service_worker_registration_impl.cc

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
« no previous file with comments | « content/child/service_worker/web_service_worker_registration_impl.h ('k') | content/common/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « content/child/service_worker/web_service_worker_registration_impl.h ('k') | content/common/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698