| 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/service_worker_dispatcher.h" | 5 #include "content/child/service_worker/service_worker_dispatcher.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
| 9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
| 10 #include "base/thread_task_runner_handle.h" | 10 #include "base/thread_task_runner_handle.h" |
| 11 #include "base/threading/thread_local.h" | 11 #include "base/threading/thread_local.h" |
| 12 #include "base/trace_event/trace_event.h" | 12 #include "base/trace_event/trace_event.h" |
| 13 #include "content/child/child_thread_impl.h" | 13 #include "content/child/child_thread_impl.h" |
| 14 #include "content/child/service_worker/service_worker_handle_reference.h" | 14 #include "content/child/service_worker/service_worker_handle_reference.h" |
| 15 #include "content/child/service_worker/service_worker_provider_context.h" | 15 #include "content/child/service_worker/service_worker_provider_context.h" |
| 16 #include "content/child/service_worker/service_worker_registration_handle_refere
nce.h" | 16 #include "content/child/service_worker/service_worker_registration_handle_refere
nce.h" |
| 17 #include "content/child/service_worker/web_service_worker_impl.h" | 17 #include "content/child/service_worker/web_service_worker_impl.h" |
| 18 #include "content/child/service_worker/web_service_worker_registration_impl.h" | 18 #include "content/child/service_worker/web_service_worker_registration_impl.h" |
| 19 #include "content/child/thread_safe_sender.h" | 19 #include "content/child/thread_safe_sender.h" |
| 20 #include "content/child/webmessageportchannel_impl.h" | 20 #include "content/child/webmessageportchannel_impl.h" |
| 21 #include "content/common/service_worker/service_worker_messages.h" | 21 #include "content/common/service_worker/service_worker_messages.h" |
| 22 #include "content/common/service_worker/service_worker_types.h" | 22 #include "content/common/service_worker/service_worker_types.h" |
| 23 #include "content/public/common/url_utils.h" | 23 #include "content/public/common/url_utils.h" |
| 24 #include "third_party/WebKit/public/platform/WebServiceWorkerClientsInfo.h" | |
| 25 #include "third_party/WebKit/public/platform/WebServiceWorkerProviderClient.h" | |
| 26 #include "third_party/WebKit/public/platform/WebString.h" | 24 #include "third_party/WebKit/public/platform/WebString.h" |
| 25 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerClientsInfo.h" |
| 26 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerProviderClient.h" |
| 27 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" | 27 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" |
| 28 | 28 |
| 29 using blink::WebServiceWorkerError; | 29 using blink::WebServiceWorkerError; |
| 30 using blink::WebServiceWorkerProvider; | 30 using blink::WebServiceWorkerProvider; |
| 31 using base::ThreadLocalPointer; | 31 using base::ThreadLocalPointer; |
| 32 | 32 |
| 33 namespace content { | 33 namespace content { |
| 34 | 34 |
| 35 namespace { | 35 namespace { |
| 36 | 36 |
| (...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 796 bool adopt_handle = true; | 796 bool adopt_handle = true; |
| 797 WebServiceWorkerRegistrationImpl* registration = | 797 WebServiceWorkerRegistrationImpl* registration = |
| 798 CreateServiceWorkerRegistration(info, adopt_handle); | 798 CreateServiceWorkerRegistration(info, adopt_handle); |
| 799 registration->SetInstalling(GetServiceWorker(attrs.installing, adopt_handle)); | 799 registration->SetInstalling(GetServiceWorker(attrs.installing, adopt_handle)); |
| 800 registration->SetWaiting(GetServiceWorker(attrs.waiting, adopt_handle)); | 800 registration->SetWaiting(GetServiceWorker(attrs.waiting, adopt_handle)); |
| 801 registration->SetActive(GetServiceWorker(attrs.active, adopt_handle)); | 801 registration->SetActive(GetServiceWorker(attrs.active, adopt_handle)); |
| 802 return registration; | 802 return registration; |
| 803 } | 803 } |
| 804 | 804 |
| 805 } // namespace content | 805 } // namespace content |
| OLD | NEW |