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 "content/child/service_worker/service_worker_dispatcher.h" | 7 #include "content/child/service_worker/service_worker_dispatcher.h" |
8 #include "content/child/service_worker/service_worker_handle_reference.h" | 8 #include "content/child/service_worker/service_worker_handle_reference.h" |
9 #include "content/child/service_worker/service_worker_provider_context.h" | 9 #include "content/child/service_worker/service_worker_provider_context.h" |
10 #include "content/child/service_worker/web_service_worker_impl.h" | 10 #include "content/child/service_worker/web_service_worker_impl.h" |
11 #include "content/child/thread_safe_sender.h" | 11 #include "content/child/thread_safe_sender.h" |
12 #include "content/common/service_worker/service_worker_utils.h" | 12 #include "content/common/service_worker/service_worker_utils.h" |
13 #include "third_party/WebKit/public/platform/WebServiceWorkerProviderClient.h" | |
14 #include "third_party/WebKit/public/platform/WebURL.h" | 13 #include "third_party/WebKit/public/platform/WebURL.h" |
| 14 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerProviderClient.h" |
15 | 15 |
16 using blink::WebURL; | 16 using blink::WebURL; |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 | 19 |
20 WebServiceWorkerProviderImpl::WebServiceWorkerProviderImpl( | 20 WebServiceWorkerProviderImpl::WebServiceWorkerProviderImpl( |
21 ThreadSafeSender* thread_safe_sender, | 21 ThreadSafeSender* thread_safe_sender, |
22 ServiceWorkerProviderContext* context) | 22 ServiceWorkerProviderContext* context) |
23 : thread_safe_sender_(thread_safe_sender), | 23 : thread_safe_sender_(thread_safe_sender), |
24 context_(context) { | 24 context_(context) { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 ServiceWorkerDispatcher::GetThreadSpecificInstance(); | 100 ServiceWorkerDispatcher::GetThreadSpecificInstance(); |
101 if (dispatcher) | 101 if (dispatcher) |
102 dispatcher->RemoveProviderClient(context_->provider_id()); | 102 dispatcher->RemoveProviderClient(context_->provider_id()); |
103 } | 103 } |
104 | 104 |
105 ServiceWorkerDispatcher* WebServiceWorkerProviderImpl::GetDispatcher() { | 105 ServiceWorkerDispatcher* WebServiceWorkerProviderImpl::GetDispatcher() { |
106 return ServiceWorkerDispatcher::GetThreadSpecificInstance(); | 106 return ServiceWorkerDispatcher::GetThreadSpecificInstance(); |
107 } | 107 } |
108 | 108 |
109 } // namespace content | 109 } // namespace content |
OLD | NEW |