| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 void OnPostMessage(int thread_id, | 195 void OnPostMessage(int thread_id, |
| 196 int provider_id, | 196 int provider_id, |
| 197 const base::string16& message, | 197 const base::string16& message, |
| 198 const std::vector<int>& sent_message_port_ids, | 198 const std::vector<int>& sent_message_port_ids, |
| 199 const std::vector<int>& new_routing_ids); | 199 const std::vector<int>& new_routing_ids); |
| 200 void OnGetClientInfo(int thread_id, |
| 201 int embedded_worker_id, |
| 202 int request_id, |
| 203 int provider_id); |
| 200 | 204 |
| 201 void SetInstallingServiceWorker( | 205 void SetInstallingServiceWorker( |
| 202 int provider_id, | 206 int provider_id, |
| 203 int registration_handle_id, | 207 int registration_handle_id, |
| 204 const ServiceWorkerObjectInfo& info); | 208 const ServiceWorkerObjectInfo& info); |
| 205 void SetWaitingServiceWorker( | 209 void SetWaitingServiceWorker( |
| 206 int provider_id, | 210 int provider_id, |
| 207 int registration_handle_id, | 211 int registration_handle_id, |
| 208 const ServiceWorkerObjectInfo& info); | 212 const ServiceWorkerObjectInfo& info); |
| 209 void SetActiveServiceWorker( | 213 void SetActiveServiceWorker( |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 WorkerToProviderMap worker_to_provider_; | 246 WorkerToProviderMap worker_to_provider_; |
| 243 | 247 |
| 244 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 248 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 245 | 249 |
| 246 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); | 250 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerDispatcher); |
| 247 }; | 251 }; |
| 248 | 252 |
| 249 } // namespace content | 253 } // namespace content |
| 250 | 254 |
| 251 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ | 255 #endif // CONTENT_CHILD_SERVICE_WORKER_SERVICE_WORKER_DISPATCHER_H_ |
| OLD | NEW |