| Index: content/browser/service_worker/service_worker_context_core.cc
|
| diff --git a/content/browser/service_worker/service_worker_context_core.cc b/content/browser/service_worker/service_worker_context_core.cc
|
| index 048d33bd836da9455bdc8fef0456b1b2cd16c341..55a64aa2f19fcf5b5bdadac4ae92a77f35563496 100644
|
| --- a/content/browser/service_worker/service_worker_context_core.cc
|
| +++ b/content/browser/service_worker/service_worker_context_core.cc
|
| @@ -96,4 +96,19 @@ void ServiceWorkerContextCore::RegistrationComplete(
|
| callback.Run(status, registration->id());
|
| }
|
|
|
| +void ServiceWorkerContextCore::GetAllProviderHosts(
|
| + std::vector<ServiceWorkerProviderHost*>* providers) {
|
| + DCHECK(providers);
|
| +
|
| + ProcessToProviderMap::iterator map_iter(&providers_);
|
| + while (!map_iter.IsAtEnd()) {
|
| + ProviderMap::iterator iter(map_iter.GetCurrentValue());
|
| + while (!iter.IsAtEnd()) {
|
| + providers->push_back(iter.GetCurrentValue());
|
| + iter.Advance();
|
| + }
|
| + map_iter.Advance();
|
| + }
|
| +}
|
| +
|
| } // namespace content
|
|
|