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" | |
10 #include "content/child/service_worker/service_worker_dispatcher.h" | 9 #include "content/child/service_worker/service_worker_dispatcher.h" |
11 #include "content/child/service_worker/service_worker_handle_reference.h" | 10 #include "content/child/service_worker/service_worker_handle_reference.h" |
12 #include "content/child/service_worker/service_worker_provider_context.h" | 11 #include "content/child/service_worker/service_worker_provider_context.h" |
13 #include "content/child/service_worker/service_worker_registration_handle_refere
nce.h" | 12 #include "content/child/service_worker/service_worker_registration_handle_refere
nce.h" |
14 #include "content/child/service_worker/web_service_worker_impl.h" | 13 #include "content/child/service_worker/web_service_worker_impl.h" |
15 #include "content/child/service_worker/web_service_worker_registration_impl.h" | 14 #include "content/child/service_worker/web_service_worker_registration_impl.h" |
16 #include "content/child/thread_safe_sender.h" | 15 #include "content/child/thread_safe_sender.h" |
17 #include "content/common/service_worker/service_worker_messages.h" | 16 #include "content/common/service_worker/service_worker_messages.h" |
18 #include "third_party/WebKit/public/platform/WebServiceWorkerProviderClient.h" | 17 #include "third_party/WebKit/public/platform/WebServiceWorkerProviderClient.h" |
19 #include "third_party/WebKit/public/platform/WebURL.h" | 18 #include "third_party/WebKit/public/platform/WebURL.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 if (dispatcher) | 108 if (dispatcher) |
110 dispatcher->RemoveProviderClient(provider_id_); | 109 dispatcher->RemoveProviderClient(provider_id_); |
111 } | 110 } |
112 | 111 |
113 ServiceWorkerDispatcher* WebServiceWorkerProviderImpl::GetDispatcher() { | 112 ServiceWorkerDispatcher* WebServiceWorkerProviderImpl::GetDispatcher() { |
114 return ServiceWorkerDispatcher::GetOrCreateThreadSpecificInstance( | 113 return ServiceWorkerDispatcher::GetOrCreateThreadSpecificInstance( |
115 thread_safe_sender_.get()); | 114 thread_safe_sender_.get()); |
116 } | 115 } |
117 | 116 |
118 } // namespace content | 117 } // namespace content |
OLD | NEW |