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 "content/child/service_worker/service_worker_dispatcher.h" | 7 #include "content/child/service_worker/service_worker_dispatcher.h" |
8 #include "content/child/service_worker/service_worker_handle_reference.h" | 8 #include "content/child/service_worker/service_worker_handle_reference.h" |
9 #include "content/child/thread_safe_sender.h" | 9 #include "content/child/thread_safe_sender.h" |
10 #include "content/child/webmessageportchannel_impl.h" | 10 #include "content/child/webmessageportchannel_impl.h" |
11 #include "content/common/service_worker/service_worker_messages.h" | 11 #include "content/common/service_worker/service_worker_messages.h" |
12 #include "third_party/WebKit/public/platform/WebServiceWorkerProxy.h" | |
13 #include "third_party/WebKit/public/platform/WebString.h" | 12 #include "third_party/WebKit/public/platform/WebString.h" |
| 13 #include "third_party/WebKit/public/platform/modules/serviceworker/WebServiceWor
kerProxy.h" |
14 | 14 |
15 using blink::WebMessagePortChannel; | 15 using blink::WebMessagePortChannel; |
16 using blink::WebMessagePortChannelArray; | 16 using blink::WebMessagePortChannelArray; |
17 using blink::WebMessagePortChannelClient; | 17 using blink::WebMessagePortChannelClient; |
18 using blink::WebString; | 18 using blink::WebString; |
19 | 19 |
20 namespace content { | 20 namespace content { |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 static_cast<base::string16>(message), | 95 static_cast<base::string16>(message), |
96 base::Passed(make_scoped_ptr(channels)))); | 96 base::Passed(make_scoped_ptr(channels)))); |
97 } | 97 } |
98 | 98 |
99 void WebServiceWorkerImpl::terminate() { | 99 void WebServiceWorkerImpl::terminate() { |
100 thread_safe_sender_->Send( | 100 thread_safe_sender_->Send( |
101 new ServiceWorkerHostMsg_TerminateWorker(handle_ref_->handle_id())); | 101 new ServiceWorkerHostMsg_TerminateWorker(handle_ref_->handle_id())); |
102 } | 102 } |
103 | 103 |
104 } // namespace content | 104 } // namespace content |
OLD | NEW |