OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_PUBLIC_TEST_SERVICE_WORKER_TEST_OBSERVER_H_ | |
6 #define CONTENT_PUBLIC_TEST_SERVICE_WORKER_TEST_OBSERVER_H_ | |
7 | |
8 #include "base/callback_forward.h" | |
9 | |
10 class GURL; | |
11 namespace content { | |
12 | |
13 class ServiceWorkerContext; | |
14 | |
15 // Stops a running service worker registered for |pattern|, and calls | |
falken
2017/06/23 03:45:46
This is underspecified, there could be multiple wo
lazyboy
2017/06/23 07:44:56
Done.
| |
16 // |complete_callback_ui| callback on UI thread when done. | |
17 // | |
18 // Can be called from UI/IO thread. | |
19 void StopServiceWorkerForPattern(ServiceWorkerContext* context, | |
20 const GURL& pattern, | |
21 base::OnceClosure complete_callback_ui); | |
22 | |
23 } // namespace content | |
24 | |
25 #endif // CONTENT_PUBLIC_TEST_SERVICE_WORKER_TEST_OBSERVER_H_ | |
OLD | NEW |