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

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

Issue 854543002: ServiceWorker: Rename ScriptClientMap to ProviderClientMap (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
« no previous file with comments | « no previous file | content/child/service_worker/service_worker_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/service_worker/service_worker_dispatcher.h
diff --git a/content/child/service_worker/service_worker_dispatcher.h b/content/child/service_worker/service_worker_dispatcher.h
index 52a6880c2325f4d8be6f5414412717407d3a7ea4..d67421e6bb3628205ec5dd90b284304488c9c766 100644
--- a/content/child/service_worker/service_worker_dispatcher.h
+++ b/content/child/service_worker/service_worker_dispatcher.h
@@ -83,9 +83,9 @@ class ServiceWorkerDispatcher : public WorkerTaskRunner::Observer {
// Called when navigator.serviceWorker is instantiated or detached
// for a document whose provider can be identified by |provider_id|.
- void AddScriptClient(int provider_id,
- blink::WebServiceWorkerProviderClient* client);
- void RemoveScriptClient(int provider_id);
+ void AddProviderClient(int provider_id,
+ blink::WebServiceWorkerProviderClient* client);
+ void RemoveProviderClient(int provider_id);
// If an existing WebServiceWorkerImpl exists for the Service
// Worker, it is returned; otherwise a WebServiceWorkerImpl is
@@ -136,10 +136,12 @@ class ServiceWorkerDispatcher : public WorkerTaskRunner::Observer {
IDMapOwnPointer> UnregistrationCallbackMap;
typedef IDMap<WebServiceWorkerGetRegistrationCallbacks,
IDMapOwnPointer> GetRegistrationCallbackMap;
- typedef std::map<int, blink::WebServiceWorkerProviderClient*> ScriptClientMap;
+
+ typedef std::map<int, blink::WebServiceWorkerProviderClient*>
+ ProviderClientMap;
typedef std::map<int, ServiceWorkerProviderContext*> ProviderContextMap;
- typedef std::map<int, WebServiceWorkerImpl*> WorkerObjectMap;
typedef std::map<int, ServiceWorkerProviderContext*> WorkerToProviderMap;
+ typedef std::map<int, WebServiceWorkerImpl*> WorkerObjectMap;
typedef std::map<int, WebServiceWorkerRegistrationImpl*>
RegistrationObjectMap;
@@ -237,8 +239,10 @@ class ServiceWorkerDispatcher : public WorkerTaskRunner::Observer {
RegistrationCallbackMap pending_registration_callbacks_;
UnregistrationCallbackMap pending_unregistration_callbacks_;
GetRegistrationCallbackMap pending_get_registration_callbacks_;
- ScriptClientMap script_clients_;
+
+ ProviderClientMap provider_clients_;
ProviderContextMap provider_contexts_;
+
WorkerObjectMap service_workers_;
RegistrationObjectMap registrations_;
« no previous file with comments | « no previous file | content/child/service_worker/service_worker_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698