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 void OnGetClientInfo(int thread_id, | 201 void OnGetClientInfo(int thread_id, |
201 int embedded_worker_id, | 202 int embedded_worker_id, |
202 int request_id, | 203 int request_id, |
203 int provider_id); | 204 int provider_id); |
204 | 205 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 WorkerToProviderMap worker_to_provider_; | 247 WorkerToProviderMap worker_to_provider_; |
247 | 248 |
248 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 249 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
249 | 250 |
250 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); | 251 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); |
251 }; | 252 }; |
252 | 253 |
253 } // namespace content | 254 } // namespace content |
254 | 255 |
255 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ | 256 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ |
OLD | NEW |