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

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

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 | « content/child/service_worker/web_service_worker_provider_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/service_worker/web_service_worker_provider_impl.cc
diff --git a/content/child/service_worker/web_service_worker_provider_impl.cc b/content/child/service_worker/web_service_worker_provider_impl.cc
index 415b3ba6b1766998376c45d86bca6c758e153b35..851fad940c40bb33d054787505206cf363bc66f7 100644
--- a/content/child/service_worker/web_service_worker_provider_impl.cc
+++ b/content/child/service_worker/web_service_worker_provider_impl.cc
@@ -31,14 +31,14 @@ WebServiceWorkerProviderImpl::WebServiceWorkerProviderImpl(
}
WebServiceWorkerProviderImpl::~WebServiceWorkerProviderImpl() {
- // Make sure the script client is removed.
- RemoveScriptClient();
+ // Make sure the provider client is removed.
+ RemoveProviderClient();
}
void WebServiceWorkerProviderImpl::setClient(
blink::WebServiceWorkerProviderClient* client) {
if (!client) {
- RemoveScriptClient();
+ RemoveProviderClient();
return;
}
@@ -47,7 +47,7 @@ void WebServiceWorkerProviderImpl::setClient(
// (e.g. on document and on dedicated workers) can properly share
// the single provider context across threads. (http://crbug.com/366538
// for more context)
- GetDispatcher()->AddScriptClient(provider_id_, client);
+ GetDispatcher()->AddProviderClient(provider_id_, client);
if (!context_->registration()) {
// This provider is not associated with any registration.
@@ -101,13 +101,13 @@ void WebServiceWorkerProviderImpl::getRegistration(
GetDispatcher()->GetRegistration(provider_id_, document_url, callbacks);
}
-void WebServiceWorkerProviderImpl::RemoveScriptClient() {
- // Remove the script client, but only if the dispatcher is still there.
+void WebServiceWorkerProviderImpl::RemoveProviderClient() {
+ // Remove the provider client, but only if the dispatcher is still there.
// (For cleanup path we don't need to bother creating a new dispatcher)
ServiceWorkerDispatcher* dispatcher =
ServiceWorkerDispatcher::GetThreadSpecificInstance();
if (dispatcher)
- dispatcher->RemoveScriptClient(provider_id_);
+ dispatcher->RemoveProviderClient(provider_id_);
}
ServiceWorkerDispatcher* WebServiceWorkerProviderImpl::GetDispatcher() {
« no previous file with comments | « content/child/service_worker/web_service_worker_provider_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698