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

Unified Diff: content/renderer/service_worker/embedded_worker_instance_client_impl.h

Issue 2578023002: ServiceWorker: Stop don't send a message before connection established (Closed)
Patch Set: Added DCHECKs Created 4 years 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/renderer/service_worker/embedded_worker_instance_client_impl.h
diff --git a/content/renderer/service_worker/embedded_worker_instance_client_impl.h b/content/renderer/service_worker/embedded_worker_instance_client_impl.h
index 1b3d27d99457acdfe6444299d42c946c811eb963..35d325978442646ae46f5a4c89840aeffb8e8b91 100644
--- a/content/renderer/service_worker/embedded_worker_instance_client_impl.h
+++ b/content/renderer/service_worker/embedded_worker_instance_client_impl.h
@@ -5,6 +5,8 @@
#ifndef CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_CLIENT_IMPL_H_
#define CONTENT_RENDERER_SERVICE_WORKER_EMBEDDED_WORKER_INSTANCE_CLIENT_IMPL_H_
+#include <vector>
+
#include "base/id_map.h"
#include "base/optional.h"
#include "content/child/child_thread_impl.h"
@@ -56,7 +58,7 @@ class EmbeddedWorkerInstanceClientImpl
// not running.
EmbeddedWorkerDispatcher::WorkerWrapper* wrapper_;
- StopWorkerCallback stop_callback_;
+ std::vector<StopWorkerCallback> stop_callbacks_;
DISALLOW_COPY_AND_ASSIGN(EmbeddedWorkerInstanceClientImpl);
};

Powered by Google App Engine
This is Rietveld 408576698