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_impl.h" | 5 #include "content/child/service_worker/web_service_worker_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
11 #include "content/child/service_worker/service_worker_dispatcher.h" | 11 #include "content/child/service_worker/service_worker_dispatcher.h" |
12 #include "content/child/service_worker/service_worker_handle_reference.h" | 12 #include "content/child/service_worker/service_worker_handle_reference.h" |
13 #include "content/child/service_worker/web_service_worker_provider_impl.h" | 13 #include "content/child/service_worker/web_service_worker_provider_impl.h" |
14 #include "content/child/thread_safe_sender.h" | 14 #include "content/child/thread_safe_sender.h" |
15 #include "content/child/webmessageportchannel_impl.h" | 15 #include "content/child/webmessageportchannel_impl.h" |
16 #include "content/common/service_worker/service_worker_messages.h" | 16 #include "content/common/service_worker/service_worker_messages.h" |
| 17 #include "third_party/WebKit/public/platform/WebRuntimeFeatures.h" |
17 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" | 18 #include "third_party/WebKit/public/platform/WebSecurityOrigin.h" |
18 #include "third_party/WebKit/public/platform/WebString.h" | 19 #include "third_party/WebKit/public/platform/WebString.h" |
19 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerProxy.h" | 20 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerProxy.h" |
20 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | |
21 | 21 |
22 using blink::WebMessagePortChannel; | 22 using blink::WebMessagePortChannel; |
23 using blink::WebMessagePortChannelArray; | 23 using blink::WebMessagePortChannelArray; |
24 using blink::WebMessagePortChannelClient; | 24 using blink::WebMessagePortChannelClient; |
25 using blink::WebSecurityOrigin; | 25 using blink::WebSecurityOrigin; |
26 using blink::WebString; | 26 using blink::WebString; |
27 | 27 |
28 namespace content { | 28 namespace content { |
29 | 29 |
30 namespace { | 30 namespace { |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 } | 112 } |
113 | 113 |
114 WebServiceWorkerImpl::~WebServiceWorkerImpl() { | 114 WebServiceWorkerImpl::~WebServiceWorkerImpl() { |
115 ServiceWorkerDispatcher* dispatcher = | 115 ServiceWorkerDispatcher* dispatcher = |
116 ServiceWorkerDispatcher::GetThreadSpecificInstance(); | 116 ServiceWorkerDispatcher::GetThreadSpecificInstance(); |
117 if (dispatcher) | 117 if (dispatcher) |
118 dispatcher->RemoveServiceWorker(handle_ref_->handle_id()); | 118 dispatcher->RemoveServiceWorker(handle_ref_->handle_id()); |
119 } | 119 } |
120 | 120 |
121 } // namespace content | 121 } // namespace content |
OLD | NEW |