| 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/browser/service_worker/service_worker_provider_host.h" | 5 #include "content/browser/service_worker/service_worker_provider_host.h" |
| 6 | 6 |
| 7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
| 8 #include "content/browser/message_port_message_filter.h" | 8 #include "content/browser/message_port_message_filter.h" |
| 9 #include "content/browser/service_worker/service_worker_context_core.h" | 9 #include "content/browser/service_worker/service_worker_context_core.h" |
| 10 #include "content/browser/service_worker/service_worker_context_request_handler.
h" | 10 #include "content/browser/service_worker/service_worker_context_request_handler.
h" |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 &new_routing_ids); | 137 &new_routing_ids); |
| 138 | 138 |
| 139 dispatcher_host_->Send( | 139 dispatcher_host_->Send( |
| 140 new ServiceWorkerMsg_MessageToDocument( | 140 new ServiceWorkerMsg_MessageToDocument( |
| 141 kDocumentMainThreadId, provider_id(), | 141 kDocumentMainThreadId, provider_id(), |
| 142 message, | 142 message, |
| 143 sent_message_port_ids, | 143 sent_message_port_ids, |
| 144 new_routing_ids)); | 144 new_routing_ids)); |
| 145 } | 145 } |
| 146 | 146 |
| 147 bool ServiceWorkerProviderHost::IsAlive() { |
| 148 return context_ != NULL; |
| 149 } |
| 150 |
| 147 } // namespace content | 151 } // namespace content |
| OLD | NEW |