| 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 "content/child/service_worker/service_worker_dispatcher.h" | 10 #include "content/child/service_worker/service_worker_dispatcher.h" |
| 11 #include "content/child/service_worker/service_worker_handle_reference.h" | 11 #include "content/child/service_worker/service_worker_handle_reference.h" |
| 12 #include "content/child/thread_safe_sender.h" | 12 #include "content/child/thread_safe_sender.h" |
| 13 #include "content/child/webmessageportchannel_impl.h" | 13 #include "content/child/webmessageportchannel_impl.h" |
| 14 #include "content/common/service_worker/service_worker_messages.h" | 14 #include "content/common/service_worker/service_worker_messages.h" |
| 15 #include "third_party/WebKit/public/platform/WebRuntimeFeatures.h" |
| 15 #include "third_party/WebKit/public/platform/WebString.h" | 16 #include "third_party/WebKit/public/platform/WebString.h" |
| 16 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerProxy.h" | 17 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerProxy.h" |
| 17 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | |
| 18 | 18 |
| 19 using blink::WebMessagePortChannel; | 19 using blink::WebMessagePortChannel; |
| 20 using blink::WebMessagePortChannelArray; | 20 using blink::WebMessagePortChannelArray; |
| 21 using blink::WebMessagePortChannelClient; | 21 using blink::WebMessagePortChannelClient; |
| 22 using blink::WebRuntimeFeatures; | 22 using blink::WebRuntimeFeatures; |
| 23 using blink::WebString; | 23 using blink::WebString; |
| 24 | 24 |
| 25 namespace content { | 25 namespace content { |
| 26 | 26 |
| 27 namespace { | 27 namespace { |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 } | 134 } |
| 135 | 135 |
| 136 WebServiceWorkerImpl::~WebServiceWorkerImpl() { | 136 WebServiceWorkerImpl::~WebServiceWorkerImpl() { |
| 137 ServiceWorkerDispatcher* dispatcher = | 137 ServiceWorkerDispatcher* dispatcher = |
| 138 ServiceWorkerDispatcher::GetThreadSpecificInstance(); | 138 ServiceWorkerDispatcher::GetThreadSpecificInstance(); |
| 139 if (dispatcher) | 139 if (dispatcher) |
| 140 dispatcher->RemoveServiceWorker(handle_ref_->handle_id()); | 140 dispatcher->RemoveServiceWorker(handle_ref_->handle_id()); |
| 141 } | 141 } |
| 142 | 142 |
| 143 } // namespace content | 143 } // namespace content |
| OLD | NEW |