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

Unified Diff: content/public/test/service_worker_test_helpers.h

Issue 2943583002: [extension SW] Support lazy events from extension service workers. (Closed)
Patch Set: sync @tott Created 3 years, 6 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/public/test/service_worker_test_helpers.h
diff --git a/content/public/test/service_worker_test_helpers.h b/content/public/test/service_worker_test_helpers.h
new file mode 100644
index 0000000000000000000000000000000000000000..754d8b1aec479f64f6c424346fdfaa889a35952c
--- /dev/null
+++ b/content/public/test/service_worker_test_helpers.h
@@ -0,0 +1,25 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_TEST_SERVICE_WORKER_TEST_OBSERVER_H_
+#define CONTENT_PUBLIC_TEST_SERVICE_WORKER_TEST_OBSERVER_H_
+
+#include "base/callback_forward.h"
+
+class GURL;
+namespace content {
+
+class ServiceWorkerContext;
+
+// Stops the active service worker of the registration whose scope is |pattern|,
+// and calls |complete_callback_ui| callback on UI thread when done.
+//
+// Can be called from UI/IO thread.
+void StopServiceWorkerForPattern(ServiceWorkerContext* context,
+ const GURL& pattern,
+ base::OnceClosure complete_callback_ui);
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_TEST_SERVICE_WORKER_TEST_OBSERVER_H_
« no previous file with comments | « content/public/renderer/content_renderer_client.h ('k') | content/public/test/service_worker_test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698