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

Unified Diff: content/browser/service_worker/embedded_worker_test_helper.h

Issue 140743012: Start EmbeddedWorker during registration - take 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update to ToT Created 6 years, 10 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/embedded_worker_test_helper.h
diff --git a/content/browser/service_worker/embedded_worker_test_helper.h b/content/browser/service_worker/embedded_worker_test_helper.h
index 38675c80c8b43cf1b736e683afc03421dce5baf1..79c602da8a6f2a39aafa4f617ed791a1a469b777 100644
--- a/content/browser/service_worker/embedded_worker_test_helper.h
+++ b/content/browser/service_worker/embedded_worker_test_helper.h
@@ -49,6 +49,11 @@ class EmbeddedWorkerTestHelper : public IPC::Sender,
void SimulateAddProcess(int embedded_worker_id, int process_id);
void SimulateRemoveProcess(int embedded_worker_id, int process_id);
+ // Call to create a new worker and also associate a process to
+ // it. Returns the new embedded worker id which can be used for
+ // SimulateRemoveProcess.
+ int SimulateCreateWorker(int process_id);
+
// IPC::Sender implementation.
virtual bool Send(IPC::Message* message) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698