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 #ifndef CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ | 5 #ifndef CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ |
6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ | 6 #define CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 blink::WebServiceWorkerState state); | 184 blink::WebServiceWorkerState state); |
185 void OnSetVersionAttributes(int thread_id, | 185 void OnSetVersionAttributes(int thread_id, |
186 int provider_id, | 186 int provider_id, |
187 int registration_handle_id, | 187 int registration_handle_id, |
188 int changed_mask, | 188 int changed_mask, |
189 const ServiceWorkerVersionAttributes& attributes); | 189 const ServiceWorkerVersionAttributes& attributes); |
190 void OnUpdateFound(int thread_id, | 190 void OnUpdateFound(int thread_id, |
191 const ServiceWorkerRegistrationObjectInfo& info); | 191 const ServiceWorkerRegistrationObjectInfo& info); |
192 void OnSetControllerServiceWorker(int thread_id, | 192 void OnSetControllerServiceWorker(int thread_id, |
193 int provider_id, | 193 int provider_id, |
194 const ServiceWorkerObjectInfo& info); | 194 const ServiceWorkerObjectInfo& info, |
| 195 bool should_notify_controllerchange); |
195 void OnPostMessage(int thread_id, | 196 void OnPostMessage(int thread_id, |
196 int provider_id, | 197 int provider_id, |
197 const base::string16& message, | 198 const base::string16& message, |
198 const std::vector<int>& sent_message_port_ids, | 199 const std::vector<int>& sent_message_port_ids, |
199 const std::vector<int>& new_routing_ids); | 200 const std::vector<int>& new_routing_ids); |
200 | 201 |
201 void SetInstallingServiceWorker( | 202 void SetInstallingServiceWorker( |
202 int provider_id, | 203 int provider_id, |
203 int registration_handle_id, | 204 int registration_handle_id, |
204 const ServiceWorkerObjectInfo& info); | 205 const ServiceWorkerObjectInfo& info); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 WorkerToProviderMap worker_to_provider_; | 243 WorkerToProviderMap worker_to_provider_; |
243 | 244 |
244 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 245 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
245 | 246 |
246 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); | 247 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); |
247 }; | 248 }; |
248 | 249 |
249 } // namespace content | 250 } // namespace content |
250 | 251 |
251 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ | 252 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ |
OLD | NEW |