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

Unified Diff: content/browser/service_worker/service_worker_context_core.cc

Issue 127573002: Add basic browser test for EmbeddedWorker/ServiceWorker (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: copyright fix Created 6 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
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 88897ac802623a19c41582ce5bb42e3a83dcc0a0..0a30b7bba14fdd075b8344694fbdea823b9a16a9 100644
--- a/content/browser/service_worker/service_worker_context_core.cc
+++ b/content/browser/service_worker/service_worker_context_core.cc
@@ -99,4 +99,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
« no previous file with comments | « content/browser/service_worker/service_worker_context_core.h ('k') | content/browser/storage_partition_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698