OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/child/service_worker/web_service_worker_provider_impl.h" | 5 #include "content/child/service_worker/web_service_worker_provider_impl.h" |
6 | 6 |
7 #include "base/atomic_sequence_num.h" | 7 #include "base/atomic_sequence_num.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "content/child/child_thread.h" | 9 #include "content/child/child_thread.h" |
10 #include "content/child/service_worker/service_worker_dispatcher.h" | 10 #include "content/child/service_worker/service_worker_dispatcher.h" |
11 #include "content/child/thread_safe_sender.h" | 11 #include "content/child/thread_safe_sender.h" |
12 #include "content/common/service_worker_messages.h" | 12 #include "content/common/service_worker/service_worker_messages.h" |
13 #include "third_party/WebKit/public/platform/WebURL.h" | 13 #include "third_party/WebKit/public/platform/WebURL.h" |
14 | 14 |
15 using blink::WebURL; | 15 using blink::WebURL; |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 // Must be unique in the child process. | 21 // Must be unique in the child process. |
22 int GetNextProviderId() { | 22 int GetNextProviderId() { |
(...skipping 27 matching lines...) Expand all Loading... |
50 } | 50 } |
51 | 51 |
52 void WebServiceWorkerProviderImpl::unregisterServiceWorker( | 52 void WebServiceWorkerProviderImpl::unregisterServiceWorker( |
53 const WebURL& pattern, | 53 const WebURL& pattern, |
54 WebServiceWorkerCallbacks* callbacks) { | 54 WebServiceWorkerCallbacks* callbacks) { |
55 ServiceWorkerDispatcher::ThreadSpecificInstance(thread_safe_sender_) | 55 ServiceWorkerDispatcher::ThreadSpecificInstance(thread_safe_sender_) |
56 ->UnregisterServiceWorker(pattern, callbacks); | 56 ->UnregisterServiceWorker(pattern, callbacks); |
57 } | 57 } |
58 | 58 |
59 } // namespace content | 59 } // namespace content |
OLD | NEW |