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 "base/macros.h" |
7 #include "content/child/service_worker/service_worker_dispatcher.h" | 8 #include "content/child/service_worker/service_worker_dispatcher.h" |
8 #include "content/child/service_worker/service_worker_handle_reference.h" | 9 #include "content/child/service_worker/service_worker_handle_reference.h" |
9 #include "content/child/thread_safe_sender.h" | 10 #include "content/child/thread_safe_sender.h" |
10 #include "content/child/webmessageportchannel_impl.h" | 11 #include "content/child/webmessageportchannel_impl.h" |
11 #include "content/common/service_worker/service_worker_messages.h" | 12 #include "content/common/service_worker/service_worker_messages.h" |
12 #include "third_party/WebKit/public/platform/WebString.h" | 13 #include "third_party/WebKit/public/platform/WebString.h" |
13 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerProxy.h" | 14 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerProxy.h" |
14 | 15 |
15 using blink::WebMessagePortChannel; | 16 using blink::WebMessagePortChannel; |
16 using blink::WebMessagePortChannelArray; | 17 using blink::WebMessagePortChannelArray; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 } | 122 } |
122 | 123 |
123 WebServiceWorkerImpl::~WebServiceWorkerImpl() { | 124 WebServiceWorkerImpl::~WebServiceWorkerImpl() { |
124 ServiceWorkerDispatcher* dispatcher = | 125 ServiceWorkerDispatcher* dispatcher = |
125 ServiceWorkerDispatcher::GetThreadSpecificInstance(); | 126 ServiceWorkerDispatcher::GetThreadSpecificInstance(); |
126 if (dispatcher) | 127 if (dispatcher) |
127 dispatcher->RemoveServiceWorker(handle_ref_->handle_id()); | 128 dispatcher->RemoveServiceWorker(handle_ref_->handle_id()); |
128 } | 129 } |
129 | 130 |
130 } // namespace content | 131 } // namespace content |
OLD | NEW |