Index: content/browser/service_worker/service_worker_context_core.h |
diff --git a/content/browser/service_worker/service_worker_context_core.h b/content/browser/service_worker/service_worker_context_core.h |
index b7b26537bec539bdaf17228b6b6544d1b85f94d0..606340aa91825a4c3e41bdb1d74bbece69e11be8 100644 |
--- a/content/browser/service_worker/service_worker_context_core.h |
+++ b/content/browser/service_worker/service_worker_context_core.h |
@@ -80,6 +80,8 @@ class CONTENT_EXPORT ServiceWorkerContextCore |
} |
private: |
+ friend class ServiceWorkerBrowserTest; |
+ |
typedef IDMap<ServiceWorkerProviderHost, IDMapOwnPointer> ProviderMap; |
typedef IDMap<ProviderMap, IDMapOwnPointer> ProcessToProviderMap; |
@@ -92,6 +94,9 @@ class CONTENT_EXPORT ServiceWorkerContextCore |
ServiceWorkerRegistrationStatus status, |
const scoped_refptr<ServiceWorkerRegistration>& registration); |
+ // Used only for testing. |
+ void GetAllProviderHosts(std::vector<ServiceWorkerProviderHost*>* providers); |
+ |
ProcessToProviderMap providers_; |
scoped_ptr<ServiceWorkerStorage> storage_; |
scoped_refptr<EmbeddedWorkerRegistry> embedded_worker_registry_; |