Index: content/browser/service_worker/embedded_worker_registry.h |
diff --git a/content/browser/service_worker/embedded_worker_registry.h b/content/browser/service_worker/embedded_worker_registry.h |
index 9ae77c4d40d3b4c67326fd38a7a76223dae55424..b28d3d2961393b296b9cf9d2fedfde182cd27ad2 100644 |
--- a/content/browser/service_worker/embedded_worker_registry.h |
+++ b/content/browser/service_worker/embedded_worker_registry.h |
@@ -109,9 +109,10 @@ class CONTENT_EXPORT EmbeddedWorkerRegistry |
private: |
friend class base::RefCounted<EmbeddedWorkerRegistry>; |
+ friend class MojoEmbeddedWorkerInstanceTest; |
friend class EmbeddedWorkerInstance; |
friend class EmbeddedWorkerInstanceTest; |
- FRIEND_TEST_ALL_PREFIXES(EmbeddedWorkerInstanceTest, |
+ FRIEND_TEST_ALL_PREFIXES(EmbeddedWorkerInstanceTestP, |
RemoveWorkerInSharedProcess); |
using WorkerInstanceMap = std::map<int, EmbeddedWorkerInstance*>; |
@@ -136,6 +137,10 @@ class CONTENT_EXPORT EmbeddedWorkerRegistry |
// |process_id| could be invalid (i.e. ChildProcessHost::kInvalidUniqueID) |
// if it's not running. |
void RemoveWorker(int process_id, int embedded_worker_id); |
+ // DetachWorker is called when EmbeddedWorkerInstance releases a process. |
+ // |process_id| could be invalid (i.e. ChildProcessHost::kInvalidUniqueID) |
+ // if it's not running. |
+ void DetachWorker(int process_id, int embedded_worker_id); |
EmbeddedWorkerInstance* GetWorkerForMessage(int process_id, |
int embedded_worker_id); |