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

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

Issue 2658603003: ServiceWorker: Enable UseCounter for ServiceWorkerGlobalScope (Closed)
Patch Set: int32_t -> uint32_t Created 3 years, 10 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 b005e22f580a6157cf07f3b622cd299b708b15ac..192be968692b86a8b7e28e4e62823dd9cc1015ae 100644
--- a/content/child/service_worker/service_worker_provider_context.h
+++ b/content/child/service_worker/service_worker_provider_context.h
@@ -58,7 +58,8 @@ class CONTENT_EXPORT ServiceWorkerProviderContext
std::unique_ptr<ServiceWorkerHandleReference> active);
void OnDisassociateRegistration();
void OnSetControllerServiceWorker(
- std::unique_ptr<ServiceWorkerHandleReference> controller);
+ std::unique_ptr<ServiceWorkerHandleReference> controller,
+ const std::set<uint32_t>& used_features);
// Called on the worker thread. Used for initializing
// ServiceWorkerGlobalScope.
@@ -71,6 +72,7 @@ class CONTENT_EXPORT ServiceWorkerProviderContext
int provider_id() const { return provider_id_; }
ServiceWorkerHandleReference* controller();
+ const std::set<uint32_t>& used_features() const { return used_features_; }
private:
friend class base::DeleteHelper<ServiceWorkerProviderContext>;
@@ -91,6 +93,8 @@ class CONTENT_EXPORT ServiceWorkerProviderContext
std::unique_ptr<Delegate> delegate_;
+ std::set<uint32_t> used_features_;
+
DISALLOW_COPY_AND_ASSIGN(ServiceWorkerProviderContext);
};

Powered by Google App Engine
This is Rietveld 408576698