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

Unified Diff: content/browser/service_worker/service_worker_version.h

Issue 1535983002: ServiceWorker: Factor out functions to collect client information from ServiceWorkerVersion (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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/browser/service_worker/service_worker_version.h
diff --git a/content/browser/service_worker/service_worker_version.h b/content/browser/service_worker/service_worker_version.h
index 3575f815ad242561f74ea699a00b20ff7df65c46..5856ed6c63c7f6a371bcb4424b377f375126d615 100644
--- a/content/browser/service_worker/service_worker_version.h
+++ b/content/browser/service_worker/service_worker_version.h
@@ -286,6 +286,11 @@ class CONTENT_EXPORT ServiceWorkerVersion
// Returns if it has controllee.
bool HasControllee() const { return !controllee_map_.empty(); }
+ std::map<std::string, ServiceWorkerProviderHost*> controllee_map() {
+ return controllee_map_;
+ }
+
+ base::WeakPtr<ServiceWorkerContextCore> context() const { return context_; }
// Adds and removes |request_job| as a dependent job not to stop the
// ServiceWorker while |request_job| is reading the stream of the fetch event
@@ -521,14 +526,6 @@ class CONTENT_EXPORT ServiceWorkerVersion
void DidSkipWaiting(int request_id);
- void GetWindowClients(int request_id,
- const ServiceWorkerClientQueryOptions& options);
- void DidGetWindowClients(int request_id,
- const ServiceWorkerClientQueryOptions& options,
- scoped_ptr<ServiceWorkerClients> clients);
- void GetNonWindowClients(int request_id,
- const ServiceWorkerClientQueryOptions& options,
- ServiceWorkerClients* clients);
void OnGetClientsFinished(int request_id, ServiceWorkerClients* clients);
// The timeout timer periodically calls OnTimeoutTimer, which stops the worker

Powered by Google App Engine
This is Rietveld 408576698