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/service_worker_message_filter.h" | 5 #include "content/child/service_worker/service_worker_message_filter.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "content/child/service_worker/service_worker_dispatcher.h" | 9 #include "content/child/service_worker/service_worker_dispatcher.h" |
10 #include "content/child/thread_safe_sender.h" | 10 #include "content/child/thread_safe_sender.h" |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 SendServiceWorkerObjectDestroyed(thread_safe_sender(), | 136 SendServiceWorkerObjectDestroyed(thread_safe_sender(), |
137 attrs.active.handle_id); | 137 attrs.active.handle_id); |
138 // Don't have to decrement registration refcount because the sender of the | 138 // Don't have to decrement registration refcount because the sender of the |
139 // SetVersionAttributes message doesn't increment it. | 139 // SetVersionAttributes message doesn't increment it. |
140 } | 140 } |
141 | 141 |
142 void ServiceWorkerMessageFilter::OnStaleSetControllerServiceWorker( | 142 void ServiceWorkerMessageFilter::OnStaleSetControllerServiceWorker( |
143 int thread_id, | 143 int thread_id, |
144 int provider_id, | 144 int provider_id, |
145 const ServiceWorkerObjectInfo& info, | 145 const ServiceWorkerObjectInfo& info, |
146 bool should_notify_controllerchange) { | 146 bool should_notify_controllerchange, |
| 147 const std::set<uint32_t>& used_features) { |
147 SendServiceWorkerObjectDestroyed(thread_safe_sender(), info.handle_id); | 148 SendServiceWorkerObjectDestroyed(thread_safe_sender(), info.handle_id); |
148 } | 149 } |
149 | 150 |
150 void ServiceWorkerMessageFilter::OnStaleMessageToDocument( | 151 void ServiceWorkerMessageFilter::OnStaleMessageToDocument( |
151 const ServiceWorkerMsg_MessageToDocument_Params& params) { | 152 const ServiceWorkerMsg_MessageToDocument_Params& params) { |
152 SendServiceWorkerObjectDestroyed(thread_safe_sender(), | 153 SendServiceWorkerObjectDestroyed(thread_safe_sender(), |
153 params.service_worker_info.handle_id); | 154 params.service_worker_info.handle_id); |
154 } | 155 } |
155 | 156 |
156 } // namespace content | 157 } // namespace content |
OLD | NEW |