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

Unified Diff: content/child/service_worker/service_worker_provider_context.h

Issue 885443006: ServiceWorker: Get registration info and its version attributes in one lock operation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/child/service_worker/service_worker_provider_context.h
diff --git a/content/child/service_worker/service_worker_provider_context.h b/content/child/service_worker/service_worker_provider_context.h
index e858ea9e743e843e544d1913fa2b11e0312fcb9c..264bcc946644361e909ca1423249303f3a89f62e 100644
--- a/content/child/service_worker/service_worker_provider_context.h
+++ b/content/child/service_worker/service_worker_provider_context.h
@@ -48,9 +48,12 @@ class ServiceWorkerProviderContext
int provider_id() const { return provider_id_; }
ServiceWorkerHandleReference* controller();
- ServiceWorkerRegistrationHandleReference* registration();
- ServiceWorkerVersionAttributes GetVersionAttributes();
+ bool IsAssociatedWithRegistration();
+
+ void GetRegistrationInfoAndVersionAttributes(
+ ServiceWorkerRegistrationObjectInfo* info,
+ ServiceWorkerVersionAttributes* attrs);
void SetVersionAttributes(ChangedVersionAttributesMask mask,
const ServiceWorkerVersionAttributes& attrs);

Powered by Google App Engine
This is Rietveld 408576698